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 > Virtuoso-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/virtuoso-users