Add more TriG test cases, organized at beginning of manifest.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Thu, 13 Jun 2013 17:17:41 -0700
changeset 841 8ecea2fa54f6
parent 840 fb8950afeb1f
child 842 b42a637ab9e6
Add more TriG test cases, organized at beginning of manifest.
trig/tests/alternating_bnode_graphs.nq
trig/tests/alternating_bnode_graphs.trig
trig/tests/alternating_iri_graphs.nq
trig/tests/alternating_iri_graphs.trig
trig/tests/manifest.ttl
trig/tests/trig-syntax-bad-base-04.trig
trig/tests/trig-syntax-bad-base-05.trig
trig/tests/trig-syntax-bad-prefix-06.trig
trig/tests/trig-syntax-bad-prefix-07.trig
trig/tests/trig-syntax-bad-turtle-01.trig
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/alternating_bnode_graphs.nq	Thu Jun 13 17:17:41 2013 -0700
@@ -0,0 +1,4 @@
+<http://example/a> <http://example/b> <http://example/c> .
+<http://example/a> <http://example/b> <http://example/d> _:G .
+<http://example/a> <http://example/b> <http://example/e> .
+<http://example/a> <http://example/b> <http://example/f> _:G .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/alternating_bnode_graphs.trig	Thu Jun 13 17:17:41 2013 -0700
@@ -0,0 +1,5 @@
+@prefix : <http://example/> .
+{:a :b :c.}
+_:G {:a :b :d.}
+{:a :b :e.}
+_:G {:a :b :f.}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/alternating_iri_graphs.nq	Thu Jun 13 17:17:41 2013 -0700
@@ -0,0 +1,4 @@
+<http://example/a> <http://example/b> <http://example/c> .
+<http://example/a> <http://example/b> <http://example/d> <http://example/G> .
+<http://example/a> <http://example/b> <http://example/e> .
+<http://example/a> <http://example/b> <http://example/f> <http://example/G> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/alternating_iri_graphs.trig	Thu Jun 13 17:17:41 2013 -0700
@@ -0,0 +1,5 @@
+@prefix : <http://example/> .
+{:a :b :c.}
+:G {:a :b :d.}
+{:a :b :e.}
+:G {:a :b :f.}
--- a/trig/tests/manifest.ttl	Thu Jun 13 16:38:07 2013 -0700
+++ b/trig/tests/manifest.ttl	Thu Jun 13 17:17:41 2013 -0700
@@ -18,7 +18,17 @@
     rdfs:comment "TriG tests" ;
     mf:entries
     (
+    # TriG specific tests
+    <#anonymous_blank_node_graph>
+    <#labeled_blank_node_graph>
+    <#alternating_iri_graphs>
+    <#alternating_bnode_graphs>
+    <#trig-syntax-bad-base-04>
+    <#trig-syntax-bad-base-05>
+    <#trig-syntax-bad-prefix-06>
+    <#trig-syntax-bad-prefix-07>
 
+    # From Turtle tests
     # atomic tests
     <#IRI_subject>
     <#IRI_with_four_digit_numeric_escape>
@@ -50,14 +60,12 @@
     <#SPARQL_style_base>
     <#labeled_blank_node_subject>
     <#labeled_blank_node_object>
-    <#labeled_blank_node_graph>
     <#labeled_blank_node_with_PN_CHARS_BASE_character_boundaries>
     <#labeled_blank_node_with_leading_underscore>
     <#labeled_blank_node_with_leading_digit>
     <#labeled_blank_node_with_non_leading_extras>
     <#anonymous_blank_node_subject>
     <#anonymous_blank_node_object>
-    <#anonymous_blank_node_graph>
     <#sole_blankNodePropertyList>
     <#blankNodePropertyList_as_subject>
     <#blankNodePropertyList_as_object>
@@ -315,6 +323,67 @@
     <#trig-syntax-ns-dots>
     ) .
 
+# TriG tests
+<#anonymous_blank_node_graph> rdf:type rdft:TestTurtleEval ;
+   mf:name      "anonymous_blank_node_graph" ;
+   rdfs:comment "anonymous blank node graph" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <anonymous_blank_node_graph.trig> ;
+   mf:result    <labeled_blank_node_graph.nq> ;
+   .
+
+<#labeled_blank_node_graph> rdf:type rdft:TestTurtleEval ;
+   mf:name      "labeled_blank_node_graph" ;
+   rdfs:comment "labeled blank node graph" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <labeled_blank_node_graph.trig> ;
+   mf:result    <labeled_blank_node_graph.nq> ;
+   .
+<#alternating_iri_graphs> rdf:type rdft:TestTurtleEval ;
+   mf:name      "alternating_iri_graphs" ;
+   rdfs:comment "alternating graphs with IRI names" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <alternating_iri_graphs.trig> ;
+   mf:result    <alternating_iri_graphs.nq> ;
+   .
+
+<#alternating_bnode_graphs> rdf:type rdft:TestTurtleEval ;
+   mf:name      "alternating_bnode_graphs" ;
+   rdfs:comment "alternating graphs with BNode names" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <alternating_bnode_graphs.trig> ;
+   mf:result    <alternating_bnode_graphs.nq> ;
+   .
+
+<#trig-syntax-bad-base-04> rdf:type rdft:TestTurtleNegativeSyntax ;
+   mf:name    "trig-syntax-bad-base-04" ;
+   rdfs:comment "@base inside graph (negative test)" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <trig-syntax-bad-base-04.trig> ;
+   .
+
+<#trig-syntax-bad-base-05> rdf:type rdft:TestTurtleNegativeSyntax ;
+   mf:name    "trig-syntax-bad-base-05" ;
+   rdfs:comment "BASE inside graph (negative test)" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <trig-syntax-bad-base-05.trig> ;
+   .
+
+<#trig-syntax-bad-prefix-06> rdf:type rdft:TestTurtleNegativeSyntax ;
+   mf:name    "trig-syntax-bad-prefix-06" ;
+   rdfs:comment "@prefix inside graph (negative test)" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <trig-syntax-bad-prefix-06.trig> ;
+   .
+
+<#trig-syntax-bad-prefix-07> rdf:type rdft:TestTurtleNegativeSyntax ;
+   mf:name    "trig-syntax-bad-prefix-07" ;
+   rdfs:comment "PREFIX inside graph (negative test)" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <trig-syntax-bad-prefix-07.trig> ;
+   .
+
+# Original Turtle tests
 # atomic tests
 <#IRI_subject> rdf:type rdft:TestTurtleEval ;
    mf:name      "IRI_subject" ;
@@ -556,14 +625,6 @@
    mf:result    <labeled_blank_node_object.nq> ;
    .
 
-<#labeled_blank_node_graph> rdf:type rdft:TestTurtleEval ;
-   mf:name      "labeled_blank_node_graph" ;
-   rdfs:comment "labeled blank node graph" ;
-   rdft:approval rdft:Proposed ;
-   mf:action    <labeled_blank_node_graph.trig> ;
-   mf:result    <labeled_blank_node_graph.nq> ;
-   .
-
 <#labeled_blank_node_with_PN_CHARS_BASE_character_boundaries> rdf:type rdft:TestTurtleEval ;
    mf:name      "labeled_blank_node_with_PN_CHARS_BASE_character_boundaries" ;
    rdfs:comment "labeled blank node with PN_CHARS_BASE character boundaries (_:AZazÀÖØöø...)" ;
@@ -612,14 +673,6 @@
    mf:result    <anonymous_blank_node_object.nq> ;
    .
 
-<#anonymous_blank_node_graph> rdf:type rdft:TestTurtleEval ;
-   mf:name      "anonymous_blank_node_graph" ;
-   rdfs:comment "anonymous blank node graph" ;
-   rdft:approval rdft:Proposed ;
-   mf:action    <anonymous_blank_node_graph.trig> ;
-   mf:result    <labeled_blank_node_graph.nq> ;
-   .
-
 <#sole_blankNodePropertyList> rdf:type rdft:TestTurtleEval ;
    mf:name      "sole_blankNodePropertyList" ;
    rdfs:comment "sole blankNodePropertyList [ <p> <o> ] ." ;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/trig-syntax-bad-base-04.trig	Thu Jun 13 17:17:41 2013 -0700
@@ -0,0 +1,4 @@
+# @base inside graph
+{
+  @base <http://example/> .
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/trig-syntax-bad-base-05.trig	Thu Jun 13 17:17:41 2013 -0700
@@ -0,0 +1,4 @@
+# BASE inside graph
+{
+  BASE <http://example/>
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/trig-syntax-bad-prefix-06.trig	Thu Jun 13 17:17:41 2013 -0700
@@ -0,0 +1,4 @@
+# @prefix inside graph
+{
+  @prefix ex: <http://example/> .
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trig/tests/trig-syntax-bad-prefix-07.trig	Thu Jun 13 17:17:41 2013 -0700
@@ -0,0 +1,4 @@
+# PREFIX inside graph
+{
+  PREFIX ex: <http://example/>
+}