W3C home > Mailing lists > Public > public-rdf-wg@w3.org > March 2013

Re: tightenting up the Turtle grammar

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Wed, 27 Mar 2013 08:42:11 +0000
Message-ID: <5152B0E3.9070301@epimorphics.com>
To: public-rdf-wg@w3.org
Eric,

Could you spell out exactly what the changes would be?  (Not sure 
everyone is following every link, every time....)

	Thanks
	Andy

On 26/03/13 21:01, Eric Prud'hommeaux wrote:
> The Turtle spec says that parsing the PNAME_NS and PNAME_LN terminals
> produces an IRI as defined in RDF Concepts.
>    http://www.w3.org/TR/turtle/#handle-IRI
>    http://www.w3.org/TR/turtle/#handle-PNAME_LN
>    http://www.w3.org/TR/2013/WD-rdf11-concepts-20130115/#dfn-iri
> RDF Concepts says that IRI is "a Unicode string [UNICODE] that
> conforms to the syntax defined in RFC 3987 [RFC3987]." In sum, we
> provide a pretty liberal grammar and then point to a hilariously
> complex grammar, but don't expect anyone to enforce it.
>
> Comments c23 "IRIREF production less restrictive than RFC3987" and c26
> "PN_CHARS_BASE outside of IRI range" indicate some frustration with our
> grammar which permits characters which aren't allowed anywhere in IRIs.
>
>    <http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c23>
>    <http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c26>
>
> One approach would be to trim the bogus chars off of PN_CHARS_BASE and
> include a note below the grammer which points directly at 3987 and
> states that the IRIs constructed by either IRIREF or PNAME_LN are 3987
> IRIs. This would would supplement the note about valid literal ranges
> proposed to address c27.
>
>    <http://www.w3.org/2011/rdf-wg/wiki/Turtle_Candidate_Recommendation_Comments#c27>
>    <http://www.w3.org/mid/20130324145153.GN14139@w3.org>
>
> I have spoken to those acting as W3C director. They consider this to
> be a clarification and nothing that would require another LC.
>
Received on Wednesday, 27 March 2013 08:42:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:04:26 UTC