| 1 |
This README is for the W3C RDF Working Group's Turtle test suite. |
| 2 |
This test suite contains three kinds of tests: |
| 3 |
|
| 4 |
Evaluation (rdft:TestTurtleEval) - a pair of an input turtle file |
| 5 |
and reference ntriples file. |
| 6 |
|
| 7 |
Positive syntax (rdft:TestTurtlePositiveSyntax) - an input turtle |
| 8 |
file with no syntax errors. |
| 9 |
|
| 10 |
Negative syntax (rdft:TestTurtleNegativeSyntax) - an input turtle |
| 11 |
file with at least one syntax error. |
| 12 |
|
| 13 |
The manifest.ttl file in this directory lists all of the tests in the |
| 14 |
RDF WG's Turtle test suite. Each test is one of the above tests. All |
| 15 |
tests have a name (mf:name) and an input (mf:action). The Evaluation |
| 16 |
tests have an expected result (mf:result). |
| 17 |
|
| 18 |
• An implementation passes an Evaluation test if it parses the input |
| 19 |
into a graph, parses the expecte result into another graph, and |
| 20 |
those two graphs are isomorphic (see |
| 21 |
<http://www.w3.org/TR/rdf11-concepts/#graph-isomorphism>). |
| 22 |
|
| 23 |
• An implementation passes a positive syntax test if it parses the |
| 24 |
input. |
| 25 |
|
| 26 |
• An implementation passes a negative syntax test if it fails to parse |
| 27 |
the input. |
| 28 |
|
| 29 |
|
| 30 |
RELATIVE IRI RESOLUTION: |
| 31 |
|
| 32 |
The home of the test suite is <http://www.w3.org/2013/TurtleTests/>. |
| 33 |
Per RFC 3986 section 5.1.3, the base IRI for parsing each file is the |
| 34 |
retrieval IRI for that file. For example, the tests turtle-subm-01 and |
| 35 |
turtle-subm-27 require relative IRI resolution against a base of |
| 36 |
<http://www.w3.org/2013/TurtleTests/turtle-subm-01.ttl> and |
| 37 |
<http://www.w3.org/2013/TurtleTests/turtle-subm-27.ttl> respectively. |
| 38 |
|
| 39 |
|
| 40 |
CHARACTER ENCODING: |
| 41 |
|
| 42 |
The Turtle language uses UTF-8 encoding. The following tests include |
| 43 |
non-ascii characters: |
| 44 |
localName_with_assigned_nfc_bmp_PN_CHARS_BASE_character_boundaries |
| 45 |
localName_with_assigned_nfc_PN_CHARS_BASE_character_boundaries * |
| 46 |
localName_with_nfc_PN_CHARS_BASE_character_boundaries * |
| 47 |
labeled_blank_node_with_PN_CHARS_BASE_character_boundaries * |
| 48 |
LITERAL1_with_UTF8_boundaries * |
| 49 |
LITERAL_LONG1_with_UTF8_boundaries * |
| 50 |
LITERAL2_with_UTF8_boundaries * |
| 51 |
LITERAL_LONG2_with_UTF8_boundaries * |
| 52 |
|
| 53 |
Those marked with a * include characters with codepoints greater than |
| 54 |
U+FFFD and are thus expressed as a pair of surrogate characters when |
| 55 |
represented in UCS2. |
| 56 |
|
| 57 |
|
| 58 |
See http://www.w3.org/2011/rdf-wg/wiki/Turtle_Test_Suite for more details. |
| 59 |
|
| 60 |
|
| 61 |
Eric Prud'hommeaux <[email protected]> - 11 June 2013. |