W3C home > Mailing lists > Public > public-rdf-comments@w3.org > March 2013

Re: probable missing turtle test

From: Eric Prud'hommeaux <eric@w3.org>
Date: Fri, 29 Mar 2013 17:19:03 -0400
To: Jeremy J Carroll <jjc@syapse.com>
Cc: public-rdf-comments@w3.org
Message-ID: <20130329211902.GC15247@w3.org>
* Jeremy J Carroll <jjc@syapse.com> [2013-03-29 11:39-0700]
> 
> I believed I was using a turtle parser compliant with
> http://www.w3.org/TR/2013/CR-turtle-20130219/
> 
> and the legal input I passed it caused an incorrect error to be raised, this suggests that the WG may not have a test for a specific case, i.e.:
> 
> ===
> @prefix vcf: <http://vcf.org#> .
> @prefix my: <http://my.vcf.org#> .
> @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
> @prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .
> my:file
> vcf:fileformat "VCFv4.1";
> vcf:reference "GRCh37";
> .
> my:LDAF rdf:type rdf:Property;
>  rdfs:domain vcf:Variant;
>  vcf:num 1;
> vcf:type "Float";
> vcf:desc "MLE Allele Frequency Accounting for LD";
> ;
> .
> ===
> 
> The problem is the ; ; . at the end. Legal but strange.
> 
> Please add a test to your test suite that checks for more than one unnecessary ; in this production.

I wonder if it was tested with an old test suite. Take a look at the bottom of <https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/coverage/report.html>.
[[
  repeated semis at end <s> <p> <o> ;; <p2> <o2> .

  ttl: <http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; <http://a.example/p2> <http://a.example/o2> .

   nt: <http://a.example/s> <http://a.example/p1> <http://a.example/o1> .
     <http://a.example/s> <http://a.example/p2> <http://a.example/o2> .

  repeated semis not at end <s> <p> <o> ;;.

  ttl: <http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; .

   nt: <http://a.example/s> <http://a.example/p1> <http://a.example/o1> .
]]

It shows that I was super-vigilant about coverage and kind of a dork about naming ("not at end" vs. "at end").
We have a WG decision to publish the test suite as final. I wonder if I get to fix those names before we do that.


> ===
> 
> This comment need not be treated as a formal comment, specifically I do not need a response
> 
> 
> Jeremy J Carroll
> Principal Architect
> Syapse, Inc.
> 
> 
> 
> 

-- 
-ericP
Received on Friday, 29 March 2013 21:19:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:29:55 UTC