W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2007

RE: data-r2 version of SPARQL tests

From: imikhailov <imikhailov@openlinksw.com>
Date: Mon, 16 Apr 2007 02:01:18 +0700
To: "'Lee Feigenbaum'" <feigenbl@us.ibm.com>
Cc: <public-rdf-dawg@w3.org>
Message-ID: <E1Hd9yT-0006dw-Ub@lisa.w3.org>

Hello Lee,

> http://www.w3.org/TR/rdf-concepts/ says that "A plain literal is a
> combined with an optional language tag."
> http://www.w3.org/TR/rdf-sparql-query/ , 11.4.7, says that "datatype ...
> returns the datatype IRI of typedLit; returns xsd:string if the the 
> parameter is a simple literal."

"simple literal" is defined in
http://www.w3.org/TR/rdf-sparql-query/#operandDataTypes :

# simple literal denotes a plain literal with no language tag.
"string"@en has a datatype, and so is not of an acceptable type for
datatype(). Therefore, datatype() returns an error which propagates to the
top of the FILTER and eliminates :x3 as a possible binding for ?x.

Thank you for explaination, now I understand why I don't have a bug.
Nevertheless I see a small problem: there's no way to destinguish "string"
and "string"^^xsd:string using only built-in functions.

Best Regards,
Received on Sunday, 15 April 2007 19:01:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:00:53 UTC