W3C

RDF 1.2 Turtle Syntax Tests

Copyright © 2004-2023 World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.


Abstract

This page describes W3C RDF-star Working Group's test suite for RDF 1.2. Conformance for RDF 1.2 requires conforming with tests in this test suite along with the relevant RDF 1.2 tests.

Contributing Tests

The test manifests and entries are built automatically from manifest.ttl using a Rake task. Tests may be contributed via pull request to https://github.com/w3c/rdf-tests with suitable changes to the manifest.ttl and referenced files.

Distribution

Distributed under both the W3C Test Suite License and the W3C 3-clause BSD License. To contribute to a W3C Test Suite, see the policies and contribution forms.

Disclaimer

UNDER BOTH MUTUALLY EXCLUSIVE LICENSES, THIS DOCUMENT AND ALL DOCUMENTS, TESTS AND SOFTWARE THAT LINK THIS STATEMENT ARE PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS THEREOF.

Test Descriptions

turtle-star-1: Turtle-star - subject reified triple
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-basic-01.ttl
turtle-star-2: Turtle-star - object reified triple
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-basic-02.ttl
turtle-star-3: Turtle-star - triple term object
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-basic-03.ttl
turtle-star-4: Turtle-star - reified triple outside triple
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-basic-04.ttl
turtle-star-inside-1: Turtle-star - reified triple inside blankNodePropertyList
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-inside-01.ttl
turtle-star-inside-2: Turtle-star - reified triple inside collection
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-inside-02.ttl
turtle-star-inside-3: Turtle-star - reified triple with IRI identifier
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-inside-03.ttl
turtle-star-inside-4: Turtle-star - reified triple with blank node identifier
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-inside-04.ttl
turtle-star-nested-1: Turtle-star - nested reified triple, subject position
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-nested-01.ttl
turtle-star-nested-2: Turtle-star - nested reified triple, object position
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-nested-02.ttl
turtle-star-compound-1: Turtle-star - compound forms
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-compound.ttl
turtle-star-bnode-1: Turtle-star - blank node subject
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-bnode-01.ttl
turtle-star-bnode-2: Turtle-star - blank node object
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-bnode-02.ttl
turtle-star-bnode-3: Turtle-star - blank node
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-syntax-bnode-03.ttl
turtle-star-bad-1: Turtle-star - bad - reified triple as predicate
type
rdft:TestTurtleNegativeSyntax
approval
action
turtle-star-syntax-bad-01.ttl
turtle-star-bad-2: Turtle-star - bad - literal in subject position of reified triple
type
rdft:TestTurtleNegativeSyntax
approval
action
turtle-star-syntax-bad-02.ttl
turtle-star-bad-3: Turtle-star - bad - blank node as predicate in reified triple
type
rdft:TestTurtleNegativeSyntax
approval
action
turtle-star-syntax-bad-03.ttl
turtle-star-bad-4: Turtle-star - bad - incomplete reified triple
type
rdft:TestTurtleNegativeSyntax
approval
action
turtle-star-syntax-bad-04.ttl
turtle-star-bad-5: Turtle-star - bad - over-long reified triple
type
rdft:TestTurtleNegativeSyntax
approval
action
turtle-star-syntax-bad-05.ttl
turtle-star-bad-6: Turtle-star - bad - reified with list object
type
rdft:TestTurtleNegativeSyntax
approval
action
turtle-star-syntax-bad-06.ttl
turtle-star-bad-7: Turtle-star - bad - compound blank node expression
type
rdft:TestTurtleNegativeSyntax
approval
action
turtle-star-syntax-bad-07.ttl
turtle-star-ann-1: Turtle-star - Annotation form
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-annotation-1.ttl
turtle-star-ann-2: Turtle-star - Annotation example
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-annotation-2.ttl
turtle-star-ann-3: Turtle-star - Annotation predicateObjecetList
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-annotation-3.ttl
turtle-star-ann-4: Turtle-star - Annotation followed by predicate/object
type
rdft:TestTurtlePositiveSyntax
approval
action
turtle-star-annotation-4.ttl
turtle-star-bad-ann-1: Turtle-star - bad - empty annotation
type
rdft:TestTurtleNegativeSyntax
approval
action
turtle-star-syntax-bad-ann-1.ttl
turtle-star-bad-ann-2: Turtle-star - bad - triple as annotation
type
rdft:TestTurtleNegativeSyntax
approval
action
turtle-star-syntax-bad-ann-2.ttl
nt-ttl-star-1: N-Triples-star as Turtle-star - triple term
type
rdft:TestTurtlePositiveSyntax
approval
action
nt-ttl-star-syntax-1.ttl
nt-ttl-star-2: N-Triples-star as Turtle-star - whitespace and terms
type
rdft:TestTurtlePositiveSyntax
approval
action
nt-ttl-star-syntax-2.ttl
nt-ttl-star-3: N-Triples-star as Turtle-star - Nested, no whitespace
type
rdft:TestTurtlePositiveSyntax
approval
action
nt-ttl-star-syntax-3.ttl
nt-ttl-star-bnode-1: N-Triples-star as Turtle-star - Blank node object
type
rdft:TestTurtlePositiveSyntax
approval
action
nt-ttl-star-bnode-1.ttl
nt-ttl-star-nested-1: N-Triples-star as Turtle-star - Nested subject term
type
rdft:TestTurtlePositiveSyntax
approval
action
nt-ttl-star-nested-1.ttl
nt-ttl-star-bad-01: N-Triples-star as Turtle-star - Bad - triple term as predicate
type
rdft:TestTurtleNegativeSyntax
approval
action
nt-ttl-star-bad-syntax-01.ttl
nt-ttl-star-bad-02: N-Triples-star as Turtle-star - Bad - triple term, literal subject
type
rdft:TestTurtleNegativeSyntax
approval
action
nt-ttl-star-bad-syntax-02.ttl
nt-ttl-star-bad-03: N-Triples-star as Turtle-star - Bad - triple term, literal predicate
type
rdft:TestTurtleNegativeSyntax
approval
action
nt-ttl-star-bad-syntax-03.ttl
nt-ttl-star-bad-04: N-Triples-star as Turtle-star - Bad - triple term, blank node predicate
type
rdft:TestTurtleNegativeSyntax
approval
action
nt-ttl-star-bad-syntax-04.ttl
nt-ttl-star-bad-05: N-Triples-star as Turtle-star - Bad - triple term as subject
type
rdft:TestTurtleNegativeSyntax
approval
action
nt-ttl-star-bad-syntax-05.ttl
nt-ttl-star-bad-06: N-Triples-star as Turtle-star - Bad - reified triple as predicate
type
rdft:TestNTriplesNegativeSyntax
approval
action
nt-ttl-star-bad-syntax-06.ttl
nt-ttl-star-bad-07: N-Triples-star as Turtle-star - Bad - reified triple, literal subject
type
rdft:TestNTriplesNegativeSyntax
approval
action
nt-ttl-star-bad-syntax-07.ttl
nt-ttl-star-bad-08: N-Triples-star as Turtle-star - Bad - reified triple, literal predicate
type
rdft:TestNTriplesNegativeSyntax
approval
action
nt-ttl-star-bad-syntax-08.ttl
nt-ttl-star-bad-09: N-Triples-star as Turtle-star - Bad - reified triple, blank node predicate
type
rdft:TestNTriplesNegativeSyntax
approval
action
nt-ttl-star-bad-syntax-09.ttl
nt-ttl-base-1: N-Triples-star as Turtle-star - base direction ltr
type
rdft:TestTurtlePositiveSyntax
approval
action
nt-ttl-base-1.ttl
nt-ttl-base-2: N-Triples-star as Turtle-star - base direction ltr
type
rdft:TestTurtlePositiveSyntax
approval
action
nt-ttl-base-2.ttl
nt-ttl-base-bad-1: N-Triples-star as Turtle-star - undefined base direction
type
rdft:TestTurtleNegativeSyntax
approval
action
nt-ttl-base-bad-1.ttl
nt-ttl-base-bad-2: N-Triples-star as Turtle-star - upper case LTR
type
rdft:TestTurtleNegativeSyntax
approval
action
nt-ttl-base-bad-2.ttl