Closed lanthaler closed 9 years ago
This W3C Recommendation seems to be the the most relevant specification for creating a new datatype:
XML Schema Part 2: Datatypes http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/
And this W3C Working Group likely is also relevant:
This document addresses three questions left unanswered by these Recommendations: Which URIref should be used to refer to a user defined datatype? Which values of which XML Schema simple types are the same?
XML Schema Datatypes in RDF and OWL http://www.w3.org/TR/swbp-xsch-datatypes/
PROPOSAL: Introduce a datatype for RFC6570 IRI templates, but don't change the range of hydra:template
. Update the Hydra JSON-LD context to type-coerce template automatically.
Call for consensus: http://lists.w3.org/Archives/Public/public-hydra/2014Oct/0119.html
RESOLVED: Introduce a new datatype hydra:rfc6570Template
. This datatype can be used to explicitly specify the syntax of the hydra:template
. For the time being,
RFC6570 is the only supported IRI template syntax. The range of hydra:template
won't be changed to hydra:rfc6570Template
but the Hydra JSON-LD context will be updated to type-coerce the property template
automatically. If a client encounters a template with a datatype of xsd:string
, it should be interpreted as RFC6570 template.
Results of the straw poll regarding the capitalization of datatypes: http://lists.w3.org/Archives/Public/public-hydra/2015Jan/0156.html
Call for consensus: http://lists.w3.org/Archives/Public/public-hydra/2015Jan/0157.html
RESOLVED: The name of the datatype for RFC6570 IRI templates is hydra:Rfc6570Template
. Other datatypes will follow this naming pattern.
_This was proposed by @rubenverborgh on the mailing list:_
It's not as much about complicating as about being exact. The thing is not a string, it's an RFC6570 template. Please seize this opportunity :-)
Note that this even enables future extensibility automatically. If RFC25000 suddenly comes up with another template, it can be supported out of the box:
So the same resources can have multiple templates in different standards. That's extensibility.