W3C

N-Triples 1.2 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

ntriples-star-1: N-Triples-star - triple term
type
rdft:TestNTriplesPositiveSyntax
approval
action
ntriples-star-syntax-1.nt
ntriples-star-2: N-Triples-star - whitespace and terms
type
rdft:TestNTriplesPositiveSyntax
approval
action
ntriples-star-syntax-2.nt
ntriples-star-3: N-Triples-star - Nested, no whitespace
type
rdft:TestNTriplesPositiveSyntax
approval
action
ntriples-star-syntax-3.nt
ntriples-star-bnode-1: N-Triples-star - Blank node object
type
rdft:TestNTriplesPositiveSyntax
approval
action
ntriples-star-bnode-1.nt
ntriples-star-nested-1: N-Triples-star - Nested term
type
rdft:TestNTriplesPositiveSyntax
approval
action
ntriples-star-nested-1.nt
ntriples-base-1: N-Triples literal with base direction ltr
type
rdft:TestNTriplesPositiveSyntax
approval
action
ntriples-base-1.nt
ntriples-base-2: N-Triples literal with base direction rtl
type
rdft:TestNTriplesPositiveSyntax
approval
action
ntriples-base-2.nt
ntriples-star-bad-1: N-Triples-star - Bad - triple term as predicate
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-star-bad-syntax-1.nt
ntriples-star-bad-2: N-Triples-star - Bad - triple term, literal subject
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-star-bad-syntax-2.nt
ntriples-star-bad-3: N-Triples-star - Bad - triple term, literal predicate
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-star-bad-syntax-3.nt
ntriples-star-bad-4: N-Triples-star - Bad - triple term, blank node predicate
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-star-bad-syntax-4.nt
ntriples-star-bad-5: N-Triples-star - Bad - triple term as subject
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-star-bad-syntax-5.nt
ntriples-star-bad-quoted-1: N-Triples-star - Bad - subject quoted triple
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-star-bad-quoted-syntax-1.nt
ntriples-star-bad-quoted-2: N-Triples-star - Bad - object quoted triple
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-star-bad-quoted-syntax-2.nt
ntriples-star-bad-quoted-3: N-Triples-star - Bad - subject and object quoted triples
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-star-bad-quoted-syntax-3.nt
ntriples-star-bad-quoted-4: N-Triples-star - Bad - quoted triples whitespace and terms
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-star-bad-quoted-syntax-4.nt
ntriples-star-bnode-bad-annotated-syntax-1: N-Triples-star - Bad - annotated triple, blank node subject
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-star-bnode-bad-annotated-syntax-1.nt
ntriples-star-bnode-bad-annotated-syntax-2: N-Triples-star - Bad - annotated triple, blank node object
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-star-bnode-bad-annotated-syntax-2.nt
ntriples-star-nested-bad-annotated-syntax-1: N-Triples-star - Bad - annotated triple, nested subject term
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-star-nested-bad-annotated-syntax-1.nt
ntriples-star-nested-bad-annotated-syntax-2: N-Triples-star - Bad - annotated triple, nested object term
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-star-nested-bad-annotated-syntax-2.nt
ntriples-base-bad-1: N-Triples literal- Bad - undefined base direction
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-base-bad-1.nt
ntriples-base-bad-2: N-Triples literal- Bad - upper case LTR
type
rdft:TestNTriplesNegativeSyntax
approval
action
ntriples-base-bad-2.nt