Skip to content

Commit f5b2ca9

Browse files
committed
More TriG tests
1 parent ac62959 commit f5b2ca9

File tree

45 files changed

+318
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+318
-65
lines changed

rdf/rdf11/rdf-trig/TESTS.tar.gz

-32.5 KB
Binary file not shown.

rdf/rdf11/rdf-trig/TESTS.zip

-118 KB
Binary file not shown.
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 <http://a.example/g>.
2+
_:b1 <http://a.example/p2> <http://a.example/o> <http://a.example/g>.
3+
_:b1 <http://a.example/p2> <http://a.example/o2> <http://a.example/g>.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<http://a.example/g> {
2+
<http://a.example/s> <http://a.example/p> [ <http://a.example/p2> <http://a.example/o>
3+
, <http://a.example/o2> ]
4+
}
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 <http://a.example/g>.
2+
_:b1 <http://a.example/p2> <http://a.example/o> <http://a.example/g>.
3+
<http://a.example/s> <http://a.example/p> <http://a.example/o2> <http://a.example/g>.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<http://a.example/g> {
2+
<http://a.example/s> <http://a.example/p> [ <http://a.example/p2> <http://a.example/o> ]
3+
, <http://a.example/o2>
4+
}

rdf/rdf11/rdf-trig/manifest.ttl

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@
7272
<#sole_blankNodePropertyList>
7373
<#blankNodePropertyList_as_subject>
7474
<#blankNodePropertyList_as_object>
75+
<#blankNodePropertyList_as_object_containing_objectList>
76+
<#blankNodePropertyList_as_object_containing_objectList_of_two_objects>
7577
<#blankNodePropertyList_with_multiple_triples>
7678
<#nested_blankNodePropertyLists>
7779
<#blankNodePropertyList_containing_collection>
@@ -128,6 +130,7 @@
128130
<#lantag_with_subtag>
129131
<#objectList_with_two_objects>
130132
<#predicateObjectList_with_two_objectLists>
133+
<#predicateObjectList_with_blankNodePropertyList_as_object>
131134
<#repeated_semis_at_end>
132135
<#repeated_semis_not_at_end>
133136

@@ -258,6 +261,16 @@
258261
<#trig-syntax-bad-n3-extras-11>
259262
<#trig-syntax-bad-n3-extras-12>
260263
<#trig-syntax-bad-n3-extras-13>
264+
<#trig-syntax-bad-numeric-escape-01>
265+
<#trig-syntax-bad-numeric-escape-02>
266+
<#trig-syntax-bad-numeric-escape-03>
267+
<#trig-syntax-bad-numeric-escape-04>
268+
<#trig-syntax-bad-numeric-escape-05>
269+
<#trig-syntax-bad-numeric-escape-06>
270+
<#trig-syntax-bad-numeric-escape-07>
271+
<#trig-syntax-bad-numeric-escape-08>
272+
<#trig-syntax-bad-numeric-escape-09>
273+
<#trig-syntax-bad-numeric-escape-10>
261274
<#trig-syntax-bad-struct-09>
262275
<#trig-syntax-bad-struct-10>
263276
<#trig-syntax-bad-struct-12>
@@ -781,6 +794,22 @@
781794
mf:result <blankNodePropertyList_as_object.nq> ;
782795
.
783796

797+
<#blankNodePropertyList_as_object_containing_objectList> rdf:type rdft:TestTrigEval ;
798+
mf:name "blankNodePropertyList_as_object_containing_objectList" ;
799+
rdfs:comment "blankNodePropertyList as object containing objectList <s> <p> [ <p2> <o>,<o2> ] ." ;
800+
rdft:approval rdft:Approved ;
801+
mf:action <blankNodePropertyList_as_object_containing_objectList.trig> ;
802+
mf:result <blankNodePropertyList_as_object_containing_objectList.nq> ;
803+
.
804+
805+
<#blankNodePropertyList_as_object_containing_objectList_of_two_objects> rdf:type rdft:TestTrigEval ;
806+
mf:name "blankNodePropertyList_as_object_containing_objectList_of_two_objects" ;
807+
rdfs:comment "blankNodePropertyList as object containing objectList of two objects <s> <p> [ <p2 <o> ] , <o2> ." ;
808+
rdft:approval rdft:Approved ;
809+
mf:action <blankNodePropertyList_as_object_containing_objectList_of_two_objects.trig> ;
810+
mf:result <blankNodePropertyList_as_object_containing_objectList_of_two_objects.nq> ;
811+
.
812+
784813
<#blankNodePropertyList_with_multiple_triples> rdf:type rdft:TestTrigEval ;
785814
mf:name "blankNodePropertyList_with_multiple_triples" ;
786815
rdfs:comment "blankNodePropertyList with multiple triples [ <s> <p> ; <s2> <p2> ]" ;
@@ -1229,6 +1258,14 @@
12291258
mf:result <predicateObjectList_with_two_objectLists.nq> ;
12301259
.
12311260

1261+
<#predicateObjectList_with_blankNodePropertyList_as_object> rdf:type rdft:TestTrigEval ;
1262+
mf:name "predicateObjectList_with_blankNodePropertyList_as_object" ;
1263+
rdfs:comment "predicateObjectList_with_blankNodePropertyList_as_object <s> <p> [ <p2> <o> ] ; <p3> [ <p4> <o2> , <o3> ] " ;
1264+
rdft:approval rdft:Approved ;
1265+
mf:action <predicateObjectList_with_blankNodePropertyList_as_object.trig> ;
1266+
mf:result <predicateObjectList_with_blankNodePropertyList_as_object.nq> ;
1267+
.
1268+
12321269
<#repeated_semis_at_end> rdf:type rdft:TestTrigEval ;
12331270
mf:name "repeated_semis_at_end" ;
12341271
rdfs:comment "repeated semis at end <s> <p> <o> ;; <p2> <o2> ." ;
@@ -2028,6 +2065,76 @@
20282065
mf:action <trig-syntax-bad-n3-extras-13.trig> ;
20292066
.
20302067

2068+
<#trig-syntax-bad-numeric-escape-01> rdf:type rdft:TestTrigNegativeSyntax ;
2069+
mf:name "trig-syntax-bad-numeric-escape-01" ;
2070+
rdfs:comment "Surrogates not allowed in STRING_LITERAL_QUOTE" ;
2071+
rdft:approval rdft:Approved ;
2072+
mf:action <trig-syntax-bad-numeric-escape-01.trig> ;
2073+
.
2074+
2075+
<#trig-syntax-bad-numeric-escape-02> rdf:type rdft:TestTrigNegativeSyntax ;
2076+
mf:name "trig-syntax-bad-numeric-escape-02" ;
2077+
rdfs:comment "Surrogates not allowed in STRING_LITERAL_QUOTE" ;
2078+
rdft:approval rdft:Approved ;
2079+
mf:action <trig-syntax-bad-numeric-escape-02.trig> ;
2080+
.
2081+
2082+
<#trig-syntax-bad-numeric-escape-03> rdf:type rdft:TestTrigNegativeSyntax ;
2083+
mf:name "trig-syntax-bad-numeric-escape-03" ;
2084+
rdfs:comment "Surrogates not allowed in STRING_LITERAL_SINGLE_QUOTE" ;
2085+
rdft:approval rdft:Approved ;
2086+
mf:action <trig-syntax-bad-numeric-escape-03.trig> ;
2087+
.
2088+
2089+
<#trig-syntax-bad-numeric-escape-04> rdf:type rdft:TestTrigNegativeSyntax ;
2090+
mf:name "trig-syntax-bad-numeric-escape-04" ;
2091+
rdfs:comment "Surrogates not allowed in STRING_LITERAL_SINGLE_QUOTE" ;
2092+
rdft:approval rdft:Approved ;
2093+
mf:action <trig-syntax-bad-numeric-escape-04.trig> ;
2094+
.
2095+
2096+
<#trig-syntax-bad-numeric-escape-05> rdf:type rdft:TestTrigNegativeSyntax ;
2097+
mf:name "trig-syntax-bad-numeric-escape-05" ;
2098+
rdfs:comment "Surrogates not allowed in STRING_LITERAL_LONG_SINGLE_QUOTE" ;
2099+
rdft:approval rdft:Approved ;
2100+
mf:action <trig-syntax-bad-numeric-escape-05.trig> ;
2101+
.
2102+
2103+
<#trig-syntax-bad-numeric-escape-06> rdf:type rdft:TestTrigNegativeSyntax ;
2104+
mf:name "trig-syntax-bad-numeric-escape-06" ;
2105+
rdfs:comment "Surrogates not allowed in STRING_LITERAL_LONG_SINGLE_QUOTE" ;
2106+
rdft:approval rdft:Approved ;
2107+
mf:action <trig-syntax-bad-numeric-escape-06.trig> ;
2108+
.
2109+
2110+
<#trig-syntax-bad-numeric-escape-07> rdf:type rdft:TestTrigNegativeSyntax ;
2111+
mf:name "trig-syntax-bad-numeric-escape-07" ;
2112+
rdfs:comment "Surrogates not allowed in STRING_LITERAL_LONG_QUOTE" ;
2113+
rdft:approval rdft:Approved ;
2114+
mf:action <trig-syntax-bad-numeric-escape-07.trig> ;
2115+
.
2116+
2117+
<#trig-syntax-bad-numeric-escape-08> rdf:type rdft:TestTrigNegativeSyntax ;
2118+
mf:name "trig-syntax-bad-numeric-escape-08" ;
2119+
rdfs:comment "Surrogates not allowed in STRING_LITERAL_LONG_QUOTE" ;
2120+
rdft:approval rdft:Approved ;
2121+
mf:action <trig-syntax-bad-numeric-escape-08.trig> ;
2122+
.
2123+
2124+
<#trig-syntax-bad-numeric-escape-09> rdf:type rdft:TestTrigNegativeSyntax ;
2125+
mf:name "trig-syntax-bad-numeric-escape-09" ;
2126+
rdfs:comment "Surrogates not allowed in IRIREF" ;
2127+
rdft:approval rdft:Approved ;
2128+
mf:action <trig-syntax-bad-numeric-escape-09.trig> ;
2129+
.
2130+
2131+
<#trig-syntax-bad-numeric-escape-10> rdf:type rdft:TestTrigNegativeSyntax ;
2132+
mf:name "trig-syntax-bad-numeric-escape-10" ;
2133+
rdfs:comment "Surrogates not allowed in IRIREF" ;
2134+
rdft:approval rdft:Approved ;
2135+
mf:action <trig-syntax-bad-numeric-escape-10.trig> ;
2136+
.
2137+
20312138
<#trig-syntax-bad-struct-09> rdf:type rdft:TestTrigNegativeSyntax ;
20322139
mf:name "trig-syntax-bad-struct-09" ;
20332140
rdfs:comment "extra '.' (negative test)" ;
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 <http://a.example/g> .
2+
_:b1 <http://a.example/p2> <http://a.example/o> <http://a.example/g> .
3+
<http://a.example/s> <http://a.example/p3> _:b2 <http://a.example/g> .
4+
_:b2 <http://a.example/p4> <http://a.example/o2> <http://a.example/g> .
5+
_:b2 <http://a.example/p4> <http://a.example/o3> <http://a.example/g> .
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<http://a.example/g> {
2+
<http://a.example/s> <http://a.example/p> [ <http://a.example/p2> <http://a.example/o> ]
3+
; <http://a.example/p3> [ <http://a.example/p4> <http://a.example/o2>
4+
, <http://a.example/o3> ] .
5+
}
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> "\ud800" .
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> "\udfff" .
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> '\ud800' .
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> '\udfff' .
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> """\ud800""" .
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> """\udfff""" .
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> '''\ud800''' .
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> '''\udfff''' .
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> <\ud800> .
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> <\udfff> .

0 commit comments

Comments
 (0)