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

Re: CSV/TSV results test cases and suggested adaption of JSON results test cases

From: Axel Polleres <axel.polleres@deri.org>
Date: Tue, 9 Aug 2011 08:14:11 +0200
Cc: "SPARQL Working Group" <public-rdf-dawg@w3.org>
Message-Id: <FFDC7207-C4EC-4856-904B-4360E7D460D6@deri.org>
To: Gregory Williams <greg@evilfunhouse.com>
Hmmm, re-thinking that, this is indeed an interesting issue.

If I change the lexical form from 5 to 5.5 then in the tsv answer (csvtsv01.tsv, csvtsv02.tsv) I should get 


instead of 



That would add a new aspect to the test case on the one hand, as the spec says "The abbreviated forms for numbers (XSD integers, decimals and doubles) SHOULD be used." 

On the other hand, that kind of misses another point that I wanted to have in that test case, i.e. that I wanted to force 
a datatype URI (different from xsd:string) being in the output tsv.

I solved that by separating the base cases and the corner cases in two different data files now: data.ttl and data2.ttl
data.ttl is being used for test cases 
and data2.ttl is being used for test cases

Please check. Given that those test case are ok, I think we have good coverage now.

As for canonicalisation, do we need more test cases elsewhere on top of that?


On 9 Aug 2011, at 00:28, Gregory Williams wrote:

> On Aug 7, 2011, at 5:10 PM, Axel Polleres wrote:
> > Hi Greg,
> >
> > My focus was not on the aspect of datatype canonicalisation, but just on using an
> > explicit datatype... So, I'd be totally fine in changing this to e.g.
> >
> > s/"5"^^xsd:decimal/"5.5"^^xsd:decimal
> >
> > would that be ok for you?
> > Or shall we keep and mark this test case "as is"?
> > Or both?
> I believe that would be OK for me. And probably makes this a non-issue for most implementations (even if the underlying challenge of testing with possible c14n still remains).
> thanks,
> .greg
Received on Tuesday, 9 August 2011 06:14:57 UTC

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