W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > October to December 2011

datatype issues in testsuite

From: Gregory Williams <greg@evilfunhouse.com>
Date: Sun, 16 Oct 2011 16:15:07 -0400
Message-Id: <93D31F0D-8AE2-401F-9AC8-DBDCE3A259DC@evilfunhouse.com>
To: SPARQL Working Group <public-rdf-dawg@w3.org>
There are a few things in the test suite that I think need fixes:

1) In functions/coalesce01.srx, ?div=0 and ?div=2 should be ?div=0.0 and ?div=2.0 (integer->decimal) because of xsd numeric-divide rules.

2) In aggregates/agg-avg-02.srx, ?avg=2 should be ?avg=2.0 (integer->decimal) because of xsd numeric-divide rules.

3) In aggregates/agg-err-02.srx, ?avg="2."^^decimal should be ?avg="2.0"^^decimal (srx should use canonical lexical form)

(I think this was brought up during a related conversation a few weeks ago, but I couldn't track down a link.)

I believe the first two changes are necessary as the current values seem to contradict the xsd numeric-divide definition. The third change is subjective, but I don't see any reason to prefer the lexical form that ends in a decimal point over the canonical form that requires a digit after the decimal point.

Received on Sunday, 16 October 2011 20:16:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:01:05 UTC