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

Re: project expression tests

From: Axel Polleres <axel.polleres@deri.org>
Date: Tue, 24 Aug 2010 17:14:48 +0100
Cc: "SPARQL Working Group" <public-rdf-dawg@w3.org>
Message-Id: <C23329A4-1216-4B91-B813-5280127ED682@deri.org>
To: Gregory Williams <greg@evilfunhouse.com>

On 24 Aug 2010, at 14:52, Gregory Williams wrote:

> On Aug 24, 2010, at 9:46 AM, 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?
> 
> Aren't the input literals already in canonical form?

I was thinking about... I think we talked about this, that an engine could internally canonicalise all datatypes, e.g. convert all longs that are integers to integer in its internal storage. which would affect the answers to such queries.
 
> >  What id the sum of two integers goes outside integer? Is that an issue? (probably not for these test cases, but in general?)
> 
> xsd:integer doesn't have bounds on the values space (c.f. xsd:int), so for the addition, subtraction, and multiplication operators operating on xsd:integers, the result should always be xsd:integer.

right, confused int and integer.

cheers,
Axel

> thanks,
> .greg
> 
> 
Received on Tuesday, 24 August 2010 16:15:17 GMT

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