Hello Ivan, Thank you for your response.
I really agree with your assessment there :) There was no specific reason for using xsd:float other than because of Javascript and JSON. I will try to find some workaround to use doublePrecision instead. Also, I would like your suggestions on how to implement the following using Virtuoso; I need to recursively find elements of a rdf:List resource. Currently, I am running a HTTP/Sparql request on each rdf:rest to retrieve it. Is there some better way such as using the Stored Procedure support of Virtuoso to get all the elements of the list in one query ? Thank you again. Regards Rajeev J Sebastian On Jan 20, 2008 2:50 AM, Ivan Mikhailov <[email protected]> wrote: > Hello Rajeev, > > The strongly advised workaround is to use xsd:doublePrecision instead of > xsd:float. The problem with float is that it is not enough precise. > Depending on hardware platform and C library used by compiler same > literal can be parsed and then printed as, say, "4.1299999999" or > "4.13", sooner or later it results in weird errors. Say, one see > "4.1299999999" in the output and tries to delete it from graph and the > request deletes nothing. The issue was so annoying that we suspended > this support temporarily. Probably it will be fixed by converting all > xsd:floats into xsd:doublePrecision literals; but that will raise some > other error -- unexpected return values of DATATYPE() SPARQL built-in > function. > > Best Regards, > Ivan Mikhailov > OpenLink Software. > > > On Sat, 2008-01-19 at 05:51 +0530, Rajeev J Sebastian wrote: > > Hello all, > > > > I am running Virtuoso Version 05.00.3023-pthreads. > > > > When running a sparul something like: > > > > insert { > > <foo:xyz> <foo:left> > > "21.0396039604"^^<http://www.w3.org/2001/XMLSchema#float>. > > } > > > > I get an error, "37000 Error SP031: SPARQL compiler: Current > > implementation of SPARQL does not supports literals of type REAL" > > > > How can I workaround this error ? > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2008. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Virtuoso-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/virtuoso-users > >
