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

Re: project expression tests

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Tue, 24 Aug 2010 14:54:37 +0100
Message-ID: <4C73CF1D.2020100@epimorphics.com>
To: Axel Polleres <axel.polleres@deri.org>
CC: Gregory Williams <greg@evilfunhouse.com>, SPARQL Working Group <public-rdf-dawg@w3.org>


On 24/08/10 14:46, Axel Polleres wrote:
>> Based on my understanding of XQuery F&O, I believe all the numerics in the query results should be of type xsd:integer. Right now the srx file has ?twice = "6"^^xsd:long, but the F&O document says "each operator is defined to operate on operands of the same type and return the same type" (with op:numeric-divide being the one exception).
> That's an interesting point. How about SPARQL engines internally canonicalising datatpyes? is that an issue? What id the sum of two integers goes outside integer? Is that an issue? (probably not for these test cases, but in general?)

This isn't about canonicalization in SPARQl engines as such.

"1"^^xsd:int + "2"^^xsd:byte = "3"^^xsd:integer
"1"^^xsd:int + "2"^^xsd:double = "3.0"^^xsd:double (the exact lexical 
form is not fixed)

xsd:integer is unbounded (xsd:int is 32 bit).

This all comes from F&O - it's not a SPARQL-specific issue.

	Andy
Received on Tuesday, 24 August 2010 13:55:17 GMT

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