W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > November 2011

Re: error in testcase agg-avg-02

From: Gregory Williams <greg@evilfunhouse.com>
Date: Mon, 7 Nov 2011 15:37:20 -0500
Cc: public-rdf-dawg-comments@w3.org
Message-Id: <FC003D14-8C24-40F1-9C58-88B00C064CC6@evilfunhouse.com>
To: Jeen Broekstra <jeen.broekstra@gmail.com>
On Oct 19, 2011, at 11:56 PM, Jeen Broekstra wrote:

> 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).

This results file, along with several others with similar datatype issues, have been fixed to align with the numeric operator definitions.

We would be grateful if you would acknowledge that your comments have been answered by sending a reply to this mailing list.

Regards, Gregory Williams, on behalf of the SPARQL WG.
Received on Monday, 7 November 2011 20:38:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:12 UTC