- From: Markus Lanthaler <markus.lanthaler@gmx.net>
- Date: Wed, 16 Jul 2014 19:26:16 +0200
- To: <public-hydra@w3.org>
Currently, the expansion of IRI templates is underspecified in the sense that it is not defined how a value (IRI, string, number, etc.) should be included in the expanded IRI. Thus the proposal is to only use the lexical representation of the value or the IRI (no quoting) by default. Additionally, we will add a flag, i.e., a property whose value is a boolean, hydra:expandedRepresentation to IriTemplateMapping, that, if set to true, changes the expansion to work as follows: - The lexical representation is enclosed in quotes with no escaping of the value itself - the datatype xsd:string is always omitted - language tags are appended to the lexical representation by using an @ symbol - datatypes are added using ^ (just one) and then the URL without enclosing it in <> - URLs are kept as they are Thus, the following values in Turtle notation expand to the following strings when used in a IRI template - """Value with a " inside""" --> "Value with a " inside" (without the """ the inner quote would have to be escaped in Turtle) - "English"@en --> "English"@en - "24"^^<xsd:integer> --> "24"^http://www.w3.org/2001/XMLSchema#integer - http://example.com/ --> http://example.com/ This serves as a call for consensus on the proposed solution. Before I proceed with marking the issue [1] as resolved and implementing the changes in the spec, I would like to ask if anyone has any concerns or objections against this proposal. Please submit your comments by Wednesday, July 23rd. Thanks, Markus [1] https://github.com/HydraCG/Specifications/issues/30 -- Markus Lanthaler @markuslanthaler
Received on Wednesday, 16 July 2014 17:26:47 UTC