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-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

trig-star-1: TriG-star - subject quoted triple
type
rdft:TestTrigPositiveSyntax
approval
action
trig-star-syntax-basic-01.trig
trig-star-2: TriG-star - object quoted triple
type
rdft:TestTrigPositiveSyntax
approval
action
trig-star-syntax-basic-02.trig
trig-star-inside-1: TriG-star - quoted triple inside blankNodePropertyList
type
rdft:TestTrigPositiveSyntax
approval
action
trig-star-syntax-inside-01.trig
trig-star-inside-2: TriG-star - quoted triple inside collection
type
rdft:TestTrigPositiveSyntax
approval
action
trig-star-syntax-inside-02.trig
trig-star-nested-1: TriG-star - nested quoted triple, subject position
type
rdft:TestTrigPositiveSyntax
approval
action
trig-star-syntax-nested-01.trig
trig-star-nested-2: TriG-star - nested quoted triple, object position
type
rdft:TestTrigPositiveSyntax
approval
action
trig-star-syntax-nested-02.trig
trig-star-compound-1: TriG-star - compound forms
type
rdft:TestTrigPositiveSyntax
approval
action
trig-star-syntax-compound.trig
trig-star-bnode-1: TriG-star - blank node subject
type
rdft:TestTrigPositiveSyntax
approval
action
trig-star-syntax-bnode-01.trig
trig-star-bnode-2: TriG-star - blank node object
type
rdft:TestTrigPositiveSyntax
approval
action
trig-star-syntax-bnode-02.trig
trig-star-bnode-3: TriG-star - blank node
type
rdft:TestTrigPositiveSyntax
approval
action
trig-star-syntax-bnode-03.trig
trig-star-bad-1: TriG-star - bad - quoted triple as predicate
type
rdft:TestTrigNegativeSyntax
approval
action
trig-star-syntax-bad-01.trig
trig-star-bad-2: TriG-star - bad - quoted triple outside triple
type
rdft:TestTrigNegativeSyntax
approval
action
trig-star-syntax-bad-02.trig
trig-star-bad-3: TriG-star - bad - collection list in quoted triple
type
rdft:TestTrigNegativeSyntax
approval
action
trig-star-syntax-bad-03.trig
trig-star-bad-4: TriG-star - bad - literal in subject position of quoted triple
type
rdft:TestTrigNegativeSyntax
approval
action
trig-star-syntax-bad-04.trig
trig-star-bad-5: TriG-star - bad - blank node as predicate in quoted triple
type
rdft:TestTrigNegativeSyntax
approval
action
trig-star-syntax-bad-05.trig
trig-star-bad-6: TriG-star - bad - compound blank node expression
type
rdft:TestTrigNegativeSyntax
approval
action
trig-star-syntax-bad-06.trig
trig-star-bad-7: TriG-star - bad - incomplete quoted triple
type
rdft:TestTrigNegativeSyntax
approval
action
trig-star-syntax-bad-07.trig
trig-star-bad-8: TriG-star - bad - over-long quoted triple
type
rdft:TestTrigNegativeSyntax
approval
action
trig-star-syntax-bad-08.trig
trig-star-ann-1: TriG-star - Annotation form
type
rdft:TestTrigPositiveSyntax
approval
action
trig-star-annotation-1.trig
trig-star-ann-2: TriG-star - Annotation example
type
rdft:TestTrigPositiveSyntax
approval
action
trig-star-annotation-2.trig
trig-star-bad-ann-1: TriG-star - bad - empty annotation
type
rdft:TestTrigNegativeSyntax
approval
action
trig-star-syntax-bad-ann-1.trig
trig-star-bad-ann-2: TriG-star - bad - triple as annotation
type
rdft:TestTrigNegativeSyntax
approval
action
trig-star-syntax-bad-ann-2.trig
trig-base-1: base direction ltr
type
rdft:TestTrigPositiveSyntax
approval
action
trig-base-1.trig
trig-base-2: base direction ltr
type
rdft:TestTrigPositiveSyntax
approval
action
trig-base-2.trig
trig-base-bad-1: undefined base direction
type
rdft:TestTrigNegativeSyntax
approval
action
trig-base-bad-1.trig
trig-base-bad-2: upper case LTR
type
rdft:TestTrigNegativeSyntax
approval
action
trig-base-bad-2.trig