RDF-star Semantics tests

Generated from:manifest.jsonld
creator: RDF-star Interest Group within the W3C RDF-DEV Community Group
issued:2021-06-21
modified:2021-07-18
see also:https://w3c.github.io/rdf-star/tests/semantics/README

Entries:

About this test suite

https://w3c.github.io/rdf-star/tests/semantics/README

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

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

status:proposed
type:positive entailment test
regime:simple
test001a.ttl
prefix : <http://example.com/ns#>

<< :a :b :c >> :p1 :o1.
<< :a :b :c >> :p2 :o2.
MUST entail
test001r.ttl
prefix : <http://example.com/ns#>

<< :a :b :c >> :p1 :o1; :p2 :o2.

quoted-triples-no-spurious 🔗

This test ensures that other entailments are not spurious.

status:proposed
type:negative entailment test
regime:simple
test002a.ttl
prefix : <http://example.com/ns#>

<< :a :b :c >> :p1 :o1.
MUST NOT entail
test005.ttl
prefix : <http://example.com/ns#>

<< :a :b :d >> :p1 :o1.

bnodes-in-quoted-subject 🔗

Terms inside quoted triples can be replaced by fresh bnodes.

status:proposed
type:positive entailment test
regime:simple
test002a.ttl
prefix : <http://example.com/ns#>

<< :a :b :c >> :p1 :o1.
MUST entail
test002sr.ttl
prefix : <http://example.com/ns#>

<< _:x :b :c >> :p1 :o1.

bnodes-in-quoted-object 🔗

Terms inside quoted triples can be replaced by fresh bnodes.

status:proposed
type:positive entailment test
regime:simple
test002a.ttl
prefix : <http://example.com/ns#>

<< :a :b :c >> :p1 :o1.
MUST entail
test002or.ttl
prefix : <http://example.com/ns#>

<< :a :b _:x >> :p1 :o1.

bnodes-in-quoted-subject-and-object 🔗

Terms inside quoted triples can be replaced by fresh bnodes.

status:proposed
type:positive entailment test
regime:simple
test002a.ttl
prefix : <http://example.com/ns#>

<< :a :b :c >> :p1 :o1.
MUST entail
test002sor.ttl
prefix : <http://example.com/ns#>

<< _:x :b _:y >> :p1 :o1.

bnodes-in-quoted-subject-and-object-fail 🔗

The same bnode can not match different quoted terms.

status:proposed
type:negative entailment test
regime:simple
test002a.ttl
prefix : <http://example.com/ns#>

<< :a :b :c >> :p1 :o1.
MUST NOT entail
test002sbr.ttl
prefix : <http://example.com/ns#>

<< _:x :b _:x >> :p1 :o1.

same-bnode-same-quoted-term 🔗

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

status:proposed
type:positive entailment test
regime:simple
test003a.ttl
prefix : <http://example.com/ns#>

<< :a :b :a >> :p1 :o1.
MUST entail
test002sbr.ttl
prefix : <http://example.com/ns#>

<< _:x :b _:x >> :p1 :o1.

different-bnodes-same-quoted-term 🔗

Different bnodes can match identical quoted terms.

status:proposed
type:positive entailment test
regime:simple
test003a.ttl
prefix : <http://example.com/ns#>

<< :a :b :a >> :p1 :o1.
MUST entail
test002sor.ttl
prefix : <http://example.com/ns#>

<< _:x :b _:y >> :p1 :o1.

constrained-bnodes-in-quoted-subject 🔗

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

status:proposed
type:positive entailment test
regime:simple
test004a.ttl
prefix : <http://example.com/ns#>

<< :a :b :c >> :p1 :o1.
:a :label "A".
:c :label "C".
MUST entail
test004sr.ttl
prefix : <http://example.com/ns#>

<< _:x :b :c >> :p1 :o1.
_:x :label "A".

constrained-bnodes-in-quoted-object 🔗

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

status:proposed
type:positive entailment test
regime:simple
test004a.ttl
prefix : <http://example.com/ns#>

<< :a :b :c >> :p1 :o1.
:a :label "A".
:c :label "C".
MUST entail
test004or.ttl
prefix : <http://example.com/ns#>

<< :a :b _:x >> :p1 :o1.
_:x :label "C".

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.

status:proposed
type:negative entailment test
regime:simple
test004a.ttl
prefix : <http://example.com/ns#>

<< :a :b :c >> :p1 :o1.
:a :label "A".
:c :label "C".
MUST NOT entail
test004fr.ttl
prefix : <http://example.com/ns#>

<< _:x :b :c >> :p1 :o1.
_:x :label "C".

constrained-bnodes-on-literal 🔗

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

status:proposed
type:positive entailment test
regime:simple
test006a.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

<< :a :b "42"^^xsd:integer >> :p1 :o1.
:s2 :p2 "42"^^xsd:integer.
MUST entail
test006r.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

<< :a :b _:x >> :p1 :o1.
:s2 :p2 _:x.

malformed-literal-control 🔗

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

status:proposed
type:positive entailment test
regime:RDF
recognizing:xsd:integer
malformed-literal-control.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

:a :b "c"^^xsd:integer.
MUST entail
a contradiction

malformed-literal 🔗

Malformed literals are allowed when quoted.

status:proposed
type:negative entailment test
regime:RDF
recognizing:xsd:integer
malformed-literal.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

<< :a :b "c"^^xsd:integer >> :p1 :o1.
MUST NOT entail
a contradiction

malformed-literal-accepted 🔗

Malformed literals are allowed when quoted.

status:proposed
type:positive entailment test
regime:RDF
recognizing:xsd:integer
malformed-literal.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

<< :a :b "c"^^xsd:integer >> :p1 :o1.
MUST entail
malformed-literal.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

<< :a :b "c"^^xsd:integer >> :p1 :o1.

malformed-literal-no-spurious 🔗

Quoted malformed literals do not lead to spurious entailment.

status:proposed
type:negative entailment test
regime:RDF
recognizing:xsd:integer
malformed-literal.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

<< :a :b "c"^^xsd:integer >> :p1 :o1.
MUST NOT entail
malformed-literal-other.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

<< :a :b "d"^^xsd:integer >> :p1 :o1.

malformed-literal-bnode 🔗

Malformed literals can not be replaced by blank nodes.

status:proposed
type:negative entailment test
regime:RDF
recognizing:xsd:integer
malformed-literal.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

<< :a :b "c"^^xsd:integer >> :p1 :o1.
MUST NOT entail
test002or.ttl
prefix : <http://example.com/ns#>

<< :a :b _:x >> :p1 :o1.

opaque-literal-control 🔗

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

status:proposed
type:positive entailment test
regime:RDF
recognizing:xsd:integer
non-canonical-literal-control.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

:a :b "042"^^xsd:integer.
MUST entail
canonical-literal-control.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

:a :b "42"^^xsd:integer.

opaque-literal 🔗

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

status:proposed
type:negative entailment test
regime:RDF
recognizing:xsd:integer
non-canonical-literal.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

<< :a :b "042"^^xsd:integer >> :p1 :o1.
MUST NOT entail
canonical-literal.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

<< :a :b "42"^^xsd:integer >> :p1 :o1.

opaque-language-string-control 🔗

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

status:proposed
type:positive entailment test
regime:RDF
lowercase-language-string-control.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

:a :b "hello"@en-us.
MUST entail
upercase-language-string-control.ttl
prefix : <http://example.com/ns#>

:a :b "hello"@en-US.

opaque-language-string 🔗

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

status:proposed
type:negative entailment test
regime:RDF
lowercase-language-string.ttl
prefix : <http://example.com/ns#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>

<< :a :b "hello"@en-us >> :p1 :o1.
MUST NOT entail
upercase-language-string.ttl
prefix : <http://example.com/ns#>

<< :a :b "hello"@en-US >> :p1 :o1.

opaque-iri-control 🔗

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

status:proposed
type:positive entailment test
regime:RDFS-Plus
control-sameas-a.ttl
prefix : <http://example.com/ns#>
prefix owl: <http://www.w3.org/2002/07/owl#>

:superman :can :fly .
:clark owl:sameAs :superman.
MUST entail
control-sameas-r.ttl
prefix : <http://example.com/ns#>

:clark :can :fly .

opaque-iri 🔗

Quoted IRIs are opaque.

status:proposed
type:negative entailment test
regime:RDFS-Plus
superman.ttl
prefix : <http://example.com/ns#>
prefix owl: <http://www.w3.org/2002/07/owl#>

<< :superman :can :fly >> :reportedBy :clark.
:clark owl:sameAs :superman.
MUST NOT entail
superman_undesired_entailment.ttl
prefix : <http://example.com/ns#>

<< :clark :can :fly >> :reportedBy :clark.

quoted-not-asserted 🔗

Quoted triples are not asserted.

status:proposed
type:negative entailment test
regime:simple
test002a.ttl
prefix : <http://example.com/ns#>

<< :a :b :c >> :p1 :o1.
MUST NOT entail
test002pgr.ttl
prefix : <http://example.com/ns#>

:a :b :c.

annotated-asserted 🔗

Annotated triples are asserted.

status:proposed
type:positive entailment test
regime:simple
test007a.ttl
prefix : <http://example.com/ns#>

:a :b :c {| :p1 :o1 |}.
MUST entail
test007r1.ttl
prefix : <http://example.com/ns#>

:a :b :c.

annotation 🔗

Annotation are about the annotated triple.

status:proposed
type:positive entailment test
regime:simple
test007a.ttl
prefix : <http://example.com/ns#>

:a :b :c {| :p1 :o1 |}.
MUST entail
test007r2.ttl
prefix : <http://example.com/ns#>

<< :a :b :c >> :p1 :o1.

annotation-unfolded 🔗

Annotation is the same as separate assertions.

status:proposed
type:positive entailment test
regime:simple
test007a2.ttl
prefix : <http://example.com/ns#>

:a :b :c.
<< :a :b :c >> :p1 :o1.
MUST entail
test007a.ttl
prefix : <http://example.com/ns#>

:a :b :c {| :p1 :o1 |}.