W3C home > Mailing lists > Public > public-rdf-wg@w3.org > January 2013

coverage of Turtle tests

From: Eric Prud'hommeaux <eric@w3.org>
Date: Sat, 5 Jan 2013 12:50:50 -0500
To: public-rdf-wg <public-rdf-wg@w3.org>
Message-ID: <20130105175035.GA18103@w3.org>
I updated the yacker grammar to reflect the Turtle spec┬╣. I used that parser to run coverage tests over the tests-ttl/ directory
  http://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-ttl
in order to see what language features were covered in the tests.
  http://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/coverage/report.html
(Enabling Javascript improves the user experience when viewing the report.)
The features come from a separate file
  http://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/coverage/paths
which includes the name of a feature, how to look for it in yacker output,
and a minimal test for only that feature.


┬╣Remaining diffs between the yacker grammar and the Turtle spec:
  1 Bare words moved to terminals for appropriate case-sensitivity.
  2 LANGTAG explicitly includes "@base" and "@prefix".
  3 Uses SPARQL's
      [134s] String ::= STRING_LITERAL1 | STRING_LITERAL2 | STRING_LITERAL_LONG1 | STRING_LITERAL_LONG2
    instead of
      [18]   String ::= STRING_LITERAL_QUOTE | STRING_LITERAL_SINGLE_QUOTE | STRING_LITERAL_LONG_SINGLE_QUOTE | STRING_LITERAL_LONG_QUOTE


* Eric Prud'hommeaux <eric@w3.org> [2013-01-05 12:14-0500]
> * Gavin Carothers <gavin@carothers.name> [2013-01-04 21:34-0800]
> > On Fri, Jan 4, 2013 at 2:20 PM, David Wood <david@3roundstones.com> wrote:
> > 
> > > Hi all,
> > >
> > > I have read through Eric's changes and feel that they are appropriate
> > > (unless Gavin objects).  Gavin?
> > >
> > 
> > Nope, no objections.
> 
> cool, incorporated into the editor's draft.
> I left the class="add" annotations so people can compare
>   http://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html#sec-grammar-grammar
> against the proposals in
>   http://www.w3.org/2012/12/Turtle-ericP#sec-grammar-grammar
> . These will be trivial to remove after inspection.
> 
> 
> > > Eric has also produced a test coverage report and will upload it to dvcs.
> > >  Thanks, Eric!
> > >
> > > Regards,
> > > Dave
> > > --
> > > http://about.me/david_wood
> > >
> > >
> > >
> > > On Dec 30, 2012, at 23:06, Eric Prud'hommeaux <eric@w3.org> wrote:
> > >
> > > > I finally got a good chance to make a detailed review of the Last Call
> > > grammar and test out the semantics.
> > > >
> > > > I tweaked the grammar slightly but the language it defines is the same:
> > > >  Struck NIL because it wasn't referenced
> > > >  Unfactored blank because it wasn't always blank (could be rdf:nil).
> > > >  Changed [Pp][Rr][Ee][Ff][Ii][Xx] to "PREFIX" with a note about case.
> > > >  Added missing xs before unicode code points in PN_CHARS_BASE and
> > > PN_CHARS.
> > > >
> > > > In the semantics, I updated the term constructors to indicate which
> > > escaping was relevent where and updated the Triple Constructors after
> > > testing the algorithm against all of the Turtle tests that Andy submitted.
> > > >
> > > > Green stuff in <http://www.w3.org/2012/12/Turtle-ericP> is stuff I
> > > propose to add. Red I propose to remove. I think it's worth getting this
> > > right before CR. Most of my feedback comes from my own XMass CR period. I
> > > believe all of this is clarifications or editorial adjustments so we could
> > > still go to CR immediately.
> > > >
> > > > I also aligned the Turtle grammar intro more with the SPARQL spec 'cause
> > > it's pretty well weathered and had a lot of useful points. (We'll probably
> > > want to strike "6 In signed numbers, no white space is allowed between the
> > > sign and the number." if folks agree that it's not helpful to the Turtle
> > > spec, but stuff like identifying tokens and case sensitivity is a good
> > > idea.)
> > > >
> > > > BTW, we don't need the At-risk that we discussed for the { <s> <p> <o>
> > > ;;; . } decision as it was present in the LC grammar.
> > > > --
> > > > -ericP
> > > >
> > >
> > >
> 
> -- 
> -ericP

-- 
-ericP
Received on Saturday, 5 January 2013 17:51:20 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:53 GMT