Skip to content

Change definition of type Uri #448

Description

@nichtich

The type Uri is underspecified ans misleading. It's description is "a complete URI" so one could assume an absolute URI (no relative URI reference) as defined in RFC 3986 (URI). Then there is a link to http://www.w3.org/2001/XMLSchema#anyURI, referencing xsd:anyURI in XML Schema (2004). What is the normative definition of type Uri in SSSOM?

  • a "complete" URI (as defined in RFC 3986)
  • any value allowed XML Schema (2004) data type xsd:anyURI
  • something else (e.g. IRI)
  • ...

Note that xsd:anyURI in XML Schema is more than absolute and relative URIs as defined in RFC 3986 but it also support its own escaping rules to allow more characters.

I would prefer to refer to RFC 3986 with absolute URI in the SSSOM data model only because in the end everything (relative URI, xsd:anyURI, IRI references...) is mapped to an absolute URI. The encoding of URIs in SSSOM/TSV may allow something more, but this needs to be defined more strictly. In theory, xsd:anyURI from xsd:anyURI in XML Schema 1.1 (2012) or RFC 3987 (IRI) could do but they come with several specific rules how to map its value to URI so just referencing these standards will likely not solve the issue unless the underlying specification has carefully been read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions