W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2005

Re: OK to use decimal for 0.3 in turtle?

From: Dan Connolly <connolly@w3.org>
Date: Tue, 22 Nov 2005 11:20:21 -0600
To: Dave Beckett <dave@dajobe.org>
Cc: public-cwm-talk@w3.org, RDF Data Access Working Group <public-rdf-dawg@w3.org>
Message-Id: <1132680021.2319.71.camel@dirk>

On Tue, 2005-11-22 at 00:50 -0500, Dave Beckett wrote:
[...]
> 
> so my OK is conditional on N3 also making this change to xsd:double.

Does this suffice?

http://swig.xmlhack.com/2005/10/14/2005-10-14.html#1129304057.498099
timbl: In favour of decimal: That the coersion from decimal to float is
safe, unlike the other way. That it is a pain when typically currency
values are calculated as floats and end up as long approximate float
values.



> My test version of raptor (1.4.8 to be) gives the same answers as cwm:
> $ rapper -q -i turtle -o ntriples turtle1.ttl
> <http://example.org#a> <http://example.org#b> 
> "1.0"^^<http://www.w3.org/2001/XMLSchema#double> .
> <http://example.org#c> <http://example.org#d> 
> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
> <http://example.org#e> <http://example.org#f> 
> "1.0"^^<http://www.w3.org/2001/XMLSchema#double> .

I know yosi did some decimal hacking a while back, but I'm not sure
what's involved in changing cwm's N3 parser in this respect. I'm
confident it will happen in due course, though.


-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E
Received on Tuesday, 22 November 2005 17:24:47 GMT

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