Re: SPARQL: QuotedIRIref too lax [OK?]

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.

 Thanks
 Andy

[1] http://www.w3.org/2001/sw/DataAccess/rq23/#grammar v1.497

Received on Wednesday, 5 October 2005 14:48:34 UTC