W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > January to March 2011

Re: Test cases for approval

From: Matthew Perry <matthew.perry@oracle.com>
Date: Wed, 02 Mar 2011 13:05:42 -0500
Message-ID: <4D6E86F6.9020109@oracle.com>
To: Andy Seaborne <andy.seaborne@epimorphics.com>
CC: Axel Polleres <axel.polleres@deri.org>, Birte Glimm <birte.glimm@comlab.ox.ac.uk>, SPARQL Working Group <public-rdf-dawg@w3.org>
Hi Andy,

Our system uses the native Oracle number type (38 decimal digits) to do arithmetic calculations, and we use xsd:decimal as the result type for all arithmetic operations.

The answer to your question in Oracle would be "2"^^xsd:decimal.

- Matt


On 3/2/2011 12:21 PM, Andy Seaborne wrote:
>
>
> On 02/03/11 16:11, Matthew Perry wrote:
>> Hi Axel,
>>
>> For
>> :a :p "1"^^xsd:decimal .
>> :a :p "1"^^xsd:integer .
>> :a :p "1"^^xsd:float .
>> :a :p "1"^^xsd:double .
>>
>> You would get
>> :a :p "1"^^xsd:decimal .
>> :a :p "1E0"^^xsd:float .
>> :a :p "1E0"^^xsd:double .
>>
>> That is, floats stay floats, doubles stay doubles and everything else
>> goes to decimal.
>>
>> - Matt
>
> (this is mostly due to XSD evaluation rules)
>
> What is
>   "1"^^xsd:byte + "1"^^xsd:integer
> ?
>
> I can guess the lexical form :-) what's the datatype?
>
>     Andy
Received on Wednesday, 2 March 2011 18:07:20 GMT

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