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

Dubious test in /cast/

From: Steve Harris <steve.harris@garlik.com>
Date: Mon, 17 Sep 2007 13:47:32 +0100
Message-Id: <0AE550F1-0DC7-45CB-A284-742B0E04F96C@garlik.com>
To: RDF Data Access Working Group <public-rdf-dawg@w3.org>

Most of them I agree with, but this one seems wrong:

http://www.w3.org/2001/sw/DataAccess/tests/data-r2/cast/manifest#cast- 
str

data:

:iri :p :z .
:str :p "string" .
:fltdbl :p "-10.2E3" .
:decimal :p "+33.3300" .
:int :p "13" .
:dT :p "2002-10-10T17:00:00Z" .
:bool :p "true" .

query:

SELECT ?s WHERE {
     ?s :p ?v .
     FILTER(datatype(xsd:string(?v)) = xsd:string) .
}

results:

?s
--------
:iri
:str
:fltdbl
:decimal
:int
:dT
:bool

The implication of the first result is that it's legal to case a URI  
to an xsd:string with xsd:string(). I agree with the remainder of the  
test.

It was approved here: http://lists.w3.org/Archives/Public/public-rdf- 
dawg/2007JulSep/att-0087/14-dawg-minutes.html

- Steve
Received on Monday, 17 September 2007 12:48:00 GMT

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