Turtle Tests

These are the tests for the Turtle Terse RDF Triple Language that must be passed by conformant systems. See http://www.w3.org/2010/01/Turtle/tests/ for the full conformance information.

The format is a set of good tests and bad tests.

Good tests are a pair of files: abc.ttl abc.out which are the input Turtle file and the expected output RDF triples, written in N-Triples.

bad tests are of the form bad-XX.ttl which must fail.

The tests should be performed with an assumed base URI of http://www.w3.org/2001/sw/DataAccess/df1/tests/.

Test Coverage

The following table associates test labels with the features those tests are supposed to cover. Every test covers the basic syntax features so they are not listed.

nameresultintended coverage
base1base1.outResolution of a relative URI against an absolute base.
base2base2.outResolution of a relative URI against a relative base.
prefix1prefix1.outSubstitution of a simple prefix.
escapedPrefix1escapedPrefix1.outstruck Substitution of a prefix containing some escaped characters.
escapedNamespace1escapedNamespace1.outSubstitution of namespace containing some escaped characters for a prefix.
defaultdefault.outSubstitution of a prefix which is the empty string.
typetype.outSubstitution of rdf:type for the keyword a.

Test Directory Listing