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.
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-triples (negative test)
@base not allowed in N-Triples (negative test)
Colon in bnode label not allowed (negative test)
Colon in bnode label not allowed (negative test)
N-Triples does not have objectList (negative test)
N-Triples 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-Triples (integer) (negative test)
no numbers in N-Triples (decimal) (negative test)
no numbers in N-Triples (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 dquotes """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