W3C

RDF-star N-Triples Canonicalization Test Suite

Copyright © 2004-2023 World Wide Web Consortium. W3C® liability, trademark and permissive document license rules apply.


Abstract

@language en @value Tests the generation of canonical N-Triples.

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

comment_following_triple: C14N comment_following_triple

Tests canonicalization of triples including comments

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
comment_following_triple.nt
result
comment_following_triple-c14n.nt
extra_whitespace-01: C14N extra_whitespace-01

Tests canonicalization of triples with extra whitespace

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
extra_whitespace-01.nt
result
extra_whitespace-01-c14n.nt
extra_whitespace-02: C14N extra_whitespace-02

Tests canonicalization of triples with extra whitespace

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
extra_whitespace-02.nt
result
extra_whitespace-02-c14n.nt
extra_whitespace-03: C14N extra_whitespace-03

Tests canonicalization of triples with extra whitespace

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
extra_whitespace-03.nt
result
extra_whitespace-03-c14n.nt
extra_whitespace-04: C14N extra_whitespace-04

Tests canonicalization of triples with extra whitespace

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
extra_whitespace-04.nt
result
extra_whitespace-04-c14n.nt
langtagged_string: C14N langtagged_string

Tests canonicalization of triples including language-tagged string

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
langtagged_string.nt
result
langtagged_string-c14n.nt
dirlangtagged_string: C14N literal with base direction ltr

Tests canonicalization of triples including directional language-tagged string

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
dirlangtagged_string.nt
result
dirlangtagged_string-c14n.nt
literal_all_controls: C14N literal_all_controls

Tests canonicalization of literals with control characters

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_all_controls.nt
result
literal_all_controls-c14n.nt
literal_all_punctuation: C14N literal_all_punctuation

Tests canonicalization of literals with punctuation characters

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_all_punctuation.nt
result
literal_all_punctuation-c14n.nt
literal_ascii_boundaries: C14N literal_ascii_boundaries

Tests canonicalization of literal_ascii_boundaries '\x00\x26\x28…'

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_ascii_boundaries.nt
result
literal_ascii_boundaries-c14n.nt
literal_with_2_dquotes: C14N literal_with_2_dquotes

Tests canonicalization of literal with 2 dquotes """a""b"""

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_2_dquotes.nt
result
literal_with_2_dquotes-c14n.nt
literal_with_2_squotes: C14N literal_with_2_squotes

Tests canonicalization of literal with 2 squotes "x''y"

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_2_squotes.nt
result
literal_with_2_squotes-c14n.nt
literal_with_BACKSPACE: C14N literal_with_BACKSPACE

Tests canonicalization of literals with backspace

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_BACKSPACE.nt
result
literal_with_BACKSPACE-c14n.nt
literal_with_CARRIAGE_RETURN: C14N literal_with_CARRIAGE_RETURN

Tests canonicalization of literals with carriage return

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_CARRIAGE_RETURN.nt
result
literal_with_CARRIAGE_RETURN-c14n.nt
literal_with_CHARACTER_TABULATION: C14N literal_with_CHARACTER_TABULATION

Tests canonicalization of literals with character tabulation

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_CHARACTER_TABULATION.nt
result
literal_with_CHARACTER_TABULATION-c14n.nt
literal_with_dquote: C14N literal_with_dquote

Tests canonicalization of literals with double quote

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_dquote.nt
result
literal_with_dquote-c14n.nt
literal_with_FORM_FEED: C14N literal_with_FORM_FEED

Tests canonicalization of literals with form feed

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_FORM_FEED.nt
result
literal_with_FORM_FEED-c14n.nt
literal_with_LINE_FEED: C14N literal_with_LINE_FEED

Tests canonicalization of literals with line feed

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_LINE_FEED.nt
result
literal_with_LINE_FEED-c14n.nt
literal_with_numeric_escape4: C14N literal_with_numeric_escape4

Tests canonicalization of literals with numeric escapes

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_numeric_escape4.nt
result
literal_with_numeric_escape4-c14n.nt
literal_with_numeric_escape8: C14N literal_with_numeric_escape8

Tests canonicalization of literals with numeric escapes

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_numeric_escape8.nt
result
literal_with_numeric_escape8-c14n.nt
literal_with_REVERSE_SOLIDUS: C14N literal_with_REVERSE_SOLIDUS

Tests canonicalization of literals with reverse solidus

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_REVERSE_SOLIDUS.nt
result
literal_with_REVERSE_SOLIDUS-c14n.nt
literal_with_REVERSE_SOLIDUS2: C14N literal_with_REVERSE_SOLIDUS2

Tests canonicalization of literals with reverse solidus

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_REVERSE_SOLIDUS2.nt
result
literal_with_REVERSE_SOLIDUS2-c14n.nt
literal_with_squote: C14N literal_with_squote

Tests canonicalization of literals with single quotes

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_squote.nt
result
literal_with_squote-c14n.nt
literal_with_string_dt: C14N literal_with_string_dt

Tests canonicalization of literal with explicit xsd:string

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_string_dt.nt
result
literal_with_string_dt-c14n.nt
literal_with_UTF8_boundaries: C14N literal_with_UTF8_boundaries

Tests canonicalization of literals with UTF8 boundaries

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
literal_with_UTF8_boundaries.nt
result
literal_with_UTF8_boundaries-c14n.nt
minimal_whitespace-01: C14N minimal_whitespace-01

Tests canonicalization of triples without optional whitespace

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
minimal_whitespace-01.nt
result
minimal_whitespace-01-c14n.nt
minimal_whitespace-02: C14N minimal_whitespace-02

Tests canonicalization of triples without optional whitespace

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
minimal_whitespace-02.nt
result
minimal_whitespace-02-c14n.nt
nt-syntax-uri-01: C14N nt-syntax-uri-01

Tests canonicalization of IRIs

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
nt-syntax-uri-01.nt
result
nt-syntax-uri-01-c14n.nt
nt-syntax-uri-02: C14N nt-syntax-uri-02

Tests canonicalization of IRIs

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
nt-syntax-uri-02.nt
result
nt-syntax-uri-02-c14n.nt
nt-syntax-uri-03: C14N nt-syntax-uri-03

Tests canonicalization of IRIs

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
nt-syntax-uri-03.nt
result
nt-syntax-uri-03-c14n.nt
nt-syntax-uri-04: C14N nt-syntax-uri-04

Tests canonicalization of IRIs

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
nt-syntax-uri-04.nt
result
nt-syntax-uri-04-c14n.nt
nt-syntax-str-esc-01: C14N nt-syntax-str-esc-01

Tests canonicalization of string escapes

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
nt-syntax-str-esc-01.nt
result
nt-syntax-str-esc-01-c14n.nt
nt-syntax-str-esc-02: C14N nt-syntax-str-esc-02

Tests canonicalization of string escapes

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
nt-syntax-str-esc-02.nt
result
nt-syntax-str-esc-02-c14n.nt
nt-syntax-str-esc-03: C14N nt-syntax-str-esc-03

Tests canonicalization of string escapes

type
rdft:TestNTriplesPositiveC14N
approval
rdft:Proposed
action
nt-syntax-str-esc-03.nt
result
nt-syntax-str-esc-03-c14n.nt