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/
.
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.
name | result | intended coverage |
---|---|---|
base1 | base1.out | Resolution of a relative URI against an absolute base. |
base2 | base2.out | Resolution of a relative URI against a relative base. |
prefix1 | prefix1.out | Substitution of a simple prefix. |
escapedPrefix1 | escapedPrefix1.out | struck Substitution of a prefix containing some escaped characters. |
escapedNamespace1 | escapedNamespace1.out | Substitution of namespace containing some escaped characters for a prefix. |
default | default.out | Substitution of a prefix which is the empty string. |
type | type.out | Substitution of rdf:type for the keyword a . |