Hi Christian, What Ivan is trying to say is that we should use xsd:double instead since it matches better with the conception of decimal-point numbers like geo-coordinates.
Regards Rajeev J Sebastian On Jan 20, 2008 5:09 PM, Christian Becker <ch...@beckr.org> wrote: > Hi Ivan, > I see that xsd:floats are not returned for SPARQL queries, either. > Note that one can't always choose another datatype - for DBpedia 3.0 > we just changed all geocoordinates to xsd:float to match the related > ontology. > I'd just like to cast my vote for xsd:float support - apart from the > fact that it is a popular datatype, there's a ton of cool stuff to be > done with DBpedia's geocoordinates that I would love to see working > again on the public SPARQL endpoint. > > Thanks, > > Christian > > > On Jan 19, 2008, at 10:20 PM, Ivan Mikhailov 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 > >> Virtuoso-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/virtuoso-users > > > > > > ------------------------------------------------------------------------- > > 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 > >