From 6eeed72dcb072c800b5f80d34a67311ba2e1cfb2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Apr 2023 09:00:28 -0400 Subject: Update Turtle test suite This suite can't be exactly copied because it has modifications to support exact streaming tests, but this commit incorporates some upstream changes manually. --- ...PropertyList_as_object_containing_objectList.nt | 3 + ...ropertyList_as_object_containing_objectList.ttl | 1 + ..._object_containing_objectList_of_two_objects.nt | 3 + ...object_containing_objectList_of_two_objects.ttl | 2 + test/w3c/TurtleTests/manifest.ttl | 88 ++++++++++++++++------ ...ectList_with_blankNodePropertyList_as_object.nt | 5 ++ ...ctList_with_blankNodePropertyList_as_object.ttl | 3 + test/w3c/TurtleTests/turtle-eval-lists-01.nt | 1 + test/w3c/TurtleTests/turtle-eval-lists-01.ttl | 2 + test/w3c/TurtleTests/turtle-eval-lists-02.nt | 7 ++ test/w3c/TurtleTests/turtle-eval-lists-02.ttl | 2 + test/w3c/TurtleTests/turtle-eval-lists-03.nt | 5 ++ test/w3c/TurtleTests/turtle-eval-lists-03.ttl | 2 + test/w3c/TurtleTests/turtle-eval-lists-04.nt | 5 ++ test/w3c/TurtleTests/turtle-eval-lists-04.ttl | 2 + test/w3c/TurtleTests/turtle-eval-lists-05.nt | 19 +++++ test/w3c/TurtleTests/turtle-eval-lists-05.ttl | 2 + .../w3c/TurtleTests/turtle-syntax-bad-bnode-01.ttl | 1 + .../w3c/TurtleTests/turtle-syntax-bad-bnode-02.ttl | 1 + test/w3c/TurtleTests/turtle-syntax-lists-01.ttl | 2 - test/w3c/TurtleTests/turtle-syntax-lists-02.ttl | 2 - test/w3c/TurtleTests/turtle-syntax-lists-03.ttl | 2 - test/w3c/TurtleTests/turtle-syntax-lists-04.ttl | 2 - test/w3c/TurtleTests/turtle-syntax-lists-05.ttl | 2 - 24 files changed, 133 insertions(+), 31 deletions(-) create mode 100644 test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList.nt create mode 100644 test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList.ttl create mode 100644 test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList_of_two_objects.nt create mode 100644 test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList_of_two_objects.ttl create mode 100644 test/w3c/TurtleTests/predicateObjectList_with_blankNodePropertyList_as_object.nt create mode 100644 test/w3c/TurtleTests/predicateObjectList_with_blankNodePropertyList_as_object.ttl create mode 100644 test/w3c/TurtleTests/turtle-eval-lists-01.nt create mode 100644 test/w3c/TurtleTests/turtle-eval-lists-01.ttl create mode 100644 test/w3c/TurtleTests/turtle-eval-lists-02.nt create mode 100644 test/w3c/TurtleTests/turtle-eval-lists-02.ttl create mode 100644 test/w3c/TurtleTests/turtle-eval-lists-03.nt create mode 100644 test/w3c/TurtleTests/turtle-eval-lists-03.ttl create mode 100644 test/w3c/TurtleTests/turtle-eval-lists-04.nt create mode 100644 test/w3c/TurtleTests/turtle-eval-lists-04.ttl create mode 100644 test/w3c/TurtleTests/turtle-eval-lists-05.nt create mode 100644 test/w3c/TurtleTests/turtle-eval-lists-05.ttl create mode 100644 test/w3c/TurtleTests/turtle-syntax-bad-bnode-01.ttl create mode 100644 test/w3c/TurtleTests/turtle-syntax-bad-bnode-02.ttl delete mode 100644 test/w3c/TurtleTests/turtle-syntax-lists-01.ttl delete mode 100644 test/w3c/TurtleTests/turtle-syntax-lists-02.ttl delete mode 100644 test/w3c/TurtleTests/turtle-syntax-lists-03.ttl delete mode 100644 test/w3c/TurtleTests/turtle-syntax-lists-04.ttl delete mode 100644 test/w3c/TurtleTests/turtle-syntax-lists-05.ttl (limited to 'test/w3c') diff --git a/test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList.nt b/test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList.nt new file mode 100644 index 00000000..03618699 --- /dev/null +++ b/test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList.nt @@ -0,0 +1,3 @@ + _:b1 . +_:b1 . +_:b1 . diff --git a/test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList.ttl b/test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList.ttl new file mode 100644 index 00000000..c5e224df --- /dev/null +++ b/test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList.ttl @@ -0,0 +1 @@ + [ , ] . diff --git a/test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList_of_two_objects.nt b/test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList_of_two_objects.nt new file mode 100644 index 00000000..d67ef6ca --- /dev/null +++ b/test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList_of_two_objects.nt @@ -0,0 +1,3 @@ + _:b1 . +_:b1 . + . diff --git a/test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList_of_two_objects.ttl b/test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList_of_two_objects.ttl new file mode 100644 index 00000000..884fac6c --- /dev/null +++ b/test/w3c/TurtleTests/blankNodePropertyList_as_object_containing_objectList_of_two_objects.ttl @@ -0,0 +1,2 @@ + [ ] + , . diff --git a/test/w3c/TurtleTests/manifest.ttl b/test/w3c/TurtleTests/manifest.ttl index 0a24655e..5a0183ab 100644 --- a/test/w3c/TurtleTests/manifest.ttl +++ b/test/w3c/TurtleTests/manifest.ttl @@ -16,7 +16,7 @@ @prefix rdft: . <> rdf:type mf:Manifest ; - rdfs:comment "Turtle tests" ; + rdfs:label "Turtle tests" ; mf:entries ( @@ -59,6 +59,8 @@ <#sole_blankNodePropertyList> <#blankNodePropertyList_as_subject> <#blankNodePropertyList_as_object> + <#blankNodePropertyList_as_object_containing_objectList> + <#blankNodePropertyList_as_object_containing_objectList_of_two_objects> <#blankNodePropertyList_with_multiple_triples> <#nested_blankNodePropertyLists> <#blankNodePropertyList_containing_collection> @@ -115,6 +117,7 @@ <#lantag_with_subtag> <#objectList_with_two_objects> <#predicateObjectList_with_two_objectLists> + <#predicateObjectList_with_blankNodePropertyList_as_object> <#repeated_semis_at_end> <#repeated_semis_not_at_end> @@ -201,11 +204,11 @@ <#turtle-syntax-struct-03> <#turtle-syntax-struct-04> <#turtle-syntax-struct-05> - <#turtle-syntax-lists-01> - <#turtle-syntax-lists-02> - <#turtle-syntax-lists-03> - <#turtle-syntax-lists-04> - <#turtle-syntax-lists-05> + <#turtle-eval-lists-01> + <#turtle-eval-lists-02> + <#turtle-eval-lists-03> + <#turtle-eval-lists-04> + <#turtle-eval-lists-05> <#turtle-syntax-bad-uri-01> <#turtle-syntax-bad-uri-02> <#turtle-syntax-bad-uri-03> @@ -219,6 +222,8 @@ <#turtle-syntax-bad-base-01> <#turtle-syntax-bad-base-02> <#turtle-syntax-bad-base-03> + <#turtle-syntax-bad-bnode-01> + <#turtle-syntax-bad-bnode-02> <#turtle-syntax-bad-struct-01> <#turtle-syntax-bad-struct-02> <#turtle-syntax-bad-struct-03> @@ -630,6 +635,22 @@ mf:result ; . +<#blankNodePropertyList_as_object_containing_objectList> rdf:type rdft:TestTurtleEval ; + mf:name "blankNodePropertyList_as_object_containing_objectList" ; + rdfs:comment "blankNodePropertyList as object containing objectList

[ , ] ." ; + rdft:approval rdft:Approved ; + mf:action ; + mf:result ; + . + +<#blankNodePropertyList_as_object_containing_objectList_of_two_objects> rdf:type rdft:TestTurtleEval ; + mf:name "blankNodePropertyList_as_object_containing_objectList_of_two_objects" ; + rdfs:comment "blankNodePropertyList as object containing objectList of two objects

[ ] , ." ; + rdft:approval rdft:Approved ; + mf:action ; + mf:result ; + . + <#blankNodePropertyList_with_multiple_triples> rdf:type rdft:TestTurtleEval ; mf:name "blankNodePropertyList_with_multiple_triples" ; rdfs:comment "blankNodePropertyList with multiple triples [

; ]" ; @@ -1078,6 +1099,14 @@ mf:result ; . +<#predicateObjectList_with_blankNodePropertyList_as_object> rdf:type rdft:TestTurtleEval ; + mf:name "predicateObjectList_with_blankNodePropertyList_as_object" ; + rdfs:comment "predicateObjectList_with_blankNodePropertyList_as_object

[ ] ; [ , ] " ; + rdft:approval rdft:Approved ; + mf:action ; + mf:result ; + . + <#repeated_semis_at_end> rdf:type rdft:TestTurtleEval ; mf:name "repeated_semis_at_end" ; rdfs:comment "repeated semis at end

;; ." ; @@ -1571,39 +1600,44 @@ mf:action ; . -<#turtle-syntax-lists-01> rdf:type rdft:TestTurtlePositiveSyntax ; - mf:name "turtle-syntax-lists-01" ; +<#turtle-eval-lists-01> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-eval-lists-01" ; rdfs:comment "empty list" ; rdft:approval rdft:Approved ; - mf:action ; + mf:action ; + mf:result ; . -<#turtle-syntax-lists-02> rdf:type rdft:TestTurtlePositiveSyntax ; - mf:name "turtle-syntax-lists-02" ; +<#turtle-eval-lists-02> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-eval-lists-02" ; rdfs:comment "mixed list" ; rdft:approval rdft:Approved ; - mf:action ; + mf:action ; + mf:result ; . -<#turtle-syntax-lists-03> rdf:type rdft:TestTurtlePositiveSyntax ; - mf:name "turtle-syntax-lists-03" ; +<#turtle-eval-lists-03> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-eval-lists-03" ; rdfs:comment "isomorphic list as subject and object" ; rdft:approval rdft:Approved ; - mf:action ; + mf:action ; + mf:result ; . -<#turtle-syntax-lists-04> rdf:type rdft:TestTurtlePositiveSyntax ; - mf:name "turtle-syntax-lists-04" ; +<#turtle-eval-lists-04> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-eval-lists-04" ; rdfs:comment "lists of lists" ; rdft:approval rdft:Approved ; - mf:action ; + mf:action ; + mf:result ; . -<#turtle-syntax-lists-05> rdf:type rdft:TestTurtlePositiveSyntax ; - mf:name "turtle-syntax-lists-05" ; +<#turtle-eval-lists-05> rdf:type rdft:TestTurtleEval ; + mf:name "turtle-eval-lists-05" ; rdfs:comment "mixed lists with embedded lists" ; rdft:approval rdft:Approved ; - mf:action ; + mf:action ; + mf:result ; . <#turtle-syntax-bad-uri-01> rdf:type rdft:TestTurtleNegativeSyntax ; @@ -1697,6 +1731,18 @@ mf:action ; . +<#turtle-syntax-bad-bnode-01> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "turtle-syntax-bad-bnode-01" ; + rdfs:comment "Colon in bnode label not allowed (negative test)" ; + mf:action ; + . + +<#turtle-syntax-bad-bnode-02> rdf:type rdft:TestNTriplesNegativeSyntax ; + mf:name "turtle-syntax-bad-bnode-02" ; + rdfs:comment "Colon in bnode label not allowed (negative test)" ; + mf:action ; + . + <#turtle-syntax-bad-struct-01> rdf:type rdft:TestTurtleNegativeSyntax ; mf:name "turtle-syntax-bad-struct-01" ; rdfs:comment "Turtle is not TriG (negative test)" ; diff --git a/test/w3c/TurtleTests/predicateObjectList_with_blankNodePropertyList_as_object.nt b/test/w3c/TurtleTests/predicateObjectList_with_blankNodePropertyList_as_object.nt new file mode 100644 index 00000000..4ae67584 --- /dev/null +++ b/test/w3c/TurtleTests/predicateObjectList_with_blankNodePropertyList_as_object.nt @@ -0,0 +1,5 @@ + _:b1 . +_:b1 . + _:b2 . +_:b2 . +_:b2 . diff --git a/test/w3c/TurtleTests/predicateObjectList_with_blankNodePropertyList_as_object.ttl b/test/w3c/TurtleTests/predicateObjectList_with_blankNodePropertyList_as_object.ttl new file mode 100644 index 00000000..88de7744 --- /dev/null +++ b/test/w3c/TurtleTests/predicateObjectList_with_blankNodePropertyList_as_object.ttl @@ -0,0 +1,3 @@ + [ ] + ; [ + , ] . diff --git a/test/w3c/TurtleTests/turtle-eval-lists-01.nt b/test/w3c/TurtleTests/turtle-eval-lists-01.nt new file mode 100644 index 00000000..e4a87b2d --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-lists-01.nt @@ -0,0 +1 @@ + . diff --git a/test/w3c/TurtleTests/turtle-eval-lists-01.ttl b/test/w3c/TurtleTests/turtle-eval-lists-01.ttl new file mode 100644 index 00000000..c6ee0fbe --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-lists-01.ttl @@ -0,0 +1,2 @@ +@prefix : . +:s :p () . diff --git a/test/w3c/TurtleTests/turtle-eval-lists-02.nt b/test/w3c/TurtleTests/turtle-eval-lists-02.nt new file mode 100644 index 00000000..f2d81d46 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-lists-02.nt @@ -0,0 +1,7 @@ + _:b1 . +_:b1 "1"^^ . +_:b1 _:b2 . +_:b2 "2" . +_:b2 _:b3 . +_:b3 . +_:b3 . diff --git a/test/w3c/TurtleTests/turtle-eval-lists-02.ttl b/test/w3c/TurtleTests/turtle-eval-lists-02.ttl new file mode 100644 index 00000000..06a0cd1e --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-lists-02.ttl @@ -0,0 +1,2 @@ +@prefix : . +:s :p (1 "2" :o) . diff --git a/test/w3c/TurtleTests/turtle-eval-lists-03.nt b/test/w3c/TurtleTests/turtle-eval-lists-03.nt new file mode 100644 index 00000000..bac62c25 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-lists-03.nt @@ -0,0 +1,5 @@ +_:b1 "1"^^ . +_:b1 . +_:b1 _:b2 . +_:b2 "1"^^ . +_:b2 . diff --git a/test/w3c/TurtleTests/turtle-eval-lists-03.ttl b/test/w3c/TurtleTests/turtle-eval-lists-03.ttl new file mode 100644 index 00000000..e71f0273 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-lists-03.ttl @@ -0,0 +1,2 @@ +@prefix : . +(1) :p (1) . diff --git a/test/w3c/TurtleTests/turtle-eval-lists-04.nt b/test/w3c/TurtleTests/turtle-eval-lists-04.nt new file mode 100644 index 00000000..ba577791 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-lists-04.nt @@ -0,0 +1,5 @@ +_:b1 . +_:b1 . +_:b1 _:b2 . +_:b2 . +_:b2 . diff --git a/test/w3c/TurtleTests/turtle-eval-lists-04.ttl b/test/w3c/TurtleTests/turtle-eval-lists-04.ttl new file mode 100644 index 00000000..a9885389 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-lists-04.ttl @@ -0,0 +1,2 @@ +@prefix : . +(()) :p (()) . diff --git a/test/w3c/TurtleTests/turtle-eval-lists-05.nt b/test/w3c/TurtleTests/turtle-eval-lists-05.nt new file mode 100644 index 00000000..79225c4a --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-lists-05.nt @@ -0,0 +1,19 @@ +_:b1 "1"^^ . +_:b1 _:b2 . +_:b2 "2"^^ . +_:b2 _:b3 . +_:b3 _:b4 . +_:b4 "1"^^ . +_:b4 _:b5 . +_:b5 "2"^^ . +_:b5 . +_:b3 . +_:b1 _:b6 . +_:b6 _:b7 . +_:b7 "a" . +_:b7 . +_:b6 _:b8 . +_:b8 "b" . +_:b8 _:b9 . +_:b9 . +_:b9 . diff --git a/test/w3c/TurtleTests/turtle-eval-lists-05.ttl b/test/w3c/TurtleTests/turtle-eval-lists-05.ttl new file mode 100644 index 00000000..43e68a44 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-eval-lists-05.ttl @@ -0,0 +1,2 @@ +@prefix : . +(1 2 (1 2)) :p (( "a") "b" :o) . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-bnode-01.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-bnode-01.ttl new file mode 100644 index 00000000..a776d20d --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-bnode-01.ttl @@ -0,0 +1 @@ +_::a . diff --git a/test/w3c/TurtleTests/turtle-syntax-bad-bnode-02.ttl b/test/w3c/TurtleTests/turtle-syntax-bad-bnode-02.ttl new file mode 100644 index 00000000..093b8700 --- /dev/null +++ b/test/w3c/TurtleTests/turtle-syntax-bad-bnode-02.ttl @@ -0,0 +1 @@ +_:abc:def . diff --git a/test/w3c/TurtleTests/turtle-syntax-lists-01.ttl b/test/w3c/TurtleTests/turtle-syntax-lists-01.ttl deleted file mode 100644 index c6ee0fbe..00000000 --- a/test/w3c/TurtleTests/turtle-syntax-lists-01.ttl +++ /dev/null @@ -1,2 +0,0 @@ -@prefix : . -:s :p () . diff --git a/test/w3c/TurtleTests/turtle-syntax-lists-02.ttl b/test/w3c/TurtleTests/turtle-syntax-lists-02.ttl deleted file mode 100644 index 06a0cd1e..00000000 --- a/test/w3c/TurtleTests/turtle-syntax-lists-02.ttl +++ /dev/null @@ -1,2 +0,0 @@ -@prefix : . -:s :p (1 "2" :o) . diff --git a/test/w3c/TurtleTests/turtle-syntax-lists-03.ttl b/test/w3c/TurtleTests/turtle-syntax-lists-03.ttl deleted file mode 100644 index e71f0273..00000000 --- a/test/w3c/TurtleTests/turtle-syntax-lists-03.ttl +++ /dev/null @@ -1,2 +0,0 @@ -@prefix : . -(1) :p (1) . diff --git a/test/w3c/TurtleTests/turtle-syntax-lists-04.ttl b/test/w3c/TurtleTests/turtle-syntax-lists-04.ttl deleted file mode 100644 index a9885389..00000000 --- a/test/w3c/TurtleTests/turtle-syntax-lists-04.ttl +++ /dev/null @@ -1,2 +0,0 @@ -@prefix : . -(()) :p (()) . diff --git a/test/w3c/TurtleTests/turtle-syntax-lists-05.ttl b/test/w3c/TurtleTests/turtle-syntax-lists-05.ttl deleted file mode 100644 index 43e68a44..00000000 --- a/test/w3c/TurtleTests/turtle-syntax-lists-05.ttl +++ /dev/null @@ -1,2 +0,0 @@ -@prefix : . -(1 2 (1 2)) :p (( "a") "b" :o) . -- cgit v1.2.1