W3C home > Mailing lists > Public > public-rdf-wg@w3.org > August 2011

Make clear that SPARQL prefixed names are not CURIEs

From: Richard Cyganiak <richard@cyganiak.de>
Date: Sun, 21 Aug 2011 15:51:19 +0100
Message-Id: <8EFC0C70-D919-499A-B40B-62C3CD6CCDD9@cyganiak.de>
Cc: Gavin Carothers <gavin@topquadrant.com>, RDF Working Group WG <public-rdf-wg@w3.org>
To: public-rdf-dawg-comments@w3.org
A comment on the Last Call draft of SPARQL 1.1 Query 

If Section “Prefixed Names” is read without prior knowledge of Turtle or XML, then a reasonable reader would have no idea that only a restricted set of characters is allowed in local names. The section can easily be read as allowing *any* IRI to be abbreviated using PREFIX.

It is documented that the editors of both HTML5 and Turtle made that mistake.

The potential for confusion is further increased by the fact that CURIEs in RDFa are virtually identical to prefixed names, except that they allow *all* characters.

Therefore I think it is important to draw attention to the syntactic restriction of local names in (or perhaps somewhere near the example at the end of 4.1.1).

Something along these lines:

“Note: Most punctuation characters are disallowed in the local part of prefixed names. Therefore, @prefix and prefixed names are most useful for abbreviating class and property IRIs, which by design usually avoid such punctuation. Other IRIs, such as web links, can often only be written using the angle bracket syntax, either as absolute IRIs, or relative to the base IRI.”

Received on Sunday, 21 August 2011 14:51:57 UTC

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