jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [04/11] Sync with RDF 1.1 test suites
Date Tue, 23 Sep 2014 17:01:10 GMT
http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/negative_numeric.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/negative_numeric.nq b/jena-arq/testing/RIOT/Lang/TrigStd/negative_numeric.nq
new file mode 100644
index 0000000..9c7f812
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/negative_numeric.nq
@@ -0,0 +1,2 @@
+<http://a.example/s> <http://a.example/p> "-1"^^<http://www.w3.org/2001/XMLSchema#integer> .
+<http://a.example/s> <http://a.example/p> "-1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/negative_numeric.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/negative_numeric.trig b/jena-arq/testing/RIOT/Lang/TrigStd/negative_numeric.trig
new file mode 100644
index 0000000..cbfe85f
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/negative_numeric.trig
@@ -0,0 +1,2 @@
+{<http://a.example/s> <http://a.example/p> -1 .}
+<http://example/graph> {<http://a.example/s> <http://a.example/p> -1 .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/nested_blankNodePropertyLists.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/nested_blankNodePropertyLists.nq b/jena-arq/testing/RIOT/Lang/TrigStd/nested_blankNodePropertyLists.nq
new file mode 100644
index 0000000..541cd3b
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/nested_blankNodePropertyLists.nq
@@ -0,0 +1,6 @@
+_:b1 <http://a.example/p1> _:b2 .
+_:b2 <http://a.example/p2> <http://a.example/o2> .
+_:b1 <http://a.example/p> <http://a.example/o> .
+_:b3 <http://a.example/p1> _:b4 <http://example/graph> .
+_:b4 <http://a.example/p2> <http://a.example/o2> <http://example/graph> .
+_:b3 <http://a.example/p> <http://a.example/o> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/nested_blankNodePropertyLists.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/nested_blankNodePropertyLists.trig b/jena-arq/testing/RIOT/Lang/TrigStd/nested_blankNodePropertyLists.trig
new file mode 100644
index 0000000..5b28195
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/nested_blankNodePropertyLists.trig
@@ -0,0 +1,2 @@
+{[ <http://a.example/p1> [ <http://a.example/p2> <http://a.example/o2> ] ; <http://a.example/p> <http://a.example/o> ].}
+<http://example/graph> {[ <http://a.example/p1> [ <http://a.example/p2> <http://a.example/o2> ] ; <http://a.example/p> <http://a.example/o> ].}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/nested_collection.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/nested_collection.nq b/jena-arq/testing/RIOT/Lang/TrigStd/nested_collection.nq
new file mode 100644
index 0000000..9d3df97
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/nested_collection.nq
@@ -0,0 +1,10 @@
+<http://a.example/s> <http://a.example/p> _:outerEl1 .
+_:outerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:innerEl1 .
+_:innerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
+_:innerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
+_:outerEl1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
+<http://a.example/s> <http://a.example/p> _:outerEl3 <http://example/graph> .
+_:outerEl3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> _:innerEl3 <http://example/graph> .
+_:innerEl3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> .
+_:innerEl3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> .
+_:outerEl3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/nested_collection.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/nested_collection.trig b/jena-arq/testing/RIOT/Lang/TrigStd/nested_collection.trig
new file mode 100644
index 0000000..5d4a301
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/nested_collection.trig
@@ -0,0 +1,2 @@
+{<http://a.example/s> <http://a.example/p> ((1)) .}
+<http://example/graph> {<http://a.example/s> <http://a.example/p> ((1)) .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_PNAME_NS.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_PNAME_NS.nq b/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_PNAME_NS.nq
new file mode 100644
index 0000000..82d9629
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_PNAME_NS.nq
@@ -0,0 +1 @@
+<http://a.example/s> <http://a.example/p> <http://a.example/#numbersign> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_PNAME_NS.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_PNAME_NS.trig b/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_PNAME_NS.trig
new file mode 100644
index 0000000..2003fa4
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_PNAME_NS.trig
@@ -0,0 +1,3 @@
+@prefix p: <http://a.example/>.
+<http://a.example/s> <http://a.example/p> p:\#numbersign
+.

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_localName.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_localName.nq b/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_localName.nq
new file mode 100644
index 0000000..5ae57b8
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_localName.nq
@@ -0,0 +1 @@
+<http://a.example/s> <http://a.example/p> <http://a.example/o#numbersign> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_localName.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_localName.trig b/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_localName.trig
new file mode 100644
index 0000000..a0e39ec
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/number_sign_following_localName.trig
@@ -0,0 +1,3 @@
+@prefix p: <http://a.example/> .
+<http://a.example/s> <http://a.example/p> p:o\#numbersign
+.

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/numeric_with_leading_0.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/numeric_with_leading_0.nq b/jena-arq/testing/RIOT/Lang/TrigStd/numeric_with_leading_0.nq
new file mode 100644
index 0000000..f028e79
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/numeric_with_leading_0.nq
@@ -0,0 +1,2 @@
+<http://a.example/s> <http://a.example/p> "01"^^<http://www.w3.org/2001/XMLSchema#integer> .
+<http://a.example/s> <http://a.example/p> "01"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/numeric_with_leading_0.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/numeric_with_leading_0.trig b/jena-arq/testing/RIOT/Lang/TrigStd/numeric_with_leading_0.trig
new file mode 100644
index 0000000..6da8ad8
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/numeric_with_leading_0.trig
@@ -0,0 +1,2 @@
+{<http://a.example/s> <http://a.example/p> 01 .}
+<http://example/graph> {<http://a.example/s> <http://a.example/p> 01 .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/objectList_with_two_objects.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/objectList_with_two_objects.nq b/jena-arq/testing/RIOT/Lang/TrigStd/objectList_with_two_objects.nq
new file mode 100644
index 0000000..4b4e044
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/objectList_with_two_objects.nq
@@ -0,0 +1,4 @@
+<http://a.example/s> <http://a.example/p> <http://a.example/o1> .
+<http://a.example/s> <http://a.example/p> <http://a.example/o2> .
+<http://a.example/s> <http://a.example/p> <http://a.example/o1> <http://example/graph> .
+<http://a.example/s> <http://a.example/p> <http://a.example/o2> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/objectList_with_two_objects.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/objectList_with_two_objects.trig b/jena-arq/testing/RIOT/Lang/TrigStd/objectList_with_two_objects.trig
new file mode 100644
index 0000000..6dbe979
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/objectList_with_two_objects.trig
@@ -0,0 +1,2 @@
+{<http://a.example/s> <http://a.example/p> <http://a.example/o1>, <http://a.example/o2> .}
+<http://example/graph> {<http://a.example/s> <http://a.example/p> <http://a.example/o1>, <http://a.example/o2> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/old_style_base.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/old_style_base.trig b/jena-arq/testing/RIOT/Lang/TrigStd/old_style_base.trig
new file mode 100644
index 0000000..d1f5d4a
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/old_style_base.trig
@@ -0,0 +1,3 @@
+@base <http://a.example/>.
+{<s> <http://a.example/p> <http://a.example/o> .}
+<http://example/graph> {<s> <http://a.example/p> <http://a.example/o> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/old_style_prefix.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/old_style_prefix.trig b/jena-arq/testing/RIOT/Lang/TrigStd/old_style_prefix.trig
new file mode 100644
index 0000000..014c1f0
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/old_style_prefix.trig
@@ -0,0 +1,3 @@
+@prefix p: <http://a.example/>.
+{p:s <http://a.example/p> <http://a.example/o> .}
+<http://example/graph> {p:s <http://a.example/p> <http://a.example/o> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/percent_escaped_localName.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/percent_escaped_localName.nq b/jena-arq/testing/RIOT/Lang/TrigStd/percent_escaped_localName.nq
new file mode 100644
index 0000000..85273e9
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/percent_escaped_localName.nq
@@ -0,0 +1,2 @@
+<http://a.example/%25> <http://a.example/p> <http://a.example/o> .
+<http://a.example/%25> <http://a.example/p> <http://a.example/o> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/percent_escaped_localName.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/percent_escaped_localName.trig b/jena-arq/testing/RIOT/Lang/TrigStd/percent_escaped_localName.trig
new file mode 100644
index 0000000..a2b55c9
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/percent_escaped_localName.trig
@@ -0,0 +1,3 @@
+@prefix p: <http://a.example/>.
+{p:%25 <http://a.example/p> <http://a.example/o> .}
+<http://example/graph> {p:%25 <http://a.example/p> <http://a.example/o> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/positive_numeric.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/positive_numeric.nq b/jena-arq/testing/RIOT/Lang/TrigStd/positive_numeric.nq
new file mode 100644
index 0000000..2533758
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/positive_numeric.nq
@@ -0,0 +1,2 @@
+<http://a.example/s> <http://a.example/p> "+1"^^<http://www.w3.org/2001/XMLSchema#integer> .
+<http://a.example/s> <http://a.example/p> "+1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/positive_numeric.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/positive_numeric.trig b/jena-arq/testing/RIOT/Lang/TrigStd/positive_numeric.trig
new file mode 100644
index 0000000..5c7a166
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/positive_numeric.trig
@@ -0,0 +1,2 @@
+{<http://a.example/s> <http://a.example/p> +1 .}
+<http://example/graph> {<http://a.example/s> <http://a.example/p> +1 .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/predicateObjectList_with_two_objectLists.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/predicateObjectList_with_two_objectLists.nq b/jena-arq/testing/RIOT/Lang/TrigStd/predicateObjectList_with_two_objectLists.nq
new file mode 100644
index 0000000..0c20340
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/predicateObjectList_with_two_objectLists.nq
@@ -0,0 +1,4 @@
+<http://a.example/s> <http://a.example/p1> <http://a.example/o1> .
+<http://a.example/s> <http://a.example/p2> <http://a.example/o2> .
+<http://a.example/s> <http://a.example/p1> <http://a.example/o1> <http://example/graph> .
+<http://a.example/s> <http://a.example/p2> <http://a.example/o2> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/predicateObjectList_with_two_objectLists.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/predicateObjectList_with_two_objectLists.trig b/jena-arq/testing/RIOT/Lang/TrigStd/predicateObjectList_with_two_objectLists.trig
new file mode 100644
index 0000000..0513be2
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/predicateObjectList_with_two_objectLists.trig
@@ -0,0 +1,2 @@
+{<http://a.example/s> <http://a.example/p1> <http://a.example/o1>; <http://a.example/p2> <http://a.example/o2> .}
+<http://example/graph> {<http://a.example/s> <http://a.example/p1> <http://a.example/o1>; <http://a.example/p2> <http://a.example/o2> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/prefix_only_IRI.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/prefix_only_IRI.trig b/jena-arq/testing/RIOT/Lang/TrigStd/prefix_only_IRI.trig
new file mode 100644
index 0000000..c0f4d44
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/prefix_only_IRI.trig
@@ -0,0 +1,3 @@
+@prefix p: <http://a.example/s>.
+{p: <http://a.example/p> <http://a.example/o> .}
+<http://example/graph> {p: <http://a.example/p> <http://a.example/o> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/prefix_reassigned_and_used.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/prefix_reassigned_and_used.nq b/jena-arq/testing/RIOT/Lang/TrigStd/prefix_reassigned_and_used.nq
new file mode 100644
index 0000000..5e65c13
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/prefix_reassigned_and_used.nq
@@ -0,0 +1,2 @@
+<http://b.example/s> <http://a.example/p> <http://a.example/o> .
+<http://b.example/s> <http://a.example/p> <http://a.example/o> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/prefix_reassigned_and_used.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/prefix_reassigned_and_used.trig b/jena-arq/testing/RIOT/Lang/TrigStd/prefix_reassigned_and_used.trig
new file mode 100644
index 0000000..6abd7ea
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/prefix_reassigned_and_used.trig
@@ -0,0 +1,4 @@
+@prefix p: <http://a.example/>.
+@prefix p: <http://b.example/>.
+{p:s <http://a.example/p> <http://a.example/o> .}
+<http://example/graph> {p:s <http://a.example/p> <http://a.example/o> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/prefix_with_PN_CHARS_BASE_character_boundaries.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/prefix_with_PN_CHARS_BASE_character_boundaries.trig b/jena-arq/testing/RIOT/Lang/TrigStd/prefix_with_PN_CHARS_BASE_character_boundaries.trig
new file mode 100644
index 0000000..30b7b8a
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/prefix_with_PN_CHARS_BASE_character_boundaries.trig
@@ -0,0 +1,3 @@
+@prefix AZazÀÖØöø˿ͰͽͿ῿‌‍⁰↏Ⰰ⿯、퟿豈﷏ﷰ�𐀀󯿽: <http://a.example/> .
+{<http://a.example/s> <http://a.example/p> AZazÀÖØöø˿ͰͽͿ῿‌‍⁰↏Ⰰ⿯、퟿豈﷏ﷰ�𐀀󯿽:o}
+<http://example/graph> {<http://a.example/s> <http://a.example/p> AZazÀÖØöø˿ͰͽͿ῿‌‍⁰↏Ⰰ⿯、퟿豈﷏ﷰ�𐀀󯿽:o}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/prefix_with_non_leading_extras.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/prefix_with_non_leading_extras.trig b/jena-arq/testing/RIOT/Lang/TrigStd/prefix_with_non_leading_extras.trig
new file mode 100644
index 0000000..64e86f3
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/prefix_with_non_leading_extras.trig
@@ -0,0 +1,3 @@
+@prefix a·̀ͯ‿.⁀: <http://a.example/>.
+{a·̀ͯ‿.⁀:s <http://a.example/p> <http://a.example/o> .}
+<http://example/graph> {a·̀ͯ‿.⁀:s <http://a.example/p> <http://a.example/o> .}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/prefixed_IRI_object.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/prefixed_IRI_object.trig b/jena-arq/testing/RIOT/Lang/TrigStd/prefixed_IRI_object.trig
new file mode 100644
index 0000000..2c04b80
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/prefixed_IRI_object.trig
@@ -0,0 +1,3 @@
+@prefix p: <http://a.example/>.
+{<http://a.example/s> <http://a.example/p> p:o .}
+<http://example/graph> {<http://a.example/s> <http://a.example/p> p:o .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/prefixed_IRI_predicate.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/prefixed_IRI_predicate.trig b/jena-arq/testing/RIOT/Lang/TrigStd/prefixed_IRI_predicate.trig
new file mode 100644
index 0000000..f41e7a3
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/prefixed_IRI_predicate.trig
@@ -0,0 +1,3 @@
+@prefix p: <http://a.example/>.
+{<http://a.example/s> p:p <http://a.example/o> .}
+<http://example/graph> {<http://a.example/s> p:p <http://a.example/o> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/prefixed_name_datatype.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/prefixed_name_datatype.trig b/jena-arq/testing/RIOT/Lang/TrigStd/prefixed_name_datatype.trig
new file mode 100644
index 0000000..45d5387
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/prefixed_name_datatype.trig
@@ -0,0 +1,3 @@
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+{<http://a.example/s> <http://a.example/p> "1"^^xsd:integer .}
+<http://example/graph> {<http://a.example/s> <http://a.example/p> "1"^^xsd:integer .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/repeated_semis_at_end.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/repeated_semis_at_end.trig b/jena-arq/testing/RIOT/Lang/TrigStd/repeated_semis_at_end.trig
new file mode 100644
index 0000000..e4131b9
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/repeated_semis_at_end.trig
@@ -0,0 +1,2 @@
+{<http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; <http://a.example/p2> <http://a.example/o2> .}
+<http://example/graph> {<http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; <http://a.example/p2> <http://a.example/o2> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/repeated_semis_not_at_end.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/repeated_semis_not_at_end.nq b/jena-arq/testing/RIOT/Lang/TrigStd/repeated_semis_not_at_end.nq
new file mode 100644
index 0000000..81f0139
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/repeated_semis_not_at_end.nq
@@ -0,0 +1,2 @@
+<http://a.example/s> <http://a.example/p1> <http://a.example/o1> .
+<http://a.example/s> <http://a.example/p1> <http://a.example/o1> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/repeated_semis_not_at_end.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/repeated_semis_not_at_end.trig b/jena-arq/testing/RIOT/Lang/TrigStd/repeated_semis_not_at_end.trig
new file mode 100644
index 0000000..270ac98
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/repeated_semis_not_at_end.trig
@@ -0,0 +1,2 @@
+{<http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; .}
+<http://example/graph> {<http://a.example/s> <http://a.example/p1> <http://a.example/o1>;; .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/reserved_escaped_localName.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/reserved_escaped_localName.nq b/jena-arq/testing/RIOT/Lang/TrigStd/reserved_escaped_localName.nq
new file mode 100644
index 0000000..d965ceb
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/reserved_escaped_localName.nq
@@ -0,0 +1,2 @@
+<http://a.example/_~.-!$&'()*+,;=/?#@%00> <http://a.example/p> <http://a.example/o> .
+<http://a.example/_~.-!$&'()*+,;=/?#@%00> <http://a.example/p> <http://a.example/o> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/reserved_escaped_localName.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/reserved_escaped_localName.trig b/jena-arq/testing/RIOT/Lang/TrigStd/reserved_escaped_localName.trig
new file mode 100644
index 0000000..991594a
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/reserved_escaped_localName.trig
@@ -0,0 +1,3 @@
+@prefix p: <http://a.example/>.
+{p:\_\~\.\-\!\$\&\'\(\)\*\+\,\;\=\/\?\#\@\%00 <http://a.example/p> <http://a.example/o> .}
+<http://example/graph> {p:\_\~\.\-\!\$\&\'\(\)\*\+\,\;\=\/\?\#\@\%00 <http://a.example/p> <http://a.example/o> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/sole_blankNodePropertyList.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/sole_blankNodePropertyList.nq b/jena-arq/testing/RIOT/Lang/TrigStd/sole_blankNodePropertyList.nq
new file mode 100644
index 0000000..ae23b3d
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/sole_blankNodePropertyList.nq
@@ -0,0 +1,3 @@
+_:b1 <http://a.example/p> <http://a.example/o> .
+_:b2 <http://a.example/p> <http://a.example/o> <http://example/graph> .
+_:b3 <http://a.example/p> <http://a.example/o> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/sole_blankNodePropertyList.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/sole_blankNodePropertyList.trig b/jena-arq/testing/RIOT/Lang/TrigStd/sole_blankNodePropertyList.trig
new file mode 100644
index 0000000..ae3765f
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/sole_blankNodePropertyList.trig
@@ -0,0 +1,3 @@
+{[ <http://a.example/p> <http://a.example/o> ] .}
+<http://example/graph> { [ <http://a.example/p> <http://a.example/o> ] .}
+<http://example/graph> { [ <http://a.example/p> <http://a.example/o> ] }

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-bnodeplist-graph-bad-01.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-bnodeplist-graph-bad-01.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-bnodeplist-graph-bad-01.trig
new file mode 100644
index 0000000..2b9a8d3
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-bnodeplist-graph-bad-01.trig
@@ -0,0 +1,4 @@
+# BlankNodePropertyList as Graph Name
+PREFIX : <http://example/> 
+
+[:p1 :o1] {:s :p :o}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-collection-graph-bad-01.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-collection-graph-bad-01.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-collection-graph-bad-01.trig
new file mode 100644
index 0000000..e8a7eae
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-collection-graph-bad-01.trig
@@ -0,0 +1,4 @@
+# Collection as Graph Name
+PREFIX : <http://example/> 
+
+() {:s :p :o}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-collection-graph-bad-02.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-collection-graph-bad-02.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-collection-graph-bad-02.trig
new file mode 100644
index 0000000..ba90bcf
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-collection-graph-bad-02.trig
@@ -0,0 +1,4 @@
+# Collection as Graph Name
+PREFIX : <http://example/> 
+
+(1 2) {:s :p :o}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-01.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-01.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-01.trig
new file mode 100644
index 0000000..36f6625
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-01.trig
@@ -0,0 +1,2 @@
+# Bad IRI : good escape, bad charcater
+{<http://example/\u0020> <http://example/p> <http://example/o> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-02.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-02.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-02.trig
new file mode 100644
index 0000000..2fc1aa3
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-02.trig
@@ -0,0 +1,2 @@
+# Bad IRI : hex 3C is <
+{<http://example/\u003C> <http://example/p> <http://example/o> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-03.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-03.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-03.trig
new file mode 100644
index 0000000..4024af5
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-03.trig
@@ -0,0 +1,2 @@
+# Bad IRI : hex 3E is >
+{<http://example/\u003E> <http://example/p> <http://example/o> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-04.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-04.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-04.trig
new file mode 100644
index 0000000..b43b681
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-bad-04.trig
@@ -0,0 +1,2 @@
+# Bad IRI
+{<http://example/{abc}> <http://example/p> <http://example/o> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-01.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-01.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-01.nq
new file mode 100644
index 0000000..6106c13
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-01.nq
@@ -0,0 +1,2 @@
+<http://example/s> <http://example/p> <http://example/o> .
+<http://example/s> <http://example/p> <http://example/o> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-01.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-01.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-01.trig
new file mode 100644
index 0000000..c600346
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-01.trig
@@ -0,0 +1,2 @@
+{<http://example/s> <http://example/p> <http://example/o> .}
+<http://example/graph> {<http://example/s> <http://example/p> <http://example/o> .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-02.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-02.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-02.nq
new file mode 100644
index 0000000..a4e416e
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-02.nq
@@ -0,0 +1,4 @@
+<http://example/s> <http://example/p1> <http://example/o1> .
+<http://example/s> <http://example/p2> <http://example/o2> .
+<http://example/s> <http://example/p1> <http://example/o1> <http://example/graph> .
+<http://example/s> <http://example/p2> <http://example/o2> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-02.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-02.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-02.trig
new file mode 100644
index 0000000..332af23
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-eval-struct-02.trig
@@ -0,0 +1,13 @@
+{
+  <http://example/s> 
+      <http://example/p1> <http://example/o1> ;
+      <http://example/p2> <http://example/o2> ; 
+      .
+}
+
+<http://example/graph> {
+  <http://example/s> 
+      <http://example/p1> <http://example/o1> ;
+      <http://example/p2> <http://example/o2> ; 
+      .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-01.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-01.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-01.trig
new file mode 100644
index 0000000..a247a68
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-01.trig
@@ -0,0 +1,5 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+# GRAPH but no name - GRAPH is not used with the default graph
+GRAPH { :s :p :o }

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-02.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-02.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-02.trig
new file mode 100644
index 0000000..47bbda6
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-02.trig
@@ -0,0 +1,6 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+# GRAPH not followed by DOT
+GRAPH :g1 { :s :p :o } .
+GRAPH :g2 { :s :p :o } .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-03.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-03.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-03.trig
new file mode 100644
index 0000000..31af19f
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-03.trig
@@ -0,0 +1,8 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+# GRAPH needs {}
+GRAPH :g 
+  :s :p :o .
+
+

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-04.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-04.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-04.trig
new file mode 100644
index 0000000..23e23a2
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-04.trig
@@ -0,0 +1,5 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+# GRAPH needs {}
+GRAPH :s :p :o

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-05.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-05.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-05.trig
new file mode 100644
index 0000000..7bf470a
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-05.trig
@@ -0,0 +1,5 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+# GRAPH and a name, not several.
+GRAPH :g1 :g2 { :s :p :o }

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-06.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-06.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-06.trig
new file mode 100644
index 0000000..487ae9e
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-06.trig
@@ -0,0 +1,6 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+# GRAPH - Must close {}
+GRAPH :g { :s :p :o 
+

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-07.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-07.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-07.trig
new file mode 100644
index 0000000..de61838
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-07.trig
@@ -0,0 +1,9 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+# GRAPH and a triples block.
+GRAPH :g { 
+   :s :p :o .
+   GRAPH :g1 { :s1 :p1 :o1 }
+}
+

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-08.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-08.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-08.trig
new file mode 100644
index 0000000..190d2c0
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-08.trig
@@ -0,0 +1,5 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+# GRAPH and a triples block.
+@graph :g { :s :p :o }

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-09.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-09.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-09.trig
new file mode 100644
index 0000000..3cfca53
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-09.trig
@@ -0,0 +1,12 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+# GRAPH - no directives
+graph :g { 
+  :s :p :o 
+prefix x: <http://example/x#> 
+  x:s1 x:p1 x:o1 .
+}
+
+
+

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-10.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-10.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-10.trig
new file mode 100644
index 0000000..fc0531f
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-10.trig
@@ -0,0 +1,8 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+# GRAPH - no lists
+GRAPH () { :s :p :o }
+
+
+

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-11.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-11.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-11.trig
new file mode 100644
index 0000000..c7b0ffd
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-graph-bad-11.trig
@@ -0,0 +1,8 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+# GRAPH - no lists
+graph (1 2) { :s :p :o }
+
+
+

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-01.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-01.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-01.trig
new file mode 100644
index 0000000..acf739b
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-01.trig
@@ -0,0 +1,4 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+GRAPH :g { :s :p :o }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-02.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-02.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-02.trig
new file mode 100644
index 0000000..6b4f904
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-02.trig
@@ -0,0 +1,4 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+GRAPH :g { :s :p :o . }

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-03.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-03.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-03.trig
new file mode 100644
index 0000000..cfb67fe
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-03.trig
@@ -0,0 +1,4 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+GRAPH :g { }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-04.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-04.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-04.trig
new file mode 100644
index 0000000..8a38e30
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-04.trig
@@ -0,0 +1,8 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+GRAPH :g1 { :s :p :o }
+GRAPH :g2 { :s :p :o }
+:g3 { :s :p :o }
+GRAPH :g4 { :s :p :o }
+GRAPH :g5 { :s :p :o }

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-05.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-05.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-05.trig
new file mode 100644
index 0000000..acf739b
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-05.trig
@@ -0,0 +1,4 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+GRAPH :g { :s :p :o }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-06.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-06.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-06.trig
new file mode 100644
index 0000000..9c5ca1a
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-06.trig
@@ -0,0 +1,4 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+GRAPH _:a { :s :p :o }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-07.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-07.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-07.trig
new file mode 100644
index 0000000..3cd8aeb
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-07.trig
@@ -0,0 +1,6 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+GRAPH [] { :s :p :o }
+[] { :s :p :o }
+GRAPH [] { :s :p :o }

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-08.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-08.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-08.trig
new file mode 100644
index 0000000..acf739b
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-08.trig
@@ -0,0 +1,4 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+GRAPH :g { :s :p :o }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-09.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-09.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-09.trig
new file mode 100644
index 0000000..acf739b
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-09.trig
@@ -0,0 +1,4 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+GRAPH :g { :s :p :o }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-10.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-10.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-10.trig
new file mode 100644
index 0000000..cfb67fe
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-kw-graph-10.trig
@@ -0,0 +1,4 @@
+# GRAPH tests
+PREFIX : <http://example/> 
+
+GRAPH :g { }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-01.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-01.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-01.nq
new file mode 100644
index 0000000..9a15135
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-01.nq
@@ -0,0 +1,2 @@
+_:genid1 <http://www.w3.org/2013/TriGTests/trig-subm-01.trig#x> <http://www.w3.org/2013/TriGTests/trig-subm-01.trig#y> .
+_:genid2 <http://www.w3.org/2013/TriGTests/trig-subm-01.trig#x> <http://www.w3.org/2013/TriGTests/trig-subm-01.trig#y> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-01.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-01.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-01.trig
new file mode 100644
index 0000000..9a89c66
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-01.trig
@@ -0,0 +1,3 @@
+@prefix : <#> .
+{[] :x :y .}
+<http://example/graph> {[] :x :y .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-02.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-02.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-02.nq
new file mode 100644
index 0000000..299f1cd
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-02.nq
@@ -0,0 +1,6 @@
+<http://example.org/base1#a> <http://example.org/base1#b> <http://example.org/base1#c> .
+<http://example.org/base2#a> <http://example.org/base2#b> <http://example.org/base2#c> .
+<http://example.org/base1#a> <http://example.org/base2#a> <http://example.org/base3#a> .
+<http://example.org/base1#a> <http://example.org/base1#b> <http://example.org/base1#c> <http://example/graph> .
+<http://example.org/base2#a> <http://example.org/base2#b> <http://example.org/base2#c> <http://example/graph> .
+<http://example.org/base1#a> <http://example.org/base2#a> <http://example.org/base3#a> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-02.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-02.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-02.trig
new file mode 100644
index 0000000..c94a803
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-02.trig
@@ -0,0 +1,16 @@
+# Test @prefix and qnames
+@prefix :  <http://example.org/base1#> .
+@prefix a: <http://example.org/base2#> .
+@prefix b: <http://example.org/base3#> .
+
+{
+  :a :b :c .
+  a:a a:b a:c .
+  :a a:a b:a .
+}
+
+<http://example/graph> {
+  :a :b :c .
+  a:a a:b a:c .
+  :a a:a b:a .
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-03.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-03.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-03.nq
new file mode 100644
index 0000000..aeb5419
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-03.nq
@@ -0,0 +1,6 @@
+<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> .
+<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#d> .
+<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#e> .
+<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> <http://example/graph> .
+<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#d> <http://example/graph> .
+<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#e> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-03.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-03.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-03.trig
new file mode 100644
index 0000000..b52f7c9
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-03.trig
@@ -0,0 +1,14 @@
+# Test , operator
+@prefix : <http://example.org/base#> .
+
+{
+:a :b :c,
+      :d,
+      :e .
+}
+
+<http://example/graph> {
+:a :b :c,
+      :d,
+      :e .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-04.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-04.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-04.nq
new file mode 100644
index 0000000..acf2a1d
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-04.nq
@@ -0,0 +1,6 @@
+<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> .
+<http://example.org/base#a> <http://example.org/base#d> <http://example.org/base#e> .
+<http://example.org/base#a> <http://example.org/base#f> <http://example.org/base#g> .
+<http://example.org/base#a> <http://example.org/base#b> <http://example.org/base#c> <http://example/graph> .
+<http://example.org/base#a> <http://example.org/base#d> <http://example.org/base#e> <http://example/graph> .
+<http://example.org/base#a> <http://example.org/base#f> <http://example.org/base#g> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-04.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-04.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-04.trig
new file mode 100644
index 0000000..2f57b30
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-04.trig
@@ -0,0 +1,14 @@
+# Test ; operator
+@prefix : <http://example.org/base#> .
+
+{
+:a :b :c ;
+   :d :e ;
+   :f :g .
+}
+
+<http://example/graph> {
+:a :b :c ;
+   :d :e ;
+   :f :g .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-05.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-05.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-05.nq
new file mode 100644
index 0000000..2892e17
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-05.nq
@@ -0,0 +1,4 @@
+_:genid1 <http://example.org/base#a> <http://example.org/base#b> .
+<http://example.org/base#c> <http://example.org/base#d> _:genid2 .
+_:genid3 <http://example.org/base#a> <http://example.org/base#b> <http://example/graph> .
+<http://example.org/base#c> <http://example.org/base#d> _:genid4 <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-05.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-05.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-05.trig
new file mode 100644
index 0000000..8c202b9
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-05.trig
@@ -0,0 +1,12 @@
+# Test empty [] operator; not allowed as predicate
+@prefix : <http://example.org/base#> .
+
+{
+[] :a :b .
+:c :d [] .
+}
+
+<http://example/graph> {
+[] :a :b .
+:c :d [] .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-06.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-06.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-06.nq
new file mode 100644
index 0000000..8f49ee0
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-06.nq
@@ -0,0 +1,8 @@
+_:genid1 <http://example.org/base#a> <http://example.org/base#b> .
+_:genid1 <http://example.org/base#c> <http://example.org/base#d> .
+_:genid2 <http://example.org/base#g> <http://example.org/base#h> .
+<http://example.org/base#e> <http://example.org/base#f> _:genid2 .
+_:genid3 <http://example.org/base#a> <http://example.org/base#b> <http://example/graph> .
+_:genid3 <http://example.org/base#c> <http://example.org/base#d> <http://example/graph> .
+_:genid4 <http://example.org/base#g> <http://example.org/base#h> <http://example/graph> .
+<http://example.org/base#e> <http://example.org/base#f> _:genid4 <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-06.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-06.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-06.trig
new file mode 100644
index 0000000..280c48d
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-06.trig
@@ -0,0 +1,12 @@
+# Test non empty [] operator; not allowed as predicate
+@prefix : <http://example.org/base#> .
+
+{
+[ :a :b ] :c :d .
+:e :f [ :g :h ] .
+}
+
+<http://example/graph> {
+[ :a :b ] :c :d .
+:e :f [ :g :h ] .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-07.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-07.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-07.nq
new file mode 100644
index 0000000..7c96d3b
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-07.nq
@@ -0,0 +1,2 @@
+<http://example.org/base#a> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/base#b> .
+<http://example.org/base#a> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://example.org/base#b> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-07.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-07.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-07.trig
new file mode 100644
index 0000000..b5e254a
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-07.trig
@@ -0,0 +1,4 @@
+# 'a' only allowed as a predicate
+@prefix : <http://example.org/base#> .
+{:a a :b .}
+<http://example/graph> {:a a :b .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-08.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-08.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-08.nq
new file mode 100644
index 0000000..5459ac5
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-08.nq
@@ -0,0 +1,11 @@
+_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "banana" .
+_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
+_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "apple" .
+_:genid2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:genid1 .
+<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> _:genid2 .
+
+_:genid3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "banana" <http://example/graph> .
+_:genid3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> .
+_:genid4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#first> "apple" <http://example/graph> .
+_:genid4 <http://www.w3.org/1999/02/22-rdf-syntax-ns#rest> _:genid3 <http://example/graph> .
+<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> _:genid4 <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-08.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-08.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-08.trig
new file mode 100644
index 0000000..7e88c18
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-08.trig
@@ -0,0 +1,4 @@
+@prefix : <http://example.org/stuff/1.0/> .
+{:a :b ( "apple" "banana" ) .}
+<http://example/graph> {:a :b ( "apple" "banana" ) .}
+

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-09.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-09.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-09.nq
new file mode 100644
index 0000000..7c2c83b
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-09.nq
@@ -0,0 +1,2 @@
+<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> .
+<http://example.org/stuff/1.0/a> <http://example.org/stuff/1.0/b> <http://www.w3.org/1999/02/22-rdf-syntax-ns#nil> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-09.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-09.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-09.trig
new file mode 100644
index 0000000..7cbd40a
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-09.trig
@@ -0,0 +1,4 @@
+@prefix : <http://example.org/stuff/1.0/> .
+{:a :b ( ) .}
+<http://example/graph> {:a :b ( ) .}
+

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-10.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-10.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-10.nq
new file mode 100644
index 0000000..ebe89dd
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-10.nq
@@ -0,0 +1,8 @@
+_:hasParent <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#ObjectProperty> .
+_:genid1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> .
+_:genid1 <http://www.w3.org/2002/07/owl#onProperty> _:hasParent .
+_:genid1 <http://www.w3.org/2002/07/owl#maxCardinality> "2"^^<http://www.w3.org/2001/XMLSchema#integer> .
+_:hasParent <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#ObjectProperty> <http://example/graph> .
+_:genid3 <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Restriction> <http://example/graph> .
+_:genid3 <http://www.w3.org/2002/07/owl#onProperty> _:hasParent <http://example/graph> .
+_:genid3 <http://www.w3.org/2002/07/owl#maxCardinality> "2"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-10.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-10.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-10.trig
new file mode 100644
index 0000000..23bd02d
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-10.trig
@@ -0,0 +1,20 @@
+# Test integer datatyped literals using an OWL cardinality constraint
+@prefix owl: <http://www.w3.org/2002/07/owl#> .
+
+# based on examples in the OWL Reference
+
+{
+_:hasParent a owl:ObjectProperty .
+
+[] a owl:Restriction ;
+  owl:onProperty _:hasParent ;
+  owl:maxCardinality 2 .
+}
+
+<http://example/graph> {
+_:hasParent a owl:ObjectProperty .
+
+[] a owl:Restriction ;
+  owl:onProperty _:hasParent ;
+  owl:maxCardinality 2 .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-11.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-11.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-11.nq
new file mode 100644
index 0000000..76147a3
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-11.nq
@@ -0,0 +1,10 @@
+<http://example.org/res1> <http://example.org/prop1> "000000"^^<http://www.w3.org/2001/XMLSchema#integer> .
+<http://example.org/res2> <http://example.org/prop2> "0"^^<http://www.w3.org/2001/XMLSchema#integer> .
+<http://example.org/res3> <http://example.org/prop3> "000001"^^<http://www.w3.org/2001/XMLSchema#integer> .
+<http://example.org/res4> <http://example.org/prop4> "2"^^<http://www.w3.org/2001/XMLSchema#integer> .
+<http://example.org/res5> <http://example.org/prop5> "4"^^<http://www.w3.org/2001/XMLSchema#integer> .
+<http://example.org/res1> <http://example.org/prop1> "000000"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> .
+<http://example.org/res2> <http://example.org/prop2> "0"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> .
+<http://example.org/res3> <http://example.org/prop3> "000001"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> .
+<http://example.org/res4> <http://example.org/prop4> "2"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> .
+<http://example.org/res5> <http://example.org/prop5> "4"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-11.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-11.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-11.trig
new file mode 100644
index 0000000..bb1c499
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-11.trig
@@ -0,0 +1,15 @@
+{
+<http://example.org/res1> <http://example.org/prop1> 000000 .
+<http://example.org/res2> <http://example.org/prop2> 0 .
+<http://example.org/res3> <http://example.org/prop3> 000001 .
+<http://example.org/res4> <http://example.org/prop4> 2 .
+<http://example.org/res5> <http://example.org/prop5> 4 .
+}
+
+<http://example/graph> {
+<http://example.org/res1> <http://example.org/prop1> 000000 .
+<http://example.org/res2> <http://example.org/prop2> 0 .
+<http://example.org/res3> <http://example.org/prop3> 000001 .
+<http://example.org/res4> <http://example.org/prop4> 2 .
+<http://example.org/res5> <http://example.org/prop5> 4 .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-12.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-12.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-12.nq
new file mode 100644
index 0000000..32b15c5
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-12.nq
@@ -0,0 +1,8 @@
+<http://example.org/ex1#foo-bar> <http://example.org/ex1#foo_bar> "a" .
+<http://example.org/ex2#foo-bar> <http://example.org/ex2#foo_bar> "b" .
+<http://example.org/ex3#foo-bar> <http://example.org/ex3#foo_bar> "c" .
+<http://example.org/ex4#foo-bar> <http://example.org/ex4#foo_bar> "d" .
+<http://example.org/ex1#foo-bar> <http://example.org/ex1#foo_bar> "a" <http://example/graph> .
+<http://example.org/ex2#foo-bar> <http://example.org/ex2#foo_bar> "b" <http://example/graph> .
+<http://example.org/ex3#foo-bar> <http://example.org/ex3#foo_bar> "c" <http://example/graph> .
+<http://example.org/ex4#foo-bar> <http://example.org/ex4#foo_bar> "d" <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-12.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-12.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-12.trig
new file mode 100644
index 0000000..b0f8ff8
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-12.trig
@@ -0,0 +1,19 @@
+# Tests for - and _ in names, qnames
+@prefix ex1: <http://example.org/ex1#> .
+@prefix ex-2: <http://example.org/ex2#> .
+@prefix ex3_: <http://example.org/ex3#> .
+@prefix ex4-: <http://example.org/ex4#> .
+
+{
+ex1:foo-bar ex1:foo_bar "a" .
+ex-2:foo-bar ex-2:foo_bar "b" .
+ex3_:foo-bar ex3_:foo_bar "c" .
+ex4-:foo-bar ex4-:foo_bar "d" .
+}
+
+<http://example/graph> {
+ex1:foo-bar ex1:foo_bar "a" .
+ex-2:foo-bar ex-2:foo_bar "b" .
+ex3_:foo-bar ex3_:foo_bar "c" .
+ex4-:foo-bar ex4-:foo_bar "d" .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-13.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-13.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-13.nq
new file mode 100644
index 0000000..84c2a2e
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-13.nq
@@ -0,0 +1,8 @@
+<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "1" .
+<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" .
+<http://example.org/ex#foo> <http://example.org/myprop#_abc> "def" .
+<http://example.org/ex#foo> <http://example.org/myprop#_345> "678" .
+<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_1> "1" <http://example/graph> .
+<http://example.org/ex#foo> <http://www.w3.org/1999/02/22-rdf-syntax-ns#_2> "2" <http://example/graph> .
+<http://example.org/ex#foo> <http://example.org/myprop#_abc> "def" <http://example/graph> .
+<http://example.org/ex#foo> <http://example.org/myprop#_345> "678" <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-13.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-13.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-13.trig
new file mode 100644
index 0000000..8d1b44d
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-13.trig
@@ -0,0 +1,18 @@
+# Tests for rdf:_<numbers> and other qnames starting with _
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix ex:  <http://example.org/ex#> .
+@prefix :    <http://example.org/myprop#> .
+
+{
+ex:foo rdf:_1 "1" .
+ex:foo rdf:_2 "2" .
+ex:foo :_abc "def" .
+ex:foo :_345 "678" .
+}
+
+<http://example/graph> {
+ex:foo rdf:_1 "1" .
+ex:foo rdf:_2 "2" .
+ex:foo :_abc "def" .
+ex:foo :_345 "678" .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-14.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-14.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-14.nq
new file mode 100644
index 0000000..2fc239e
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-14.nq
@@ -0,0 +1,4 @@
+_:genid1 <http://example.org/ron> _:genid2 .
+<http://example.org/ron> <http://example.org/ron> <http://example.org/ron> .
+_:genid3 <http://example.org/ron> _:genid4 <http://example/graph> .
+<http://example.org/ron> <http://example.org/ron> <http://example.org/ron> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-14.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-14.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-14.trig
new file mode 100644
index 0000000..c70300e
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-14.trig
@@ -0,0 +1,16 @@
+# Test for : allowed
+@prefix :    <http://example.org/ron> .
+
+{
+[] : [] .
+
+: : : .
+
+}
+
+<http://example/graph> {
+[] : [] .
+
+: : : .
+
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-15.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-15.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-15.nq
new file mode 100644
index 0000000..8d01c44
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-15.nq
@@ -0,0 +1,2 @@
+<http://example.org/ex#a> <http://example.org/ex#b> "a long\n\tliteral\nwith\nnewlines" .
+<http://example.org/ex#a> <http://example.org/ex#b> "a long\n\tliteral\nwith\nnewlines" <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-15.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-15.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-15.trig
new file mode 100644
index 0000000..93fbc41
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-15.trig
@@ -0,0 +1,16 @@
+# Test long literal
+@prefix :  <http://example.org/ex#> .
+
+{
+:a :b """a long
+	literal
+with
+newlines""" .
+}
+
+<http://example/graph> {
+:a :b """a long
+	literal
+with
+newlines""" .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-16.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-16.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-16.nq
new file mode 100644
index 0000000..2e5fac4
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-16.nq
@@ -0,0 +1,4 @@
+<http://example.org/foo#a> <http://example.org/foo#b> "\nthis \ris a \U00012451long\t\nliteral\uABCD\n" .
+<http://example.org/foo#d> <http://example.org/foo#e> "\tThis \uABCDis\r \U00012451another\n\none\n" .
+<http://example.org/foo#a> <http://example.org/foo#b> "\nthis \ris a \U00012451long\t\nliteral\uABCD\n" <http://example/graph> .
+<http://example.org/foo#d> <http://example.org/foo#e> "\tThis \uABCDis\r \U00012451another\n\none\n" <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-16.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-16.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-16.trig
new file mode 100644
index 0000000..86cb22d
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-16.trig
@@ -0,0 +1,43 @@
+@prefix : <http://example.org/foo#> .
+
+{
+## \U00015678 is a not a legal codepoint
+## :a :b """\nthis \ris a \U00015678long\t
+## literal\uABCD
+## """ .
+## 
+## :d :e """\tThis \uABCDis\r \U00015678another\n
+## one
+## """ .
+
+# \U00015678 is a not a legal codepoint
+# \U00012451 in Cuneiform numeric ban 3
+:a :b """\nthis \ris a \U00012451long\t
+literal\uABCD
+""" .
+
+:d :e """\tThis \uABCDis\r \U00012451another\n
+one
+""" .
+}
+
+<http://example/graph> {
+## \U00015678 is a not a legal codepoint
+## :a :b """\nthis \ris a \U00015678long\t
+## literal\uABCD
+## """ .
+## 
+## :d :e """\tThis \uABCDis\r \U00015678another\n
+## one
+## """ .
+
+# \U00015678 is a not a legal codepoint
+# \U00012451 in Cuneiform numeric ban 3
+:a :b """\nthis \ris a \U00012451long\t
+literal\uABCD
+""" .
+
+:d :e """\tThis \uABCDis\r \U00012451another\n
+one
+""" .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-17.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-17.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-17.nq
new file mode 100644
index 0000000..7c5d273
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-17.nq
@@ -0,0 +1,2 @@
+<http://example.org/#a> <http://example.org/#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/#a> <http://example.org/#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-17.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-17.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-17.trig
new file mode 100644
index 0000000..345ca23
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-17.trig
@@ -0,0 +1,5 @@
+@prefix : <http://example.org/#> .
+
+{:a :b  1.0 .}
+<http://example/graph> {:a :b  1.0 .}
+

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-18.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-18.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-18.nq
new file mode 100644
index 0000000..58b0a4c
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-18.nq
@@ -0,0 +1,4 @@
+<http://example.org/#a> <http://example.org/#b> "" .
+<http://example.org/#c> <http://example.org/#d> "" .
+<http://example.org/#a> <http://example.org/#b> "" <http://example/graph> .
+<http://example.org/#c> <http://example.org/#d> "" <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-18.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-18.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-18.trig
new file mode 100644
index 0000000..f5b4a51
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-18.trig
@@ -0,0 +1,15 @@
+@prefix : <http://example.org/#> .
+
+{
+:a :b "" .
+
+:c :d """""" .
+
+}
+
+<http://example/graph> {
+:a :b "" .
+
+:c :d """""" .
+
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-19.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-19.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-19.nq
new file mode 100644
index 0000000..b3cf807
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-19.nq
@@ -0,0 +1,6 @@
+<http://example.org#a> <http://example.org#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org#c> <http://example.org#d> "1"^^<http://www.w3.org/2001/XMLSchema#integer> .
+<http://example.org#e> <http://example.org#f> "1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> .
+<http://example.org#a> <http://example.org#b> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> <http://example/graph> .
+<http://example.org#c> <http://example.org#d> "1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> .
+<http://example.org#e> <http://example.org#f> "1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-19.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-19.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-19.trig
new file mode 100644
index 0000000..7cd14ee
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-19.trig
@@ -0,0 +1,13 @@
+@prefix : <http://example.org#> .
+
+{
+:a :b 1.0 .
+:c :d 1 .
+:e :f 1.0e0 .
+}
+
+<http://example/graph> {
+:a :b 1.0 .
+:c :d 1 .
+:e :f 1.0e0 .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-20.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-20.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-20.nq
new file mode 100644
index 0000000..46f48c7
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-20.nq
@@ -0,0 +1,6 @@
+<http://example.org#a> <http://example.org#b> "-1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org#c> <http://example.org#d> "-1"^^<http://www.w3.org/2001/XMLSchema#integer> .
+<http://example.org#e> <http://example.org#f> "-1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> .
+<http://example.org#a> <http://example.org#b> "-1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> <http://example/graph> .
+<http://example.org#c> <http://example.org#d> "-1"^^<http://www.w3.org/2001/XMLSchema#integer> <http://example/graph> .
+<http://example.org#e> <http://example.org#f> "-1.0e0"^^<http://www.w3.org/2001/XMLSchema#double> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-20.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-20.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-20.trig
new file mode 100644
index 0000000..6e3032e
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-20.trig
@@ -0,0 +1,13 @@
+@prefix : <http://example.org#> .
+
+{
+:a :b -1.0 .
+:c :d -1 .
+:e :f -1.0e0 .
+}
+
+<http://example/graph> {
+:a :b -1.0 .
+:c :d -1 .
+:e :f -1.0e0 .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-21.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-21.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-21.nq
new file mode 100644
index 0000000..90aec6d
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-21.nq
@@ -0,0 +1,2 @@
+<http://example.org/ex#a> <http://example.org/ex#b> "John said: \"Hello World!\"" .
+<http://example.org/ex#a> <http://example.org/ex#b> "John said: \"Hello World!\"" <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-21.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-21.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-21.trig
new file mode 100644
index 0000000..05870fb
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-21.trig
@@ -0,0 +1,4 @@
+# Test long literal
+@prefix :  <http://example.org/ex#> .
+{:a :b """John said: "Hello World!\"""" .}
+<http://example/graph> {:a :b """John said: "Hello World!\"""" .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-22.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-22.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-22.nq
new file mode 100644
index 0000000..01ab357
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-22.nq
@@ -0,0 +1,4 @@
+<http://example.org#a> <http://example.org#b> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
+<http://example.org#c> <http://example.org#d> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
+<http://example.org#a> <http://example.org#b> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> <http://example/graph> .
+<http://example.org#c> <http://example.org#d> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-22.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-22.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-22.trig
new file mode 100644
index 0000000..2b54660
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-22.trig
@@ -0,0 +1,11 @@
+@prefix : <http://example.org#> .
+
+{
+:a :b true .
+:c :d false .
+}
+
+<http://example/graph> {
+:a :b true .
+:c :d false .
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-23.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-23.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-23.nq
new file mode 100644
index 0000000..11328c9
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-23.nq
@@ -0,0 +1,14 @@
+<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> .
+<http://example.org/#d> <http://example.org/#e> <http://example.org/#f> .
+<http://example.org/#g> <http://example.org/#h> <http://example.org/#i> .
+<http://example.org/#g> <http://example.org/#h> <http://example.org/#j> .
+<http://example.org/#k> <http://example.org/#l> <http://example.org/#m> .
+<http://example.org/#k> <http://example.org/#n> <http://example.org/#o> .
+<http://example.org/#k> <http://example.org/#p> <http://example.org/#q> .
+<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> <http://example/graph> .
+<http://example.org/#d> <http://example.org/#e> <http://example.org/#f> <http://example/graph> .
+<http://example.org/#g> <http://example.org/#h> <http://example.org/#i> <http://example/graph> .
+<http://example.org/#g> <http://example.org/#h> <http://example.org/#j> <http://example/graph> .
+<http://example.org/#k> <http://example.org/#l> <http://example.org/#m> <http://example/graph> .
+<http://example.org/#k> <http://example.org/#n> <http://example.org/#o> <http://example/graph> .
+<http://example.org/#k> <http://example.org/#p> <http://example.org/#q> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-23.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-23.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-23.trig
new file mode 100644
index 0000000..3cb24f5
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-23.trig
@@ -0,0 +1,32 @@
+# comment test
+@prefix : <http://example.org/#> .
+
+{
+:a :b :c . # end of line comment
+:d # ignore me
+  :e # and me
+      :f # and me
+        .
+:g :h #ignore me
+     :i,  # and me
+     :j . # and me
+
+:k :l :m ; #ignore me
+   :n :o ; # and me
+   :p :q . # and me
+}
+
+<http://example/graph> {
+:a :b :c . # end of line comment
+:d # ignore me
+  :e # and me
+      :f # and me
+        .
+:g :h #ignore me
+     :i,  # and me
+     :j . # and me
+
+:k :l :m ; #ignore me
+   :n :o ; # and me
+   :p :q . # and me
+}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-24.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-24.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-24.nq
new file mode 100644
index 0000000..9de4a32
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-24.nq
@@ -0,0 +1,2 @@
+<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> .
+<http://example.org/#a> <http://example.org/#b> <http://example.org/#c> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-24.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-24.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-24.trig
new file mode 100644
index 0000000..22ae97c
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-24.trig
@@ -0,0 +1,5 @@
+# comment line with no final newline test
+@prefix : <http://example.org/#> .
+{:a :b :c .}
+<http://example/graph> {:a :b :c .}
+#foo

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-25.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-25.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-25.nq
new file mode 100644
index 0000000..bcb4647
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-25.nq
@@ -0,0 +1,2 @@
+<http://example.org/bar#blah> <http://example.org/bar#blah> <http://example.org/bar#blah> .
+<http://example.org/bar#blah> <http://example.org/bar#blah> <http://example.org/bar#blah> <http://example/graph> .

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-25.trig
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-25.trig b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-25.trig
new file mode 100644
index 0000000..7c3b9f2
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-25.trig
@@ -0,0 +1,5 @@
+@prefix foo: <http://example.org/foo#>  .
+@prefix foo: <http://example.org/bar#>  .
+
+{foo:blah foo:blah foo:blah .}
+<http://example/graph> {foo:blah foo:blah foo:blah .}

http://git-wip-us.apache.org/repos/asf/jena/blob/37c9e656/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-26.nq
----------------------------------------------------------------------
diff --git a/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-26.nq b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-26.nq
new file mode 100644
index 0000000..7357dd4
--- /dev/null
+++ b/jena-arq/testing/RIOT/Lang/TrigStd/trig-subm-26.nq
@@ -0,0 +1,22 @@
+<http://example.org/foo> <http://example.org/bar> "2.345"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "1"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "1.0"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "1."^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "1.000000000"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.3"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.234000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.2340000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.23400000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.234000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.2340000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.23400000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.234000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.2340000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.23400000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.234000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.2340000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.23400000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.234000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.2340000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "2.23400000000000000000005"^^<http://www.w3.org/2001/XMLSchema#decimal> .
+<http://example.org/foo> <http://example.org/bar> "1.2345678901234567890123457890"^^<http://www.w3.org/2001/XMLSchema#decimal> .


Mime
View raw message