Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

w3c benchmark: Floating point representation mismatch #1

Open
Rintarou opened this issue Jul 13, 2018 · 0 comments
Open

w3c benchmark: Floating point representation mismatch #1

Rintarou opened this issue Jul 13, 2018 · 0 comments
Labels
invalid This doesn't seem right

Comments

@Rintarou
Copy link
Collaborator

Rintarou commented Jul 13, 2018

This is most likely inherited from the Jena-hdt base of the client, as tests show it has the same issue.

When running queries
aggregates/agg-avg-02, aggregates/agg-min-02, aggregates/agg-sum-02, aggregates/agg-err-02
from the w3c SPARQL 1.1 compliance benchmark

with queries of the following structure:

PREFIX : <http://www.example.org/>
SELECT ?s (AVG(?o) AS ?avg)
WHERE {
	?s ?p ?o
}
GROUP BY ?s
HAVING (AVG(?o) <= 2.0)

Results give a correct answer, but with a slightly different representation than what the w3c reference expects.

Usually expected upper-case 'E' for powers of 10 are represented as lower-case 'e'.
Additionally, sometimes, numbers will be shifted towards a lower power of ten e.g:

#expected:
2.0E-1
#results:
0.2e0

attached is the Query, Results, and Expected files.
QRE.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant