Skip to content

Commit 7ff5c31

Browse files
committed
Adds three aditional blankNodePropertyList TestTurtleEval tests
The three tests provide additional blankNodePropertyList tests. They are not intended to ensure that syntax for blank node property lists are correctly parsed when used either as a subject or as an object, because these cases are covered by tests: blankNodePropertyList_as_subject blankNodePropertyList_as_object Rather, these three new test cases check that blank nodes are created and used (and subsequently no longer used) in the correct places in the constructed RDF graph after parsing. These three additional tests uncovered bugs in the rdf4h Haskell RDF parser, that were not highlighted by any of the existing rdf-tests tests. Fixes to bugs uncovered by these new tests: robstewart57/rdf4h@ff435df
1 parent 5825737 commit 7ff5c31

7 files changed

+44
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<http://a.example/s> <http://a.example/p> _:b1 .
2+
_:b1 <http://a.example/p2> <http://a.example/o> .
3+
_:b1 <http://a.example/p2> <http://a.example/o2> .
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<http://a.example/s> <http://a.example/p> [ <http://a.example/p2> <http://a.example/o>,<http://a.example/o2> ] .
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<http://a.example/s> <http://a.example/p> _:b1 .
2+
_:b1 <http://a.example/p2> <http://a.example/o> .
3+
<http://a.example/s> <http://a.example/p> <http://a.example/o2> .
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<http://a.example/s> <http://a.example/p> [ <http://a.example/p2> <http://a.example/o> ]
2+
, <http://a.example/o2> .

turtle/manifest.ttl

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@
5959
<#sole_blankNodePropertyList>
6060
<#blankNodePropertyList_as_subject>
6161
<#blankNodePropertyList_as_object>
62+
<#blankNodePropertyList_as_object_containing_objectList>
63+
<#blankNodePropertyList_as_object_containing_objectList_of_two_objects>
6264
<#blankNodePropertyList_with_multiple_triples>
6365
<#nested_blankNodePropertyLists>
6466
<#blankNodePropertyList_containing_collection>
@@ -115,6 +117,7 @@
115117
<#lantag_with_subtag>
116118
<#objectList_with_two_objects>
117119
<#predicateObjectList_with_two_objectLists>
120+
<#predicateObjectList_with_blankNodePropertyList_as_object>
118121
<#repeated_semis_at_end>
119122
<#repeated_semis_not_at_end>
120123

@@ -636,6 +639,22 @@
636639
mf:result <blankNodePropertyList_as_object.nt> ;
637640
.
638641

642+
<#blankNodePropertyList_as_object_containing_objectList> rdf:type rdft:TestTurtleEval ;
643+
mf:name "blankNodePropertyList_as_object_containing_objectList" ;
644+
rdfs:comment "blankNodePropertyList as object containing objectList <s> <p> [ <p2> <o>,<o2> ] ." ;
645+
rdft:approval rdft:Approved ;
646+
mf:action <blankNodePropertyList_as_object_containing_objectList.ttl> ;
647+
mf:result <blankNodePropertyList_as_object_containing_objectList.nt> ;
648+
.
649+
650+
<#blankNodePropertyList_as_object_containing_objectList_of_two_objects> rdf:type rdft:TestTurtleEval ;
651+
mf:name "blankNodePropertyList_as_object_containing_objectList_of_two_objects" ;
652+
rdfs:comment "blankNodePropertyList as object containing objectList of two objects <s> <p> [ <p2 <o> ] , <o2> ." ;
653+
rdft:approval rdft:Approved ;
654+
mf:action <blankNodePropertyList_as_object_containing_objectList_of_two_objects.ttl> ;
655+
mf:result <blankNodePropertyList_as_object_containing_objectList_of_two_objects.nt> ;
656+
.
657+
639658
<#blankNodePropertyList_with_multiple_triples> rdf:type rdft:TestTurtleEval ;
640659
mf:name "blankNodePropertyList_with_multiple_triples" ;
641660
rdfs:comment "blankNodePropertyList with multiple triples [ <s> <p> ; <s2> <p2> ]" ;
@@ -1084,6 +1103,14 @@
10841103
mf:result <predicateObjectList_with_two_objectLists.nt> ;
10851104
.
10861105

1106+
<#predicateObjectList_with_blankNodePropertyList_as_object> rdf:type rdft:TestTurtleEval ;
1107+
mf:name "predicateObjectList_with_blankNodePropertyList_as_object" ;
1108+
rdfs:comment "predicateObjectList_with_blankNodePropertyList_as_object <s> <p> [ <p2> <o> ] ; <p3> [ <p4> <o2> , <o3> ] " ;
1109+
rdft:approval rdft:Approved ;
1110+
mf:action <predicateObjectList_with_blankNodePropertyList_as_object.ttl> ;
1111+
mf:result <predicateObjectList_with_blankNodePropertyList_as_object.nt> ;
1112+
.
1113+
10871114
<#repeated_semis_at_end> rdf:type rdft:TestTurtleEval ;
10881115
mf:name "repeated_semis_at_end" ;
10891116
rdfs:comment "repeated semis at end <s> <p> <o> ;; <p2> <o2> ." ;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<http://a.example/s> <http://a.example/p> _:b1 .
2+
_:b1 <http://a.example/p2> <http://a.example/o> .
3+
<http://a.example/s> <http://a.example/p3> _:b2 .
4+
_:b2 <http://a.example/p4> <http://a.example/o2> .
5+
_:b2 <http://a.example/p4> <http://a.example/o3> .
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<http://a.example/s> <http://a.example/p> [ <http://a.example/p2> <http://a.example/o> ]
2+
; <http://a.example/p3> [ <http://a.example/p4> <http://a.example/o2>
3+
, <http://a.example/o3> ] .

0 commit comments

Comments
 (0)