Copyright © 2004-2026 World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.
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.1 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.
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.
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.
Language with direction
Language with direction and no RDF version
Language with direction and no ITS version
Language with direction on element directly
Language with version and direction on element directly
Direction with no language
Ignored triple term
Triple term having IRI subject
Triple term having BNode subject
Triple term having a type
Triple term having BNode object
Recursive triple term
Invalid triple term having no predicate or object
Invalid triple term having two objects
On literal with IRI reifier
On literal with BNode reifier
On literal with IRI reifier and annotations
An empty property element just gives an empty literal. Annotate the statement at the same time. (See rdfms-empty-property-elements-test005 in 1.1 test suite)
Here the parseType indicates that we should create a resource. We annotate the statement at the same time. (See rdfms-empty-property-elements-test006 in 1.1 test suite)
rdf:annotation on an empty property element indicates reification. (See rdfms-not-id-and-resource-attr-test001 in 1.1 test suite)
Node with annotation having a type
Node with annotation having an IRI value
Node with annotation having an BNode value
Node with recursive annotation
rdf:annotation and rdf:resource are allowed together on empty property element.
rdf:annotationNodeID and rdf:resource are allowed together on empty property element.
rdf:annotation and parseType="Literal".
rdf:annotationNodeID and parseType="Literal".
rdf:annotation and parseType="Collection".
rdf:annotationNodeID and parseType="Collection".
RDF 1.1 reification and RDF 1.2 annotation