Added TriG tests for BNodePList and Collections as graph names.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Sun, 07 Jul 2013 16:08:13 -0600
changeset 933 92651a995fe4
parent 932 1f470c4ebbc0
child 934 0f2466565bc8
Added TriG tests for BNodePList and Collections as graph names.
trig/tests2/manifest.ttl
trig/tests2/trig-bnodeplist-graph-01.nq
trig/tests2/trig-bnodeplist-graph-01.trig
trig/tests2/trig-collection-graph-01.nq
trig/tests2/trig-collection-graph-01.trig
trig/tests2/trig-collection-graph-02.nq
trig/tests2/trig-collection-graph-02.trig
--- a/trig/tests2/manifest.ttl	Sun Jul 07 17:33:39 2013 +0100
+++ b/trig/tests2/manifest.ttl	Sun Jul 07 16:08:13 2013 -0600
@@ -45,6 +45,11 @@
     <#trig-graph-bad-10>
     <#trig-graph-bad-11>
 
+    <#trig-bnodeplist-graph-01>
+
+    <#trig-collection-graph-01>
+    <#trig-collection-graph-02>
+
     <#trig-turtle-01>
     <#trig-turtle-02>
     <#trig-turtle-03>
@@ -208,6 +213,29 @@
    mf:action    <trig-graph-bad-11.trig> ;
    .
 
+<#trig-bnodeplist-graph-01> rdf:type rdft:TestTrigEval ;
+   mf:name      "trig-bnodeplist-graph-01" ;
+   rdfs:comment "" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <trig-bnodeplist-graph-01.trig> ;
+   mf:result    <trig-bnodeplist-graph-01.nq> ;
+   .
+
+<#trig-collection-graph-01> rdf:type rdft:TestTrigEval ;
+   mf:name      "trig-collection-graph-01" ;
+   rdfs:comment "" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <trig-collection-graph-01.trig> ;
+   mf:result    <trig-collection-graph-01.nq> ;
+   .
+
+<#trig-collection-graph-02> rdf:type rdft:TestTrigEval ;
+   mf:name      "trig-collection-graph-02" ;
+   rdfs:comment "" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <trig-collection-graph-02.trig> ;
+   mf:result    <trig-collection-graph-02.nq> ;
+   .
 
 <#trig-turtle-01> rdf:type rdft:TestTrigPositiveSyntax ;
    mf:name      "trig-turtle-01" ;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests2/trig-bnodeplist-graph-01.nq	Sun Jul 07 16:08:13 2013 -0600
@@ -0,0 +1,2 @@
+_:a <http://example/p1> <http://example/o1> .
+<http://example/s> <http://example/p> <http://example/o> _:a .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests2/trig-bnodeplist-graph-01.trig	Sun Jul 07 16:08:13 2013 -0600
@@ -0,0 +1,4 @@
+# BlankNodePropertyList as Graph Name
+PREFIX : <http://example/> 
+
+[:p1 :o1] {:s :p :o}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests2/trig-collection-graph-01.nq	Sun Jul 07 16:08:13 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> <http://example/o> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests2/trig-collection-graph-01.trig	Sun Jul 07 16:08:13 2013 -0600
@@ -0,0 +1,4 @@
+# Collection as Graph Name
+PREFIX : <http://example/> 
+
+() {:s :p :o}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests2/trig-collection-graph-02.nq	Sun Jul 07 16:08:13 2013 -0600
@@ -0,0 +1,5 @@
+<http://example/s> <http://example/p> <http://example/o> _:a .
+_:a <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
+_:a <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:b .
+_:b <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "2"^^<http://www.w3.org/2001/XMLSchema#integer> .
+_:b <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests2/trig-collection-graph-02.trig	Sun Jul 07 16:08:13 2013 -0600
@@ -0,0 +1,4 @@
+# Collection as Graph Name
+PREFIX : <http://example/> 
+
+(1 2) {:s :p :o}