[redland-dev] [Rasqal RDF Query Library 0000436]: queries involving calculations with large numbers return incorrect results unless scientific notation is used

Mantis Bug Tracker mantis-bug-sender at librdf.org
Sat Apr 2 11:06:37 CEST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=436 
====================================================================== 
Reported By:                cbdavis
Assigned To:                
====================================================================== 
Project:                    Rasqal RDF Query Library
Issue ID:                   436
Category:                   query engine
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Query Language:             SPARQL 
====================================================================== 
Date Submitted:             2011-04-02 09:06
Last Modified:              2011-04-02 09:06
====================================================================== 
Summary:                    queries involving calculations with large numbers
return incorrect results unless scientific notation is used
Description: 
SPARQL queries that perform calculations return incorrect results when the
number is completely written out (3600000000), while correct results are given
when scientific notation is used (3.6E9).

Steps to Reproduce: 
Running 4store 1.1.2 with Raptor version 2.0.2 and Rasqal version 0.9.25.  

Tested using 4s-query

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX prop: <http://enipedia.tudelft.nl/wiki/Property:>
PREFIX cat: <http://enipedia.tudelft.nl/wiki/Category:>
select ?energy ((?energy / 3600000000) as ?energy_MWh) where {
<http://enipedia.tudelft.nl/wiki/Makung_Powerplant> prop:Energyoutput-23J
?energy .
} #EOQ

?energy   ?energy_MWh
"16599599986720"^^<http://www.w3.org/2001/XMLSchema#double>  
"-23885.4"^^<http://www.w3.org/2001/XMLSchema#double>
#EOR

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX prop: <http://enipedia.tudelft.nl/wiki/Property:>
PREFIX cat: <http://enipedia.tudelft.nl/wiki/Category:>
select ?energy ((?energy / 3.6E9) as ?energy_MWh) where {
<http://enipedia.tudelft.nl/wiki/Makung_Powerplant> prop:Energyoutput-23J
?energy .
} #EOQ

?energy   ?energy_MWh
"16599599986720"^^<http://www.w3.org/2001/XMLSchema#double>  
"4611"^^<http://www.w3.org/2001/XMLSchema#double>
#EOR

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-02 09:06 cbdavis        New Issue                                    
======================================================================



More information about the redland-dev mailing list