- From: Jeen Broekstra <jeen.broekstra@gmail.com>
- Date: Thu, 20 Oct 2011 16:56:59 +1300
- To: public-rdf-dawg-comments@w3.org
Hello WG,
Test case agg-avg-02 (in
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/)
contains an error in the expected result. Specifically, it say this in
agg-avg-02.srx:
<result>
<binding name="s">
<uri>http://www.example.org/ints</uri>
</binding>
<binding name="avg">
<literal
datatype="http://www.w3.org/2001/XMLSchema#integer">2</literal>
</binding>
</result>
The datatype for the expected binding of 'avg' is incorrect: the result
of an average computation over literals of type xsd:integer should be
xsd:decimal (as it involves a numeric divide, see also
http://www.w3.org/TR/xpath-functions/#func-numeric-divide).
I have actually reported this exact same problem before a while back, to
which the response was that it had been corrected. Perhaps an unintended
regression?
Cheers,
Jeen
Received on Thursday, 20 October 2011 03:57:40 UTC