HydraCG / Specifications

Specifications created by the Hydra W3C Community Group
Other
139 stars 25 forks source link

Introduce a datatype for RFC6570 IRI templates #17

Closed lanthaler closed 9 years ago

lanthaler commented 10 years ago

_This was proposed by @rubenverborgh on the mailing list:_

No, I'm not aware of any type representing RFC6570 IRI templates and didn't see the need to complicate Hydra by defining one :-)

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:

<x> hydra:template "old-template"^^hydra:rfc6570Template.
<x> hydra:template "new-template"^^rfc25000:template.

So the same resources can have multiple templates in different standards. That's extensibility.

akuckartz commented 10 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/

lanthaler commented 10 years ago

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.

lanthaler commented 9 years ago

Call for consensus: http://lists.w3.org/Archives/Public/public-hydra/2014Oct/0119.html

lanthaler commented 9 years ago

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.

lanthaler commented 9 years ago

Results of the straw poll regarding the capitalization of datatypes: http://lists.w3.org/Archives/Public/public-hydra/2015Jan/0156.html

lanthaler commented 9 years ago

Call for consensus: http://lists.w3.org/Archives/Public/public-hydra/2015Jan/0157.html

lanthaler commented 9 years ago

RESOLVED: The name of the datatype for RFC6570 IRI templates is hydra:Rfc6570Template. Other datatypes will follow this naming pattern.