W3C

RDF Dataset Canonicalization Test Vocabulary

This is a vocabulary document used to define classes and properties used in RDF Dataset Canonicalization Test Cases and associated test manifests.

This vocabulary extends the RDF Test Vocabulary and Test Manifest Vocabulary with Normalization-specific tests. The URI of the vocabulary is https://w3c.github.io/rdf-canon/tests/vocab# (abbreviated by rdfc in this document). Turtle and JSON-LD versions of the vocabulary are also available. The vocabulary is published by the W3C RDF Dataset Canonicalization Working Group.

Vocabulary Terms

The vocabulary terms below constitute the complete RDF Dataset Canonicalization Test vocabulary

Classes

rdfc:RDFC10EvalTest
RDFC-1.0 Evaluation Test

Canonicalization performed using the RDFC-1.0 algorithm. Results are compared as text where the result of running the test is serialized to canonical N-Quads, sorted in code point order.

subClassOf: rdfc:Test
rdfc:RDFC10MapTest
RDFC-1.0 Issued Identifiers Test

The result is a map of input blank node identifiers to their associated canonical identifiers.

subClassOf: rdfc:Test
rdfc:RDFC10NegativeEvalTest
RDFC-1.0 Negative Evaluation Test

An attempt to canonicalize a poison dataset should result in an error.

subClassOf: rdfc:Test
rdfc:Test
Superclass of all RDF Dataset Canonicalization tests

All RDF Dataset Canonicalization tests have an input file referenced using mf:action and a result file referenced using mf:result.

subClassOf:
  • mf:ManifestEntry
  • rdft:Test

Properties

rdfc:computationalComplexity
Computational complexity.

The input can be canonicalized with representation of relative computational complexity: "low", "medium", or "high". Inputs with high computational complexity are likely poison datasets.

domain: rdfc:Test
range: xsd:string
rdfc:hashAlgorithm
Hash algorithm to use

Used to specify an alternative hash algorithm. If unspecified, the default is "SHA256". Alternative values include "SHA384" and "SHA512".

domain: rdfc:Test
range: xsd:string