W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > June 2006

Double/decimal test error (datatype-1)

From: Jan Wielemaker <wielemak@science.uva.nl>
Date: Mon, 26 Jun 2006 14:54:07 +0200
To: public-rdf-dawg-comments@w3.org
Message-Id: <200606261454.07170.wielemak@science.uva.nl>

Hi,

The dataset for test 'datatype-1' contains:

:xd1 :p  1.0 .

This returns a result on this query:

================================================================
PREFIX  xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX  : <http://example.org/things#>
SELECT  ?x ?v
WHERE
    { ?x :p ?v .
      FILTER ( datatype(?v) = xsd:double ) .
    }
================================================================

I think that isn't correct as according to the Turtle documentation
the Turtle parser should interpret 1.0 as "1.0"^^xsd:decimal.

	Cheers --- Jan
Received on Monday, 26 June 2006 12:54:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:50 GMT