Copyright © 2004-2023 World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.
This page describes W3C RDF 1.1 Working Group's test suite.
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.
URI graph with URI triple
URI graph with BNode subject
URI graph with BNode object
URI graph with simple literal
URI graph with language tagged literal
URI graph with datatyped literal
BNode graph with URI triple
BNode graph with BNode subject
BNode graph with BNode object
BNode graph with simple literal
BNode graph with language tagged literal
BNode graph with datatyped literal
Graph name may not be a simple literal (negative test)
Graph name may not be a language tagged literal (negative test)
Graph name may not be a datatyped literal (negative test)
Graph name URI must be absolute (negative test)
N-Quads does not have a fifth element (negative test)
Empty file
Only comment
One comment, one empty line
Only IRIs
IRIs with Unicode escape
IRIs with long Unicode escape
Legal IRIs
string literal
langString literal
langString literal with region
string literal with escaped newline
string literal with Unicode escape
string literal with long Unicode escape
bnode subject
bnode object
Blank node labels may start with a digit
xsd:byte literal
integer as xsd:string
Bad IRI : space (negative test)
Bad IRI : bad escape (negative test)
Bad IRI : bad long escape (negative test)
Bad IRI : character escapes not allowed (negative test)
Bad IRI : character escapes not allowed (2) (negative test)
Bad IRI : relative IRI not allowed in subject (negative test)
Bad IRI : relative IRI not allowed in predicate (negative test)
Bad IRI : relative IRI not allowed in object (negative test)
Bad IRI : relative IRI not allowed in datatype (negative test)
@prefix not allowed in N-Quads (negative test)
@base not allowed in N-Quads (negative test)
Colon in bnode label not allowed (negative test)
Colon in bnode label not allowed (negative test)
N-Quads does not have objectList (negative test)
N-Quads does not have predicateObjectList (negative test)
langString with bad lang (negative test)
Bad string escape (negative test)
Bad string escape (negative test)
Bad string escape (negative test)
mismatching string literal open/close (negative test)
mismatching string literal open/close (negative test)
single quotes (negative test)
long single string literal (negative test)
long double string literal (negative test)
string literal with no end (negative test)
string literal with no start (negative test)
no numbers in N-Quads (integer) (negative test)
no numbers in N-Quads (decimal) (negative test)
no numbers in N-Quads (float) (negative test)
Submission test from Original RDF Test Cases
Tests comments after a triple
literal """x"""
literal_all_controls '\x00\x01\x02\x03\x04…'
literal_all_punctuation '!"#$%&()…'
literal_ascii_boundaries '\x00\x26\x28…'
literal with 2 squotes """a""b"""
literal with 2 squotes "x''y"
literal with BACKSPACE
literal with CARRIAGE RETURN
literal with CHARACTER TABULATION
literal with dquote "x"y"
literal with FORM FEED
literal with LINE FEED
literal with numeric escape4 \u
literal with numeric escape8 \U
literal with REVERSE SOLIDUS
REVERSE SOLIDUS at end of literal
literal with squote "x'y"
literal_with_UTF8_boundaries '\x80\x7ff\x800\xfff…'
langtagged string "x"@en
lantag with subtag "x"@en-us
tests absense of whitespace between subject, predicate, object and end-of-statement