W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > October 2005

Re: SPARQL: QuotedIRIref too lax [OK?]

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Wed, 05 Oct 2005 15:48:10 +0100
Message-ID: <4343E7AA.9000402@hp.com>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
CC: public-rdf-dawg-comments@w3.org

Dan Connolly wrote:
>>  http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050721/ production
>>66 QuotedIRIref is "'<' ([^> ])* '>'", it's not clear from the draft
>>why this production allows illegal characters that must not appear
>>in IRI references
> Quite. I have added this to the WG issues list.
> http://www.w3.org/2001/sw/DataAccess/issues#badIRIRef
> Please stand by for a substantive response.
>>and how implementations handle such content, please
>>change the draft either such that this is clarified.

The SPARQL grammar section [1] says that the syntax produces IRIs (A.1)

Text matched by the  Q_IRI_REF production and QName  (after prefix expansion) 
production must be conform to the generic syntax of IRI references in section 
2.2 of RFC 3987 "ABNF for IRI References and IRIs" [RFC3987]. For example, the 
  Q_IRI_REF <abc#def> may occur in a SPARQL query string, but the  Q_IRI_REF 
<abc##def> must not.
and in addition the grammar itself has:

Q_IRI_REF ::= '<' ([^<>]-[#00-#20])* '>' /* An IRI reference : RFC 3987 */

(rather than duplicate the whole of the ABNF in RFC 3986 and 3987).

Please let us know whether this response addresses your comment
to your satisfaction.


[1] http://www.w3.org/2001/sw/DataAccess/rq23/#grammar v1.497
Received on Wednesday, 5 October 2005 14:48:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:06 UTC