W3C

RDF 1.2 TriG Syntax Tests

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


Abstract

This page describes W3C RDF & SPARQL 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

trig12-1: TriG 1.2 - subject reified triple
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-basic-01.trig
trig12-2: TriG 1.2 - object reified triple
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-basic-02.trig
trig12-3: TriG 1.2 - triple term object
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-basic-03.trig
trig12-4: TriG 1.2 - reified triple outside triple
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-basic-04.trig
trig12-inside-1: TriG 1.2 - reified triple inside blankNodePropertyList
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-inside-01.trig
trig12-inside-2: TriG 1.2 - reified triple inside collection
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-inside-02.trig
trig12-inside-3: TriG 1.2 - reified triple with IRI identifier
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-inside-03.trig
trig12-inside-4: TriG 1.2 - reified triple with blank node identifier
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-inside-04.trig
trig12-nested-1: TriG 1.2 - nested quoted triple, subject position
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-nested-01.trig
trig12-nested-2: TriG 1.2 - nested quoted triple, object position
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-nested-02.trig
trig12-compound-1: TriG 1.2 - compound forms
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-compound.trig
trig12-bnode-1: TriG 1.2 - blank node subject
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-bnode-01.trig
trig12-bnode-2: TriG 1.2 - blank node object
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-bnode-02.trig
trig12-bnode-3: TriG 1.2 - blank node
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-syntax-bnode-03.trig
trig12-bad-1: TriG 1.2 - bad - reified triple as predicate
type
rdft:TestTrigNegativeSyntax
approval
action
trig12-syntax-bad-01.trig
trig12-bad-2: TriG 1.2 - bad - literal in subject position of reified triple
type
rdft:TestTrigNegativeSyntax
approval
action
trig12-syntax-bad-02.trig
trig12-bad-3: TriG 1.2 - bad - blank node as predicate in reified triple
type
rdft:TestTrigNegativeSyntax
approval
action
trig12-syntax-bad-03.trig
trig12-bad-4: TriG 1.2 - bad - incomplete reified triple
type
rdft:TestTrigNegativeSyntax
approval
action
trig12-syntax-bad-04.trig
trig12-bad-5: TriG 1.2 - bad - over-long reified triple
type
rdft:TestTrigNegativeSyntax
approval
action
trig12-syntax-bad-05.trig
trig12-bad-6: TriG 1.2 - bad - reified with list object
type
rdft:TestTrigNegativeSyntax
approval
action
trig12-syntax-bad-06.trig
trig12-bad-7: TriG 1.2 - bad - compound blank node expression
type
rdft:TestTrigNegativeSyntax
approval
action
trig12-syntax-bad-07.trig
trig12-ann-1: TriG 1.2 - Annotation form
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-annotation-1.trig
trig12-ann-2: TriG 1.2 - Annotation example
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-annotation-2.trig
trig12-ann-3: TriG 1.2 - Annotation predicateObjecetList
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-annotation-3.trig
trig12-ann-4: TriG 1.2 - Annotation followed by predicate/object
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-annotation-4.trig
trig12-ann-5: TriG 1.2 - Reifier without annotation block
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-annotation-5.trig
trig12-ann-6: TriG 1.2 - Empty reifier without annotation block
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-annotation-6.trig
trig12-ann-7: TriG 1.2 - Reifier with annotation block
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-annotation-7.trig
trig12-ann-8: TriG 1.2 - Empty reifier with annotation block
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-annotation-8.trig
trig12-bad-ann-1: TriG 1.2 - bad - empty annotation
type
rdft:TestTrigNegativeSyntax
approval
action
trig12-syntax-bad-ann-1.trig
trig12-bad-ann-2: TriG 1.2 - bad - triple as annotation
type
rdft:TestTrigNegativeSyntax
approval
action
trig12-syntax-bad-ann-2.trig
trig12-base-1: base direction ltr
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-base-1.trig
trig12-base-2: base direction ltr
type
rdft:TestTrigPositiveSyntax
approval
action
trig12-base-2.trig
trig12-base-bad-1: undefined base direction
type
rdft:TestTrigNegativeSyntax
approval
action
trig12-base-bad-1.trig
trig12-base-bad-2: upper case LTR
type
rdft:TestTrigNegativeSyntax
approval
action
trig12-base-bad-2.trig