Skip to content

Syntax error in mailto: IRI prevents loading of the ttl release 1.0.2 #6

@vincentvialard

Description

@vincentvialard

The space after the colon in the mailto: IRI for the mediator causes errors at least in some parsers.
For instance, the file can not be opened in Protégé.

    foaf:mbox <mailto: contact@semic.eu> ;

(source: https://github.com/SEMICeu/CPSV/blob/b8fb382213f6e6606a6c7e6fa81dd566508e730d/releases/1.0.2/voc/cpsv.ttl#L14C1-L15C1)

This is does not conform to the specification.
Here are the relevant parts of the specification chain:

      mailtoURI    = "mailto:" [ to ] [ hfields ]
      to           = addr-spec *("," addr-spec )
      addr-spec    = local-part "@" domain
      local-part   = dot-atom-text / quoted-string

(source: https://datatracker.ietf.org/doc/html/rfc6068#section-2)

atext           =   ALPHA / DIGIT /    ; Printable US-ASCII
                       "!" / "#" /        ;  characters not including
                       "$" / "%" /        ;  specials.  Used for atoms.
                       "&" / "'" /
                       "*" / "+" /
                       "-" / "/" /
                       "=" / "?" /
                       "^" / "_" /
                       "`" / "{" /
                       "|" / "}" /
                       "~"
   dot-atom-text   =   1*atext *("." 1*atext)

(source: https://datatracker.ietf.org/doc/html/rfc5322#section-3.2.3)

         ALPHA          =  %x41-5A / %x61-7A   ; A-Z / a-z
         DIGIT          =  %x30-39   ; 0-9

(source: https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions