W3C home > Mailing lists > Public > public-rdf-wg@w3.org > May 2011

Re: ISSUE-12: xs:string VS plain literals: proposed resolution

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Mon, 09 May 2011 20:09:13 +0100
Message-ID: <4DC83BD9.9050906@epimorphics.com>
To: public-rdf-wg@w3.org


On 09/05/11 18:11, Pierre-Antoine Champin wrote:
> On 05/06/2011 04:22 PM, Steve Harris wrote:
> <snip/>
>> Not really DATATYPE("foo") is xsd:string already. http://www.w3.org/TR/rdf-sparql-query/#func-datatype
>
> yes, but it only states that for *simple literals* (that are literals
> without language type, IIRC). It does not seem to say anything about
> literals with a language tag :-(
>
> A test on dbpedia is not really compelling as both datatype("foo") and
> datatype("foo"@en) seem to return NULL, which for the former would mean
> a non-conformant implementation...
>
> http://dbpedia.org/sparql?query=select+datatype%28%22foo%22%29+where+{}
>
> http://dbpedia.org/sparql?query=select+datatype%28%22foo%22%40en%29+where+{}
>
>    pa
>

The function is not defined for plain literal with language tag hence 
it's a dispatch error.  See the table "SPARQL Unary Operators"

	Andy
Received on Monday, 9 May 2011 19:09:45 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:42 GMT