W3C home > Mailing lists > Public > public-sparql-dev@w3.org > April to June 2008

Re: Bug in SPARQL grammar?

From: Lee Feigenbaum <lee@thefigtrees.net>
Date: Fri, 02 May 2008 10:11:40 -0400
Message-ID: <481B211C.2040302@thefigtrees.net>
To: Axel Polleres <axel.polleres@deri.org>
CC: public-sparql-comments@w3.org, public-sparql-dev@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 2 May 2008 14:12:22 GMT