W3C

RDF-star N-Quads 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-Quads.

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 quads including comments

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
comment_following_triple.nq
result
comment_following_triple-c14n.nq
extra_whitespace-01: C14N extra_whitespace-01

Tests canonicalization of quads with extra whitespace

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
extra_whitespace-01.nq
result
extra_whitespace-01-c14n.nq
extra_whitespace-02: C14N extra_whitespace-02

Tests canonicalization of quads with extra whitespace

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
extra_whitespace-02.nq
result
extra_whitespace-02-c14n.nq
extra_whitespace-03: C14N extra_whitespace-03

Tests canonicalization of quads with extra whitespace

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
extra_whitespace-03.nq
result
extra_whitespace-03-c14n.nq
extra_whitespace-04: C14N extra_whitespace-04

Tests canonicalization of quads with extra whitespace

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
extra_whitespace-04.nq
result
extra_whitespace-04-c14n.nq
langtagged_string: C14N langtagged_string

Tests canonicalization of quads including language-tagged string

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

Tests canonicalization of quads including directional language-tagged string

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
dirlangtagged_string.nq
result
dirlangtagged_string-c14n.nq
literal_all_controls: C14N literal_all_controls

Tests canonicalization of literals with control characters

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_all_controls.nq
result
literal_all_controls-c14n.nq
literal_all_punctuation: C14N literal_all_punctuation

Tests canonicalization of literals with punctuation characters

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_all_punctuation.nq
result
literal_all_punctuation-c14n.nq
literal_ascii_boundaries: C14N literal_ascii_boundaries

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

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_ascii_boundaries.nq
result
literal_ascii_boundaries-c14n.nq
literal_with_2_dquotes: C14N literal_with_2_dquotes

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

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_2_dquotes.nq
result
literal_with_2_dquotes-c14n.nq
literal_with_2_squotes: C14N literal_with_2_squotes

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

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_2_squotes.nq
result
literal_with_2_squotes-c14n.nq
literal_with_BACKSPACE: C14N literal_with_BACKSPACE

Tests canonicalization of literals with backspace

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_BACKSPACE.nq
result
literal_with_BACKSPACE-c14n.nq
literal_with_CARRIAGE_RETURN: C14N literal_with_CARRIAGE_RETURN

Tests canonicalization of literals with carriage return

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_CARRIAGE_RETURN.nq
result
literal_with_CARRIAGE_RETURN-c14n.nq
literal_with_CHARACTER_TABULATION: C14N literal_with_CHARACTER_TABULATION

Tests canonicalization of literals with character tabulation

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_CHARACTER_TABULATION.nq
result
literal_with_CHARACTER_TABULATION-c14n.nq
literal_with_dquote: C14N literal_with_dquote

Tests canonicalization of literals with double quote

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_dquote.nq
result
literal_with_dquote-c14n.nq
literal_with_FORM_FEED: C14N literal_with_FORM_FEED

Tests canonicalization of literals with form feed

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_FORM_FEED.nq
result
literal_with_FORM_FEED-c14n.nq
literal_with_LINE_FEED: C14N literal_with_LINE_FEED

Tests canonicalization of literals with line feed

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_LINE_FEED.nq
result
literal_with_LINE_FEED-c14n.nq
literal_with_numeric_escape4: C14N literal_with_numeric_escape4

Tests canonicalization of literals with numeric escapes

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_numeric_escape4.nq
result
literal_with_numeric_escape4-c14n.nq
literal_with_numeric_escape8: C14N literal_with_numeric_escape8

Tests canonicalization of literals with numeric escapes

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_numeric_escape8.nq
result
literal_with_numeric_escape8-c14n.nq
literal_with_REVERSE_SOLIDUS: C14N literal_with_REVERSE_SOLIDUS

Tests canonicalization of literals with reverse solidus

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_REVERSE_SOLIDUS.nq
result
literal_with_REVERSE_SOLIDUS-c14n.nq
literal_with_REVERSE_SOLIDUS2: C14N literal_with_REVERSE_SOLIDUS2

Tests canonicalization of literals with reverse solidus

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_REVERSE_SOLIDUS2.nq
result
literal_with_REVERSE_SOLIDUS2-c14n.nq
literal_with_squote: C14N literal_with_squote

Tests canonicalization of literals with single quotes

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_squote.nq
result
literal_with_squote-c14n.nq
literal_with_string_dt: C14N literal_with_string_dt

Tests canonicalization of literal with explicit xsd:string

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_string_dt.nq
result
literal_with_string_dt-c14n.nq
literal_with_UTF8_boundaries: C14N literal_with_UTF8_boundaries

Tests canonicalization of literals with UTF8 boundaries

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
literal_with_UTF8_boundaries.nq
result
literal_with_UTF8_boundaries-c14n.nq
minimal_whitespace-01: C14N minimal_whitespace-01

Tests canonicalization of quads without optional whitespace

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
minimal_whitespace-01.nq
result
minimal_whitespace-01-c14n.nq
minimal_whitespace-02: C14N minimal_whitespace-02

Tests canonicalization of quads without optional whitespace

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

Tests canonicalization of IRIs

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
nq-syntax-uri-01.nq
result
nq-syntax-uri-01-c14n.nq
nq-syntax-uri-02: C14N nq-syntax-uri-02

Tests canonicalization of IRIs

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
nq-syntax-uri-02.nq
result
nq-syntax-uri-02-c14n.nq
nq-syntax-uri-03: C14N nq-syntax-uri-03

Tests canonicalization of IRIs

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
nq-syntax-uri-03.nq
result
nq-syntax-uri-03-c14n.nq
nq-syntax-uri-04: C14N nq-syntax-uri-04

Tests canonicalization of IRIs

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

Tests canonicalization of string escapes

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

Tests canonicalization of string escapes

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

Tests canonicalization of string escapes

type
rdft:TestNQuadsPositiveC14N
approval
rdft:Proposed
action
nq-syntax-str-esc-03.nq
result
nq-syntax-str-esc-03-c14n.nq