- From: Tomasz Pluskiewicz <tomasz@t-code.pl>
- Date: Wed, 16 Jul 2014 21:04:54 +0200
- To: Gregg Kellogg <gregg@greggkellogg.net>
- Cc: Markus Lanthaler <markus.lanthaler@gmx.net>, "public-hydra@w3.org" <public-hydra@w3.org>
Regarding encoding of values I think we should be as strict and simple as possible and reuse standards: 1. Accept only absolute URIs (no angle brackets) 2. Take any value as-is and apply standard encoding And I'm not sure that language tags and typed literals are even necessary here. I would personally be using an operation with some RDF body if I wanted to transmit such payload. On Wed, Jul 16, 2014 at 7:40 PM, Gregg Kellogg <gregg@greggkellogg.net> wrote: > On Jul 16, 2014, at 10:26 AM, Markus Lanthaler <markus.lanthaler@gmx.net> wrote: > >> 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/ > > I'd like to see more general motivation for this feature, including some more explicit examples of using IRI templates. > > Why break from Turtle/N-Triples on ^ vs ^^? Otherwise, this looks like an N-Triples format, where IRIs are "bare", and literals are always quoted. > > Also, this proposal doesn't seem to consider the general discussion on the issue. > > Gregg > > >> 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 19:06:04 UTC