W3C

RDF 1.2 Semantics tests

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


Abstract

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

all-identical-quoted-triples-are-the-same: all-identical-quoted-triples-are-the-same

Multiple occurences of the same quoted triples are undistinguishable in the abstract model.

type
mf:PositiveEntailmentTest
approval
action
test001a.ttl
result
test001r.ttl
quoted-triples-no-spurious: quoted-triples-no-spurious

This test ensures that other entailments are not spurious.

type
mf:NegativeEntailmentTest
approval
action
test002a.ttl
result
test005.ttl
bnodes-in-quoted-subject: bnodes-in-quoted-subject

Terms inside quoted triples can be replaced by fresh bnodes.

type
mf:PositiveEntailmentTest
approval
action
test002a.ttl
result
test002sr.ttl
bnodes-in-quoted-object: bnodes-in-quoted-object

Terms inside quoted triples can be replaced by fresh bnodes.

type
mf:PositiveEntailmentTest
approval
action
test002a.ttl
result
test002or.ttl
bnodes-in-quoted-subject-and-object: bnodes-in-quoted-subject-and-object

Terms inside quoted triples can be replaced by fresh bnodes.

type
mf:PositiveEntailmentTest
approval
action
test002a.ttl
result
test002sor.ttl
bnodes-in-quoted-subject-and-object-fail: bnodes-in-quoted-subject-and-object-fail

The same bnode can not match different quoted terms.

type
mf:NegativeEntailmentTest
approval
action
test002a.ttl
result
test002sbr.ttl
same-bnode-same-quoted-term: same-bnode-same-quoted-term

Identical quoted term can be replaced by the same fresh bnode multiple times.

type
mf:PositiveEntailmentTest
approval
action
test003a.ttl
result
test002sbr.ttl
different-bnodes-same-quoted-term: different-bnodes-same-quoted-term

Different bnodes can match identical quoted terms.

type
mf:PositiveEntailmentTest
approval
action
test003a.ttl
result
test002sor.ttl
constrained-bnodes-in-quoted-subject: constrained-bnodes-in-quoted-subject

Terms inside and outside quoted triples can be replaced by fresh bnodes

type
mf:PositiveEntailmentTest
approval
action
test004a.ttl
result
test004sr.ttl
constrained-bnodes-in-quoted-object: constrained-bnodes-in-quoted-object

Terms inside and outside quoted triples can be replaced by fresh bnodes.

type
mf:PositiveEntailmentTest
approval
action
test004a.ttl
result
test004or.ttl
constrained-bnodes-in-quoted-fail: constrained-bnodes-in-quoted-fail

Quoted bnode identifiers share the same scope as non-quoted ones. A bnode that occurs both inside quoted triples and inside asserted triples must satisfy all occurrences at the same time.

type
mf:NegativeEntailmentTest
approval
action
test004a.ttl
result
test004fr.ttl
constrained-bnodes-on-literal: constrained-bnodes-on-literal

Literals inside and outside quoted triples can be replaced by fresh bnodes.

type
mf:PositiveEntailmentTest
approval
action
test006a.ttl
result
test006r.ttl
malformed-literal-control: malformed-literal-control

Checks that xsd:integer is indeed recognized, to ensure that malformed-literal-* tests do not pass spuriously.

type
mf:PositiveEntailmentTest
approval
action
malformed-literal-control.ttl
malformed-literal: malformed-literal

Malformed literals are allowed when quoted.

type
mf:NegativeEntailmentTest
approval
action
malformed-literal.ttl
malformed-literal-accepted: malformed-literal-accepted

Malformed literals are allowed when quoted.

type
mf:PositiveEntailmentTest
approval
action
malformed-literal.ttl
result
malformed-literal.ttl
malformed-literal-no-spurious: malformed-literal-no-spurious

Quoted malformed literals do not lead to spurious entailment.

type
mf:NegativeEntailmentTest
approval
action
malformed-literal.ttl
result
malformed-literal-other.ttl
malformed-literal-bnode-neg: malformed-literal-bnode

Malformed literals can not be replaced by blank nodes.

type
mf:NegativeEntailmentTest
approval
action
malformed-literal.ttl
result
test002or.ttl
opaque-literal-control: opaque-literal-control

Checks that xsd:integer is indeed recognized, to ensure that opaque-literal does not pass spuriously.

type
mf:PositiveEntailmentTest
approval
action
non-canonical-literal-control.ttl
result
canonical-literal-control.ttl
opaque-literal: opaque-literal

Quoted literals are opaque, even when their datatype is recognized.

type
mf:NegativeEntailmentTest
approval
action
non-canonical-literal.ttl
result
canonical-literal.ttl
opaque-language-string-control: opaque-language-string-control

Checks that language strings are indeed recognized, to ensure that opaque-language-string does not pass spuriously.

type
mf:PositiveEntailmentTest
approval
action
lowercase-language-string-control.ttl
result
upercase-language-string-control.ttl
opaque-language-string: opaque-language-string

Quoted literals (including language strings) are opaque, even when their datatype is recognized.

type
mf:NegativeEntailmentTest
approval
action
lowercase-language-string.ttl
result
upercase-language-string.ttl
opaque-iri-control: opaque-iri-control

Check that owl:sameAs works as expected, to ensure that opaque-iri does not pass spuriously.

type
mf:PositiveEntailmentTest
approval
action
control-sameas-a.ttl
result
control-sameas-r.ttl
opaque-iri: opaque-iri

Quoted IRIs are opaque.

type
mf:NegativeEntailmentTest
approval
action
superman.ttl
result
superman_undesired_entailment.ttl
quoted-not-asserted: quoted-not-asserted

Quoted triples are not asserted.

type
mf:NegativeEntailmentTest
approval
action
test002a.ttl
result
test002pgr.ttl
annotated-asserted: annotated-asserted

Annotated triples are asserted.

type
mf:PositiveEntailmentTest
approval
action
test007a.ttl
result
test007r1.ttl
annotation: annotation

Annotation are about the annotated triple.

type
mf:PositiveEntailmentTest
approval
action
test007a.ttl
result
test007r2.ttl
annotation-unfolded: annotation-unfolded

Annotation is the same as separate assertions.

type
mf:PositiveEntailmentTest
approval
action
test007a2.ttl
result
test007a.ttl