Lee Feigenbaum wrote:
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

Thanks, my misunderstanding, indeed naming was a bit confusing :-)

Axel

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



--
Dr. Axel Polleres, Digital Enterprise Research Institute (DERI)
email: [EMAIL PROTECTED]  url: http://www.polleres.net/

rdfs:Resource owl:differentFrom xsd:anyURI .

Reply via email to