Turtle-star Evaluation 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-tests/

Entries:

About this test suite

https://w3c.github.io/rdf-tests/

Turtle-star - subject quoted triple 🔗

status:proposed
type:rdft:TestTurtleEval
turtle-star-eval-01.ttl
PREFIX : <http://example/>

<<:s :p :o>> :q :z .
MUST result into
turtle-star-eval-01.nt
<< <http://example/s> <http://example/p> <http://example/o> >> <http://example/q> <http://example/z> .

Turtle-star - object quoted triple 🔗

status:proposed
type:rdft:TestTurtleEval
turtle-star-eval-02.ttl
PREFIX : <http://example/>

:a :q <<:s :p :o>> .
MUST result into
turtle-star-eval-02.nt
<http://example/a> <http://example/q> << <http://example/s> <http://example/p> <http://example/o> >> .

Turtle-star - blank node label 🔗

status:proposed
type:rdft:TestTurtleEval
turtle-star-eval-bnode-1.ttl
PREFIX : <http://example/>

_:b :p :o .
<<_:b :p :o>> :q :z .
MUST result into
turtle-star-eval-bnode-1.nt
_:b9 <http://example/p> <http://example/o> .
<< _:b9 <http://example/p> <http://example/o> >> <http://example/q> <http://example/z> .

Turtle-star - blank node labels 🔗

status:proposed
type:rdft:TestTurtleEval
turtle-star-eval-bnode-2.ttl
PREFIX : <http://example/>

_:a :p1 _:a .
<<_:a :p1 _:a >> :q <<_:a :p2 :o>> .
MUST result into
turtle-star-eval-bnode-2.nt
_:label1 <http://example/p1> _:label1 .
<< _:label1 <http://example/p1> _:label1 >> <http://example/q> << _:label1 <http://example/p2> <http://example/o> >> .

Turtle-star - Annotation form 🔗

status:proposed
type:rdft:TestTurtleEval
turtle-star-eval-annotation-1.ttl
PREFIX : <http://example/>

:s :p :o {| :r :z |} .
MUST result into
turtle-star-eval-annotation-1.nt
<http://example/s> <http://example/p> <http://example/o> .
<< <http://example/s> <http://example/p> <http://example/o> >> <http://example/r> <http://example/z> .

Turtle-star - Annotation example 🔗

status:proposed
type:rdft:TestTurtleEval
turtle-star-eval-annotation-2.ttl
PREFIX :       <http://example/>
PREFIX xsd:     <http://www.w3.org/2001/XMLSchema#>

:s :p :o {| :source [ :graph <http://host1/> ;
                      :date "2020-01-20"^^xsd:date
                    ] ;
            :source [ :graph <http://host2/> ;
                      :date "2020-12-31"^^xsd:date
                    ]
          |} .
MUST result into
turtle-star-eval-annotation-2.nt
<http://example/s> <http://example/p> <http://example/o> .
_:b1 <http://example/graph> <http://host1/> .
_:b1 <http://example/date> "2020-01-20"^^<http://www.w3.org/2001/XMLSchema#date> .
<< <http://example/s> <http://example/p> <http://example/o> >> <http://example/source> _:b1 .
_:b2 <http://example/graph> <http://host2/> .
_:b2 <http://example/date> "2020-12-31"^^<http://www.w3.org/2001/XMLSchema#date> .
<< <http://example/s> <http://example/p> <http://example/o> >> <http://example/source> _:b2 .

Turtle-star - Annotation - predicate and object lists 🔗

status:proposed
type:rdft:TestTurtleEval
turtle-star-eval-annotation-3.ttl
PREFIX : <http://example/>

:s :p :o {| :a :b |};
    :p2 :o2 {| :a2 :b2 |},
        :o3 {| :a3 :b3 |}.
MUST result into
turtle-star-eval-annotation-3.nt
<http://example/s> <http://example/p> <http://example/o> .
<< <http://example/s> <http://example/p> <http://example/o> >> <http://example/a> <http://example/b> .
<http://example/s> <http://example/p2> <http://example/o2> .
<< <http://example/s> <http://example/p2> <http://example/o2> >> <http://example/a2> <http://example/b2> .
<http://example/s> <http://example/p2> <http://example/o3> .
<< <http://example/s> <http://example/p2> <http://example/o3> >> <http://example/a3> <http://example/b3> .

Turtle-star - Annotation - nested 🔗

status:proposed
type:rdft:TestTurtleEval
turtle-star-eval-annotation-4.ttl
PREFIX : <http://example/>

:s :p :o {| :a :b {| :a2 :b2 |} |}.
MUST result into
turtle-star-eval-annotation-4.nt
<http://example/s> <http://example/p> <http://example/o> .
<< <http://example/s> <http://example/p> <http://example/o> >> <http://example/a> <http://example/b> .
<< << <http://example/s> <http://example/p> <http://example/o> >> <http://example/a> <http://example/b> >> <http://example/a2> <http://example/b2> .

Turtle-star - Annotation object list 🔗

status:proposed
type:rdft:TestTurtleEval
turtle-star-eval-annotation-5.ttl
PREFIX : <http://example/>

:s :p :o1, :o2 {| :a :b |} .

MUST result into
turtle-star-eval-annotation-5.nt
<http://example/s> <http://example/p> <http://example/o1> .
<http://example/s> <http://example/p> <http://example/o2> .
<< <http://example/s> <http://example/p> <http://example/o2> >> <http://example/a> <http://example/b> .

Turtle-star - Annotation with quoting 🔗

status:proposed
type:rdft:TestTurtleEval
turtle-star-eval-quoted-annotation-1.ttl
PREFIX : <http://example/>

:s :p :o {| :r <<:s1 :p1 :o1>> |} .
MUST result into
turtle-star-eval-quoted-annotation-1.nt
<http://example/s> <http://example/p> <http://example/o> .
<<<http://example/s> <http://example/p> <http://example/o>>> <http://example/r> <<<http://example/s1> <http://example/p1> <http://example/o1>>> .

Turtle-star - Annotation on triple with quoted subject 🔗

status:proposed
type:rdft:TestTurtleEval
turtle-star-eval-quoted-annotation-2.ttl
PREFIX : <http://example/>

<<:s1 :p1 :o1>> :p :o {| :r :z |} .
MUST result into
turtle-star-eval-quoted-annotation-2.nt
<<<http://example/s1> <http://example/p1> <http://example/o1>>> <http://example/p> <http://example/o> .
<<<<<http://example/s1> <http://example/p1> <http://example/o1>>> <http://example/p> <http://example/o>>> <http://example/r> <http://example/z> .

Turtle-star - Annotation on triple with quoted object 🔗

status:proposed
type:rdft:TestTurtleEval
turtle-star-eval-quoted-annotation-3.ttl
PREFIX : <http://example/>

:s :p <<:s2 :p2 :o2>> {| :r :z |} .
MUST result into
turtle-star-eval-quoted-annotation-3.nt
<http://example/s> <http://example/p> <<<http://example/s2> <http://example/p2> <http://example/o2>>> .
<<<http://example/s> <http://example/p> <<<http://example/s2> <http://example/p2> <http://example/o2>>>>> <http://example/r> <http://example/z> .