-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
canonical mappings for datatypes #86
Comments
RDFa requires using Exclusive XML Canonicalization when serializing an XML Literal. The canonical mapping for rdf:XMLLiteral is based on this language. Possibly, the language could be removed from the datatype definition, but it clearly describes something that is useful. JSON-LD 1.1 describes canonicalization as being the mapping to the value space, which is essentially JCS before it was standardized. Canonicalization of JSON datatypes is necessary for serializing the content of JSON literals. XSD datatypes define Canonical Lexical Representations. I believe many RDF libraries expose a way of creating a canonicalized version of a literal using these mechanisms. IMO, removing canonicalization sections for datatypes would be confusing to the user base. The definition from XSD seems like a good starting point for such requirements:
|
RDFa requiring Exclusive XML Canonicalization is different to RDF 1.1. It's a subset of values. RDF 1.1 has RDF/XML value space of "DocumentFragment" which is a wider definition than RDF 1.0. Exclusive XML Canonicalization. |
For
RDFa choosing a canonicalization can be seen as a choice being made for RDFa. JSON-LD is free to define a canonical form as that community needs and it is good to leave it to the community as to whether e.g. RFC8785 is the right choice. |
I propose removing the only remaining canonical mapping, for rdf:XMLLiteral. As there are suggested RDF datatypes for which RDF does not define a canonical mapping, it does not make sense to keep this one. It's removal should be documented in the change section. |
Closed via #97. |
Two datatypes provide a canonical mapping but there are no requirements for canonical mappings.
If canonical mappings are to be retained there needs to be requirements that these mapping must satisfy.
The text was updated successfully, but these errors were encountered: