Re: Bug in SPARQL grammar?

Axel Polleres wrote:
> 
> I am asking myself whether there is an error in the SPARQL grammar for 
> typed RDFLiterals:

I think it's just a case of poor naming :) See below.

> Now, when I look at SPARQL's grammar I find:
> 
> SPARQL: http://www.w3.org/TR/rdf-sparql-query/
> 
>  RDFLiteral ::= String ( LANGTAG | ( '^^' IRIref ) )?
> 
>  IRI_REF ::= '<' ([^<>"{}|^`\]-[#x00-#x20])* '>'

IRIref != IRI_REF

The relevant rule is

http://www.w3.org/TR/rdf-sparql-query/#rIRIref

which reads:

[67]    	IRIref  	  ::=    	IRI_REF | PrefixedName


So I believe this is correct.

Lee


> 
> 
> Note: No qnames are allowed here in the type position, although
>       qnames like xs:integer *are* actually used for typed literals in
>       the examples in the SPARQL document.
> 
> I assume this is a bug?
> 
> Axel
> 

Received on Friday, 2 May 2008 14:12:22 UTC