W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2012

Changes to SPARQL and Turtle in response to an RDF comment

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Wed, 18 Jul 2012 19:04:29 +0100
Message-ID: <5006FAAD.8040007@epimorphics.com>
To: RDF-WG <public-rdf-wg@w3.org>, SPARQL Working Group <public-rdf-dawg@w3.org>
The comment "Turtle: Prefixes now can contain colons (":")?" [1]
is a bug in the SPARQL grammar that got propagated to Turtle.  By 
putting the raw ':' in PN_CHARS_U, colons could appear in the prefix 
part, blank node ids and, in SPARQL, variable names.

The fix is not put ':' in PN_CHARS_U but instead to write out PN_LOCAL 
more fully.  PN_LOCAL is the local part of a prefixed name.

So the difference between non-raw colon Turtle and SPARQL is confined

PN_LOCAL  ::=
     (PN_CHARS_U | ':' | [0-9] | PLX )
     ((PN_CHARS | '.' | ':' | PLX)* (PN_CHARS | ':' | PLX) )?

reverting the edits to PN_CHARS_U

Gavin has already incorporate this into the Turtle ED and it's in the 
SPARQL Query ED.

Thanks to Mathias Hasselmann for pointing this out, along with the 
details he presented.

	Andy

[1] 
http://lists.w3.org/Archives/Public/public-rdf-comments/2012Jul/0006.html
Received on Wednesday, 18 July 2012 18:05:02 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:49 GMT