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

RE: data-r2 version of SPARQL tests

From: Lee Feigenbaum <feigenbl@us.ibm.com>
Date: Sun, 15 Apr 2007 17:21:47 -0400
To: "imikhailov" <imikhailov@openlinksw.com>
Cc: public-rdf-dawg@w3.org
Message-ID: <OF835FF8D8.8F911308-ON852572BE.0074E5A6-852572BE.007557AB@us.ibm.com>

"imikhailov" <imikhailov@openlinksw.com> wrote on 04/15/2007 03:01:18 PM:

> Hello Lee,
> 
> > http://www.w3.org/TR/rdf-concepts/ says that "A plain literal is a
> string
> > 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.

This was a design decision by the working group many months ago. 
Nevertheless, I believe that you can make this distinction:

FILTER(!sameTerm(?lit, str(?lit)))

EricP, please correct me if I've got this wrong.

Lee
Received on Sunday, 15 April 2007 21:22:37 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:36 GMT