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/TR/2011/WD-turtle-20110809/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

[ICO]NameLast modifiedSizeDescription

[DIR]Parent Directory  -  
[TXT]README.txt25-Mar-2010 03:23 552  
[   ]base1.out10-Mar-2011 16:10 183  
[TXT]base1.ttl10-Mar-2011 16:10 324  
[   ]base2.out10-Mar-2011 16:10 183  
[TXT]base2.ttl10-Mar-2011 16:10 423  
[   ]default.out10-Mar-2011 16:10 183  
[TXT]default.ttl10-Mar-2011 16:10 324  
[TXT]default1.ttl25-Mar-2010 03:23 242  
[   ]escapedNamespace1.out10-Mar-2011 16:10 100  
[TXT]escapedNamespace1.ttl10-Mar-2011 16:10 315  
[   ]escapedPrefix1.out10-Mar-2011 16:10 100  
[TXT]escapedPrefix1.ttl10-Mar-2011 16:10 298  
[   ]prefix1.out10-Mar-2011 16:10 100  
[TXT]prefix1.ttl10-Mar-2011 16:10 259  
[   ]type.out10-Mar-2011 16:10 183  
[TXT]type.ttl10-Mar-2011 16:10 246