W3C home > Mailing lists > Public > public-rdf-wg@w3.org > October 2012

Some tests for Turtle

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Fri, 12 Oct 2012 17:05:49 +0100
Message-ID: <50783FDD.6050900@epimorphics.com>
To: RDF-WG <public-rdf-wg@w3.org>
Here are some tests for Turtle as a seed of a test suite.

https://svn.apache.org/repos/asf/jena/Experimental/riot-reader/testing/RIOT/Lang/

--> TurtleSubm

These are the tests from the Turtle submission, cleaned up.

--> Turtle

New syntax tests.  Work-in-progress.

- - - - - - - - -

The "jena/Experimental" area is not in the current release codebase
and can changed at any time (i.e. no release code freeze)

== TurtleSubm/

These are the tests from the Turtle submission, cleaned up to make them 
passable.  e.g. test 29 had a bad URI characters - parsers that do basic 
character range checks as in the Turtle LC grammar would flag this as an 
error.

TurtleSubm/manifest.ttl
TurtleSubm/manifest-bad.ttl

== Turtle/

This is work-in-progress and I'll be adding more tests over the next few 
days as time permits.

Turtle/manifest.ttl
Current License: ASL2 (changing to W3C Software license is no problem)

Only syntax tests (positive and negative) and all tests are in a single 
manifest file (good and bad syntax tests).

== Manifest

The tests use the manifest format which is a general framework or 
"action" and "result".  Tests are typed. It was specialised and used by 
SPARQL 1.0 and I know some other people use it for their tests other 
than SPARQL.

But also the tests are systematically named (by and large) so there is 
no need to write a complex test environment.  I hope it will be relative 
simple to incorporate the tests into any environment with as little 
overhead as possible.

The test suite serves two purposes : getting the Turtle spec through W3C 
process but also as a community resource beyond the working group for 
validating parsers.  Creating good coverage is some thing we can share.

	Andy
Received on Friday, 12 October 2012 16:06:25 GMT

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