Using RDF to describe and run URI test cases

RDF test case descriptions have been used with some success by the W3C RDF and OWL working groups. This note is a summary of my attempts to do something similar for URI test cases.

For my own URI parser, written in Haskell, I have collected some 300 or so sets of test data from various sources, which result in the execution of 500 or so actual test cases. So my first challenge is: how to author all this as RDF? As part of my Swish project, I have created an option to read RDF from an annotated comma separated variable (CSV) file exported by Microsoft Excel; this allows RDF data that follows a regular pattern to be authored easily as a spreadsheet, exported to CSV and subsequently converted to Notation3 using Swish. This can then be converted to RDF/XML using CWM.

RDF data is entered into a spreadsheet using one row of data per subject, with each column corresponding to a different RDF property. Annotations indicate the RDF property and the type of RDF data (resource, plain literal or typed literal) associated with each colun. One of the columns can be designated as indicating a subject URI, and other annotations can be used to indicate namepace URIs and subject type information.

There are four kinds of test described here:

For more information, refer to the Excel or CSV source files.

The following links refer to my URI test descriptions in their various forms, and related software:

So much for describing the test cases. For my own URI software, which is written in Haskell, I have written a test runner program that uses my Swish code to read the test case descriptions, uses an RDF graph query capability to extract the test descriptions, and constructs the corresponding unit test cases and then executes them coutesy of Haskell's higher order functions.

At the time of writing, I have some bugs to fix in my code...


For feedback please see: http://www.ninebynine.org/index.html#Contact
$Id: $