Add all N-Triples tests as N-Quads tests
authorGregg Kellogg <gregg@kellogg-assoc.com>
Fri, 08 Nov 2013 12:15:03 -0800
changeset 1250 5bd2bbd9ceec
parent 1249 4f87cadb5b9e
child 1251 1cd9d1df1dfb
Add all N-Triples tests as N-Quads tests
nquads/reports/.earl
nquads/tests/README
nquads/tests/comment_following_triple.nq
nquads/tests/langtagged_non_LONG.nq
nquads/tests/lantag_with_subtag.nq
nquads/tests/literal.nq
nquads/tests/literal_all_controls.nq
nquads/tests/literal_all_punctuation.nq
nquads/tests/literal_ascii_boundaries.nq
nquads/tests/literal_false.nq
nquads/tests/literal_true.nq
nquads/tests/literal_with_2_dquotes.nq
nquads/tests/literal_with_2_squotes.nq
nquads/tests/literal_with_BACKSPACE.nq
nquads/tests/literal_with_CARRIAGE_RETURN.nq
nquads/tests/literal_with_CHARACTER_TABULATION.nq
nquads/tests/literal_with_FORM_FEED.nq
nquads/tests/literal_with_LINE_FEED.nq
nquads/tests/literal_with_REVERSE_SOLIDUS.nq
nquads/tests/literal_with_REVERSE_SOLIDUS2.nq
nquads/tests/literal_with_UTF8_boundaries.nq
nquads/tests/literal_with_dquote.nq
nquads/tests/literal_with_numeric_escape4.nq
nquads/tests/literal_with_squote.nq
nquads/tests/manifest.ttl
nquads/tests/minimal_whitespace.nq
nquads/tests/nt-syntax-bad-base-01.nq
nquads/tests/nt-syntax-bad-esc-01.nq
nquads/tests/nt-syntax-bad-esc-02.nq
nquads/tests/nt-syntax-bad-esc-03.nq
nquads/tests/nt-syntax-bad-lang-01.nq
nquads/tests/nt-syntax-bad-num-01.nq
nquads/tests/nt-syntax-bad-num-02.nq
nquads/tests/nt-syntax-bad-num-03.nq
nquads/tests/nt-syntax-bad-prefix-01.nq
nquads/tests/nt-syntax-bad-string-01.nq
nquads/tests/nt-syntax-bad-string-02.nq
nquads/tests/nt-syntax-bad-string-03.nq
nquads/tests/nt-syntax-bad-string-04.nq
nquads/tests/nt-syntax-bad-string-05.nq
nquads/tests/nt-syntax-bad-string-06.nq
nquads/tests/nt-syntax-bad-string-07.nq
nquads/tests/nt-syntax-bad-struct-01.nq
nquads/tests/nt-syntax-bad-struct-02.nq
nquads/tests/nt-syntax-bad-uri-01.nq
nquads/tests/nt-syntax-bad-uri-02.nq
nquads/tests/nt-syntax-bad-uri-03.nq
nquads/tests/nt-syntax-bad-uri-04.nq
nquads/tests/nt-syntax-bad-uri-05.nq
nquads/tests/nt-syntax-bad-uri-06.nq
nquads/tests/nt-syntax-bad-uri-07.nq
nquads/tests/nt-syntax-bad-uri-08.nq
nquads/tests/nt-syntax-bad-uri-09.nq
nquads/tests/nt-syntax-bnode-01.nq
nquads/tests/nt-syntax-bnode-02.nq
nquads/tests/nt-syntax-bnode-03.nq
nquads/tests/nt-syntax-datatypes-01.nq
nquads/tests/nt-syntax-datatypes-02.nq
nquads/tests/nt-syntax-file-01.nq
nquads/tests/nt-syntax-file-02.nq
nquads/tests/nt-syntax-file-03.nq
nquads/tests/nt-syntax-str-esc-01.nq
nquads/tests/nt-syntax-str-esc-02.nq
nquads/tests/nt-syntax-str-esc-03.nq
nquads/tests/nt-syntax-string-01.nq
nquads/tests/nt-syntax-string-02.nq
nquads/tests/nt-syntax-string-03.nq
nquads/tests/nt-syntax-subm-01.nq
nquads/tests/nt-syntax-uri-01.nq
nquads/tests/nt-syntax-uri-02.nq
nquads/tests/nt-syntax-uri-03.nq
nquads/tests/nt-syntax-uri-04.nq
--- a/nquads/reports/.earl	Fri Nov 08 11:58:50 2013 -0800
+++ b/nquads/reports/.earl	Fri Nov 08 12:15:03 2013 -0800
@@ -1,7 +1,5 @@
 ---
 :format: :json
-:manifest:
-- https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl
-- https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/tests-nt/manifest.ttl
+:manifest: https://dvcs.w3.org/hg/rdf/raw-file/default/nquads/tests/manifest.ttl
 :bibRef: ! '[[N-QUADS]]'
 :name: N-Quads
--- a/nquads/tests/README	Fri Nov 08 11:58:50 2013 -0800
+++ b/nquads/tests/README	Fri Nov 08 12:15:03 2013 -0800
@@ -8,10 +8,7 @@
   file with at least one syntax error.
 
 The manifest.ttl file in this directory lists tests in the
-RDF WG's N-Quads test suite. Additionally, an N-Quads processor
-also must successfulliy parse all positive syntax tests in the N-Triples test manifest
-<http://www.w3.org/2013/NTriplesTests/manifest.ttl>.
-Each test is one of the above tests. All
+RDF WG's N-Quads test suite. All
 tests have a name (mf:name) and an input (mf:action).
 
 • An implementation passes a positive syntax test if it parses the
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/comment_following_triple.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,5 @@
+<http://example/s> <http://example/p> <http://example/o> . # comment
+<http://example/s> <http://example/p> _:o . # comment
+<http://example/s> <http://example/p> "o" . # comment
+<http://example/s> <http://example/p> "o"^^<http://example/dt> . # comment
+<http://example/s> <http://example/p> "o"@en . # comment
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/langtagged_non_LONG.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "chat"@en .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/lantag_with_subtag.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example.org/ex#a> <http://example.org/ex#b> "Cheers"@en-UK .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "x" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_all_controls.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\u0008\t\u000B\u000C\u000E\u000F\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001A\u001B\u001C\u001D\u001E\u001F" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_all_punctuation.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> " !\"#$%&():;<=>?@[]^_`{|}~" .
Binary file nquads/tests/literal_ascii_boundaries.nq has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_false.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "false"^^<http://www.w3.org/2001/XMLSchema#boolean> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_true.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "true"^^<http://www.w3.org/2001/XMLSchema#boolean> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_with_2_dquotes.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "x\"\"y" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_with_2_squotes.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "x''y" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_with_BACKSPACE.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "\b" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_with_CARRIAGE_RETURN.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "\r" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_with_CHARACTER_TABULATION.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "\t" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_with_FORM_FEED.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "\f" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_with_LINE_FEED.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "\n" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_with_REVERSE_SOLIDUS.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "\\" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_with_REVERSE_SOLIDUS2.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example.org/ns#s> <http://example.org/ns#p1> "test-\\" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_with_UTF8_boundaries.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "€߿ࠀ࿿က쿿퀀퟿�𐀀𿿽񀀀󿿽􀀀􏿽" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_with_dquote.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "x\"y" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_with_numeric_escape4.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+<http://a.example/s> <http://a.example/p> "\u006F" .
+<http://a.example/s> <http://a.example/p> "\U0000006F" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/literal_with_squote.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://a.example/s> <http://a.example/p> "x'y" .
--- a/nquads/tests/manifest.ttl	Fri Nov 08 11:58:50 2013 -0800
+++ b/nquads/tests/manifest.ttl	Fri Nov 08 12:15:03 2013 -0800
@@ -10,123 +10,669 @@
     mf:name "N-Quads tests" ;
     mf:entries
     (
-    <#nq-syntax-uri-01.nq>
-    <#nq-syntax-uri-02.nq>
-    <#nq-syntax-uri-03.nq>
-    <#nq-syntax-uri-04.nq>
-    <#nq-syntax-uri-05.nq>
-    <#nq-syntax-uri-06.nq>
-    <#nq-syntax-bnode-01.nq>
-    <#nq-syntax-bnode-02.nq>
-    <#nq-syntax-bnode-03.nq>
-    <#nq-syntax-bnode-04.nq>
-    <#nq-syntax-bnode-05.nq>
-    <#nq-syntax-bnode-06.nq>
-    <#nq-syntax-bad-literal-01.nq>
-    <#nq-syntax-bad-literal-02.nq>
-    <#nq-syntax-bad-literal-03.nq>
-    <#nq-syntax-bad-uri-01.nq>
-    <#nq-syntax-bad-quint-01.nq>
+    <#nq-syntax-uri-01>
+    <#nq-syntax-uri-02>
+    <#nq-syntax-uri-03>
+    <#nq-syntax-uri-04>
+    <#nq-syntax-uri-05>
+    <#nq-syntax-uri-06>
+    <#nq-syntax-bnode-01>
+    <#nq-syntax-bnode-02>
+    <#nq-syntax-bnode-03>
+    <#nq-syntax-bnode-04>
+    <#nq-syntax-bnode-05>
+    <#nq-syntax-bnode-06>
+    <#nq-syntax-bad-literal-01>
+    <#nq-syntax-bad-literal-02>
+    <#nq-syntax-bad-literal-03>
+    <#nq-syntax-bad-uri-01>
+    <#nq-syntax-bad-quint-01>
+    <#nt-syntax-file-01>
+    <#nt-syntax-file-02>
+    <#nt-syntax-file-03>
+    <#nt-syntax-uri-01>
+    <#nt-syntax-uri-02>
+    <#nt-syntax-uri-03>
+    <#nt-syntax-uri-04>
+    <#nt-syntax-string-01>
+    <#nt-syntax-string-02>
+    <#nt-syntax-string-03>
+    <#nt-syntax-str-esc-01>
+    <#nt-syntax-str-esc-02>
+    <#nt-syntax-str-esc-03>
+    <#nt-syntax-bnode-01>
+    <#nt-syntax-bnode-02>
+    <#nt-syntax-bnode-03>
+    <#nt-syntax-datatypes-01>
+    <#nt-syntax-datatypes-02>
+    <#nt-syntax-bad-uri-01>
+    <#nt-syntax-bad-uri-02>
+    <#nt-syntax-bad-uri-03>
+    <#nt-syntax-bad-uri-04>
+    <#nt-syntax-bad-uri-05>
+    <#nt-syntax-bad-uri-06>
+    <#nt-syntax-bad-uri-07>
+    <#nt-syntax-bad-uri-08>
+    <#nt-syntax-bad-uri-09>
+    <#nt-syntax-bad-prefix-01>
+    <#nt-syntax-bad-base-01>
+    <#nt-syntax-bad-struct-01>
+    <#nt-syntax-bad-struct-02>
+    <#nt-syntax-bad-lang-01>
+    <#nt-syntax-bad-esc-01>
+    <#nt-syntax-bad-esc-02>
+    <#nt-syntax-bad-esc-03>
+    <#nt-syntax-bad-string-01>
+    <#nt-syntax-bad-string-02>
+    <#nt-syntax-bad-string-03>
+    <#nt-syntax-bad-string-04>
+    <#nt-syntax-bad-string-05>
+    <#nt-syntax-bad-string-06>
+    <#nt-syntax-bad-string-07>
+    <#nt-syntax-bad-num-01>
+    <#nt-syntax-bad-num-02>
+    <#nt-syntax-bad-num-03>
+    <#nt-syntax-subm-01>
+    <#comment_following_triple>
+    <#literal>
+    <#literal_all_controls>
+    <#literal_all_punctuation>
+    <#literal_ascii_boundaries>
+    <#literal_with_2_dquotes>
+    <#literal_with_2_squotes>
+    <#literal_with_BACKSPACE>
+    <#literal_with_CARRIAGE_RETURN>
+    <#literal_with_CHARACTER_TABULATION>
+    <#literal_with_dquote>
+    <#literal_with_escaped_BACKSPACE>
+    <#literal_with_escaped_CARRIAGE_RETURN>
+    <#literal_with_escaped_CHARACTER_TABULATION>
+    <#literal_with_escaped_FORM_FEED>
+    <#literal_with_escaped_LINE_FEED>
+    <#literal_with_FORM_FEED>
+    <#literal_with_LINE_FEED>
+    <#literal_with_numeric_escape4>
+    <#literal_with_numeric_escape8>
+    <#literal_with_REVERSE_SOLIDUS>
+    <#literal_with_REVERSE_SOLIDUS2>
+    <#literal_with_squote>
+    <#literal_with_UTF8_boundaries>
+    <#langtagged_non_LONG>
+    <#langtagged_LONG>
+    <#lantag_with_subtag>
+    <#minimal_whitespace>
     ) .
 
-<#nq-syntax-uri-01.nq> a rdft:TestNQuadsPositiveSyntax ;
+<#nq-syntax-uri-01> a rdft:TestNQuadsPositiveSyntax ;
    mf:name    "nq-syntax-uri-01" ;
    rdfs:comment "URI graph with URI triple" ;
    mf:action    <nq-syntax-uri-01.nq> ;
    .
 
-<#nq-syntax-uri-02.nq> a rdft:TestNQuadsPositiveSyntax ;
+<#nq-syntax-uri-02> a rdft:TestNQuadsPositiveSyntax ;
    mf:name    "nq-syntax-uri-02" ;
    rdfs:comment "URI graph with BNode subject" ;
    mf:action    <nq-syntax-uri-02.nq> ;
    .
 
-<#nq-syntax-uri-03.nq> a rdft:TestNQuadsPositiveSyntax ;
+<#nq-syntax-uri-03> a rdft:TestNQuadsPositiveSyntax ;
    mf:name    "nq-syntax-uri-03" ;
    rdfs:comment "URI graph with BNode object" ;
    mf:action    <nq-syntax-uri-03.nq> ;
    .
 
-<#nq-syntax-uri-04.nq> a rdft:TestNQuadsPositiveSyntax ;
+<#nq-syntax-uri-04> a rdft:TestNQuadsPositiveSyntax ;
    mf:name    "nq-syntax-uri-04" ;
    rdfs:comment "URI graph with simple literal" ;
    mf:action    <nq-syntax-uri-04.nq> ;
    .
 
-<#nq-syntax-uri-05.nq> a rdft:TestNQuadsPositiveSyntax ;
+<#nq-syntax-uri-05> a rdft:TestNQuadsPositiveSyntax ;
    mf:name    "nq-syntax-uri-05" ;
    rdfs:comment "URI graph with language tagged literal" ;
    mf:action    <nq-syntax-uri-05.nq> ;
    .
 
-<#nq-syntax-uri-06.nq> a rdft:TestNQuadsPositiveSyntax ;
+<#nq-syntax-uri-06> a rdft:TestNQuadsPositiveSyntax ;
    mf:name    "nq-syntax-uri-06" ;
    rdfs:comment "URI graph with datatyped literal" ;
    mf:action    <nq-syntax-uri-06.nq> ;
    .
 
-<#nq-syntax-bnode-01.nq> a rdft:TestNQuadsPositiveSyntax ;
+<#nq-syntax-bnode-01> a rdft:TestNQuadsPositiveSyntax ;
    mf:name    "nq-syntax-bnode-01" ;
    rdfs:comment "BNode graph with URI triple" ;
    mf:action    <nq-syntax-bnode-01.nq> ;
    .
 
-<#nq-syntax-bnode-02.nq> a rdft:TestNQuadsPositiveSyntax ;
+<#nq-syntax-bnode-02> a rdft:TestNQuadsPositiveSyntax ;
    mf:name    "nq-syntax-bnode-02" ;
    rdfs:comment "BNode graph with BNode subject" ;
    mf:action    <nq-syntax-bnode-02.nq> ;
    .
 
-<#nq-syntax-bnode-03.nq> a rdft:TestNQuadsPositiveSyntax ;
+<#nq-syntax-bnode-03> a rdft:TestNQuadsPositiveSyntax ;
    mf:name    "nq-syntax-bnode-03" ;
    rdfs:comment "BNode graph with BNode object" ;
    mf:action    <nq-syntax-bnode-03.nq> ;
    .
 
-<#nq-syntax-bnode-04.nq> a rdft:TestNQuadsPositiveSyntax ;
+<#nq-syntax-bnode-04> a rdft:TestNQuadsPositiveSyntax ;
    mf:name    "nq-syntax-bnode-04" ;
    rdfs:comment "BNode graph with simple literal" ;
    mf:action    <nq-syntax-bnode-04.nq> ;
    .
 
-<#nq-syntax-bnode-05.nq> a rdft:TestNQuadsPositiveSyntax ;
+<#nq-syntax-bnode-05> a rdft:TestNQuadsPositiveSyntax ;
    mf:name    "nq-syntax-bnode-05" ;
    rdfs:comment "BNode graph with language tagged literal" ;
    mf:action    <nq-syntax-bnode-05.nq> ;
    .
 
-<#nq-syntax-bnode-06.nq> a rdft:TestNQuadsPositiveSyntax ;
+<#nq-syntax-bnode-06> a rdft:TestNQuadsPositiveSyntax ;
    mf:name    "nq-syntax-bnode-06" ;
    rdfs:comment "BNode graph with datatyped literal" ;
    mf:action    <nq-syntax-bnode-06.nq> ;
    .
 
-<#nq-syntax-bad-literal-01.nq> a rdft:TestNQuadsNegativeSyntax ;
+<#nq-syntax-bad-literal-01> a rdft:TestNQuadsNegativeSyntax ;
    mf:name    "nq-syntax-bad-literal-01" ;
    rdfs:comment "Graph name may not be a simple literal (negative test)" ;
    mf:action    <nq-syntax-bad-literal-01.nq> ;
    .
 
-<#nq-syntax-bad-literal-02.nq> a rdft:TestNQuadsNegativeSyntax ;
+<#nq-syntax-bad-literal-02> a rdft:TestNQuadsNegativeSyntax ;
    mf:name    "nq-syntax-bad-literal-02" ;
    rdfs:comment "Graph name may not be a language tagged literal (negative test)" ;
    mf:action    <nq-syntax-bad-literal-02.nq> ;
    .
 
-<#nq-syntax-bad-literal-03.nq> a rdft:TestNQuadsNegativeSyntax ;
+<#nq-syntax-bad-literal-03> a rdft:TestNQuadsNegativeSyntax ;
    mf:name    "nq-syntax-bad-literal-03" ;
    rdfs:comment "Graph name may not be a datatyped literal (negative test)" ;
    mf:action    <nq-syntax-bad-literal-03.nq> ;
    .
 
-<#nq-syntax-bad-uri-01.nq> a rdft:TestNQuadsNegativeSyntax ;
+<#nq-syntax-bad-uri-01> a rdft:TestNQuadsNegativeSyntax ;
    mf:name    "nq-syntax-bad-uri-01" ;
    rdfs:comment "Graph name URI must be absolute (negative test)" ;
    mf:action    <nq-syntax-bad-uri-01.nq> ;
    .
 
-<#nq-syntax-bad-quint-01.nq> a rdft:TestNQuadsNegativeSyntax ;
+<#nq-syntax-bad-quint-01> a rdft:TestNQuadsNegativeSyntax ;
    mf:name    "nq-syntax-bad-quint-01" ;
    rdfs:comment "N-Quads does not have a fifth element (negative test)" ;
    mf:action    <nq-syntax-bad-quint-01.nq> ;
    .
+
+<#nt-syntax-file-01> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-file-01" ;
+   rdfs:comment "Empty file" ;
+   mf:action    <nt-syntax-file-01.nq> ;
+   .
+
+<#nt-syntax-file-02> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-file-02" ;
+   rdfs:comment "Only comment" ;
+   mf:action    <nt-syntax-file-02.nq> ;
+   .
+
+<#nt-syntax-file-03> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-file-03" ;
+   rdfs:comment "One comment, one empty line" ;
+   mf:action    <nt-syntax-file-03.nq> ;
+   .
+
+<#nt-syntax-uri-01> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-uri-01" ;
+   rdfs:comment "Only IRIs" ;
+   mf:action    <nt-syntax-uri-01.nq> ;
+   .
+
+<#nt-syntax-uri-02> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-uri-02" ;
+   rdfs:comment "IRIs with Unicode escape" ;
+   mf:action    <nt-syntax-uri-02.nq> ;
+   .
+
+<#nt-syntax-uri-03> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-uri-03" ;
+   rdfs:comment "IRIs with long Unicode escape" ;
+   mf:action    <nt-syntax-uri-03.nq> ;
+   .
+
+<#nt-syntax-uri-04> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-uri-04" ;
+   rdfs:comment "Legal IRIs" ;
+   mf:action    <nt-syntax-uri-04.nq> ;
+   .
+
+<#nt-syntax-string-01> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-string-01" ;
+   rdfs:comment "string literal" ;
+   mf:action    <nt-syntax-string-01.nq> ;
+   .
+
+<#nt-syntax-string-02> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-string-02" ;
+   rdfs:comment "langString literal" ;
+   mf:action    <nt-syntax-string-02.nq> ;
+   .
+
+<#nt-syntax-string-03> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-string-03" ;
+   rdfs:comment "langString literal with region" ;
+   mf:action    <nt-syntax-string-03.nq> ;
+   .
+
+<#nt-syntax-str-esc-01> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-str-esc-01" ;
+   rdfs:comment "string literal with escaped newline" ;
+   mf:action    <nt-syntax-str-esc-01.nq> ;
+   .
+
+<#nt-syntax-str-esc-02> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-str-esc-02" ;
+   rdfs:comment "string literal with Unicode escape" ;
+   mf:action    <nt-syntax-str-esc-02.nq> ;
+   .
+
+<#nt-syntax-str-esc-03> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-str-esc-03" ;
+   rdfs:comment "string literal with long Unicode escape" ;
+   mf:action    <nt-syntax-str-esc-03.nq> ;
+   .
+
+<#nt-syntax-bnode-01> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-bnode-01" ;
+   rdfs:comment "bnode subject" ;
+   mf:action    <nt-syntax-bnode-01.nq> ;
+   .
+
+<#nt-syntax-bnode-02> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-bnode-02" ;
+   rdfs:comment "bnode object" ;
+   mf:action    <nt-syntax-bnode-02.nq> ;
+   .
+
+<#nt-syntax-bnode-03> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-bnode-03" ;
+   rdfs:comment "Blank node labels may start with a digit" ;
+   mf:action    <nt-syntax-bnode-03.nq> ;
+   .
+
+<#nt-syntax-datatypes-01> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-datatypes-01" ;
+   rdfs:comment "xsd:byte literal" ;
+   mf:action    <nt-syntax-datatypes-01.nq> ;
+   .
+
+<#nt-syntax-datatypes-02> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-datatypes-02" ;
+   rdfs:comment "integer as xsd:string" ;
+   mf:action    <nt-syntax-datatypes-02.nq> ;
+   .
+
+<#nt-syntax-bad-uri-01> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-01" ;
+   rdfs:comment "Bad IRI : space (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-01.nq> ;
+   .
+
+<#nt-syntax-bad-uri-02> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-02" ;
+   rdfs:comment "Bad IRI : bad escape (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-02.nq> ;
+   .
+
+<#nt-syntax-bad-uri-03> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-03" ;
+   rdfs:comment "Bad IRI : bad long escape (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-03.nq> ;
+   .
+
+<#nt-syntax-bad-uri-04> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-04" ;
+   rdfs:comment "Bad IRI : character escapes not allowed (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-04.nq> ;
+   .
+
+<#nt-syntax-bad-uri-05> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-05" ;
+   rdfs:comment "Bad IRI : character escapes not allowed (2) (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-05.nq> ;
+   .
+
+<#nt-syntax-bad-uri-06> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-06" ;
+   rdfs:comment "Bad IRI : relative IRI not allowed in subject (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-06.nq> ;
+   .
+
+<#nt-syntax-bad-uri-07> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-07" ;
+   rdfs:comment "Bad IRI : relative IRI not allowed in predicate (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-07.nq> ;
+   .
+
+<#nt-syntax-bad-uri-08> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-08" ;
+   rdfs:comment "Bad IRI : relative IRI not allowed in object (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-08.nq> ;
+   .
+
+<#nt-syntax-bad-uri-09> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-09" ;
+   rdfs:comment "Bad IRI : relative IRI not allowed in datatype (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-09.nq> ;
+   .
+
+<#nt-syntax-bad-prefix-01> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-prefix-01" ;
+   rdfs:comment "@prefix not allowed in n-triples (negative test)" ;
+   mf:action    <nt-syntax-bad-prefix-01.nq> ;
+   .
+
+<#nt-syntax-bad-base-01> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-base-01" ;
+   rdfs:comment "@base not allowed in N-Triples (negative test)" ;
+   mf:action    <nt-syntax-bad-base-01.nq> ;
+   .
+
+<#nt-syntax-bad-struct-01> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-struct-01" ;
+   rdfs:comment "N-Triples does not have objectList (negative test)" ;
+   mf:action    <nt-syntax-bad-struct-01.nq> ;
+   .
+
+<#nt-syntax-bad-struct-02> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-struct-02" ;
+   rdfs:comment "N-Triples does not have predicateObjectList (negative test)" ;
+   mf:action    <nt-syntax-bad-struct-02.nq> ;
+   .
+
+<#nt-syntax-bad-lang-01> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-lang-01" ;
+   rdfs:comment "langString with bad lang (negative test)" ;
+   mf:action    <nt-syntax-bad-lang-01.nq> ;
+   .
+
+<#nt-syntax-bad-esc-01> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-esc-01" ;
+   rdfs:comment "Bad string escape (negative test)" ;
+   mf:action    <nt-syntax-bad-esc-01.nq> ;
+   .
+
+<#nt-syntax-bad-esc-02> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-esc-02" ;
+   rdfs:comment "Bad string escape (negative test)" ;
+   mf:action    <nt-syntax-bad-esc-02.nq> ;
+   .
+
+<#nt-syntax-bad-esc-03> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-esc-03" ;
+   rdfs:comment "Bad string escape (negative test)" ;
+   mf:action    <nt-syntax-bad-esc-03.nq> ;
+   .
+
+<#nt-syntax-bad-string-01> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-01" ;
+   rdfs:comment "mismatching string literal open/close (negative test)" ;
+   mf:action    <nt-syntax-bad-string-01.nq> ;
+   .
+
+<#nt-syntax-bad-string-02> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-02" ;
+   rdfs:comment "mismatching string literal open/close (negative test)" ;
+   mf:action    <nt-syntax-bad-string-02.nq> ;
+   .
+
+<#nt-syntax-bad-string-03> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-03" ;
+   rdfs:comment "single quotes (negative test)" ;
+   mf:action    <nt-syntax-bad-string-03.nq> ;
+   .
+
+<#nt-syntax-bad-string-04> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-04" ;
+   rdfs:comment "long single string literal (negative test)" ;
+   mf:action    <nt-syntax-bad-string-04.nq> ;
+   .
+
+<#nt-syntax-bad-string-05> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-05" ;
+   rdfs:comment "long double string literal (negative test)" ;
+   mf:action    <nt-syntax-bad-string-05.nq> ;
+   .
+
+<#nt-syntax-bad-string-06> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-06" ;
+   rdfs:comment "string literal with no end (negative test)" ;
+   mf:action    <nt-syntax-bad-string-06.nq> ;
+   .
+
+<#nt-syntax-bad-string-07> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-07" ;
+   rdfs:comment "string literal with no start (negative test)" ;
+   mf:action    <nt-syntax-bad-string-07.nq> ;
+   .
+
+<#nt-syntax-bad-num-01> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-num-01" ;
+   rdfs:comment "no numbers in N-Triples (integer) (negative test)" ;
+   mf:action    <nt-syntax-bad-num-01.nq> ;
+   .
+
+<#nt-syntax-bad-num-02> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-num-02" ;
+   rdfs:comment "no numbers in N-Triples (decimal) (negative test)" ;
+   mf:action    <nt-syntax-bad-num-02.nq> ;
+   .
+
+<#nt-syntax-bad-num-03> a rdft:TestNQuadsNegativeSyntax ;
+   mf:name    "nt-syntax-bad-num-03" ;
+   rdfs:comment "no numbers in N-Triples (float) (negative test)" ;
+   mf:action    <nt-syntax-bad-num-03.nq> ;
+   .
+
+<#nt-syntax-subm-01> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "nt-syntax-subm-01" ;
+   rdfs:comment "Submission test from Original RDF Test Cases" ;
+   mf:action    <nt-syntax-subm-01.nq> ;
+   .
+
+<#comment_following_triple> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "comment_following_triple" ;
+   rdfs:comment "Tests comments after a triple" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <comment_following_triple.nq> ;
+   .
+
+<#literal_ascii_boundaries> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_ascii_boundaries" ;
+   rdfs:comment "literal_ascii_boundaries '\\x00\\x26\\x28...'" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_ascii_boundaries.nq> ;
+   .
+
+<#literal_with_UTF8_boundaries> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_UTF8_boundaries" ;
+   rdfs:comment "literal_with_UTF8_boundaries '\\x80\\x7ff\\x800\\xfff...'" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_UTF8_boundaries.nq> ;
+   .
+
+<#literal_all_controls> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_all_controls" ;
+   rdfs:comment "literal_all_controls '\\x00\\x01\\x02\\x03\\x04...'" ;
+   rdft:approval rdft:Approved ;
+   mf:action   <literal_all_controls.nq> ;
+   .
+
+<#literal_all_punctuation> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_all_punctuation" ;
+   rdfs:comment "literal_all_punctuation '!\"#$%&()...'" ;
+   rdft:approval rdft:Approved ;
+   mf:action    <literal_all_punctuation.nq> ;
+   .
+
+<#literal_with_squote> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_squote" ;
+   rdfs:comment "literal with squote \"x'y\"" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_squote.nq> ;
+   .
+
+<#literal_with_2_squotes> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_2_squotes" ;
+   rdfs:comment "literal with 2 squotes \"x''y\"" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_2_squotes.nq> ;
+   .
+
+<#literal> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal" ;
+   rdfs:comment "literal \"\"\"x\"\"\"" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal.nq> ;
+   .
+
+<#literal_with_dquote> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_dquote" ;
+   rdfs:comment 'literal with dquote "x\"y"' ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_dquote.nq> ;
+   .
+
+<#literal_with_2_dquotes> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_2_dquotes" ;
+   rdfs:comment "literal with 2 squotes \"\"\"a\"\"b\"\"\"" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_2_dquotes.nq> ;
+   .
+
+<#literal_with_REVERSE_SOLIDUS2> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name    "literal_with_REVERSE_SOLIDUS2" ;
+   rdfs:comment "REVERSE SOLIDUS at end of literal" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_REVERSE_SOLIDUS2.nq> ;
+   .
+
+<#literal_with_CHARACTER_TABULATION> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_CHARACTER_TABULATION" ;
+   rdfs:comment "literal with CHARACTER TABULATION" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_CHARACTER_TABULATION.nq> ;
+   .
+
+<#literal_with_BACKSPACE> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_BACKSPACE" ;
+   rdfs:comment "literal with BACKSPACE" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_BACKSPACE.nq> ;
+   .
+
+<#literal_with_LINE_FEED> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_LINE_FEED" ;
+   rdfs:comment "literal with LINE FEED" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_LINE_FEED.nq> ;
+   .
+
+<#literal_with_CARRIAGE_RETURN> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_CARRIAGE_RETURN" ;
+   rdfs:comment "literal with CARRIAGE RETURN" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_CARRIAGE_RETURN.nq> ;
+   .
+
+<#literal_with_FORM_FEED> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_FORM_FEED" ;
+   rdfs:comment "literal with FORM FEED" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_FORM_FEED.nq> ;
+   .
+
+<#literal_with_REVERSE_SOLIDUS> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_REVERSE_SOLIDUS" ;
+   rdfs:comment "literal with REVERSE SOLIDUS" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_REVERSE_SOLIDUS.nq> ;
+   .
+
+<#literal_with_escaped_CHARACTER_TABULATION> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_escaped_CHARACTER_TABULATION" ;
+   rdfs:comment "literal with escaped CHARACTER TABULATION" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_CHARACTER_TABULATION.nq> ;
+   .
+
+<#literal_with_escaped_BACKSPACE> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_escaped_BACKSPACE" ;
+   rdfs:comment "literal with escaped BACKSPACE" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_BACKSPACE.nq> ;
+   .
+
+<#literal_with_escaped_LINE_FEED> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_escaped_LINE_FEED" ;
+   rdfs:comment "literal with escaped LINE FEED" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_LINE_FEED.nq> ;
+   .
+
+<#literal_with_escaped_CARRIAGE_RETURN> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_escaped_CARRIAGE_RETURN" ;
+   rdfs:comment "literal with escaped CARRIAGE RETURN" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_CARRIAGE_RETURN.nq> ;
+   .
+
+<#literal_with_escaped_FORM_FEED> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_escaped_FORM_FEED" ;
+   rdfs:comment "literal with escaped FORM FEED" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_FORM_FEED.nq> ;
+   .
+
+<#literal_with_numeric_escape4> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_numeric_escape4" ;
+   rdfs:comment "literal with numeric escape4 \\u" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_numeric_escape4.nq> ;
+   .
+
+<#literal_with_numeric_escape8> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "literal_with_numeric_escape8" ;
+   rdfs:comment "literal with numeric escape8 \\U" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <literal_with_numeric_escape4.nq> ;
+   .
+
+<#langtagged_non_LONG> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "langtagged_non_LONG" ;
+   rdfs:comment "langtagged non-LONG \"x\"@en" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <langtagged_non_LONG.nq> ;
+   .
+
+<#langtagged_LONG> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "langtagged_LONG" ;
+   rdfs:comment "langtagged LONG \"\"\"x\"\"\"@en" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <langtagged_non_LONG.nq> ;
+   .
+
+<#lantag_with_subtag> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "lantag_with_subtag" ;
+   rdfs:comment "lantag with subtag \"x\"@en-us" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <lantag_with_subtag.nq> ;
+   .
+
+<#minimal_whitespace> a rdft:TestNQuadsPositiveSyntax ;
+   mf:name      "minimal_whitespace" ;
+   rdfs:comment "tests absense of whitespace between subject, predicate, object and end-of-statement" ;
+   rdft:approval rdft:Proposed ;
+   mf:action    <minimal_whitespace.nq> ;
+   .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/minimal_whitespace.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,6 @@
+<http://example/s><http://example/p><http://example/o>.
+<http://example/s><http://example/p>"Alice".
+<http://example/s><http://example/p>_:o.
+_:s<http://example/p><http://example/o>.
+_:s<http://example/p>"Alice".
+_:s<http://example/p>_:bnode1.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-base-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+@base <http://example/> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-esc-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# Bad string escape
+<http://example/s> <http://example/p> "a\zb" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-esc-02.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# Bad string escape
+<http://example/s> <http://example/p> "\uWXYZ" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-esc-03.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# Bad string escape
+<http://example/s> <http://example/p> "\U0000WXYZ" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-lang-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# Bad lang tag
+<http://example/s> <http://example/p> "string"@1 .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-num-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> 1 .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-num-02.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> 1.0 .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-num-03.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> 1.0e0 .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-prefix-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+@prefix : <http://example/> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-string-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "abc' .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-string-02.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> 1.0 .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-string-03.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> 1.0e1 .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-string-04.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> '''abc''' .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-string-05.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> """abc""" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-string-06.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "abc .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-string-07.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> abc" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-struct-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> <http://example/o>, <http://example/o2> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-struct-02.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> <http://example/o>; <http://example/p2>, <http://example/o2> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-uri-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# Bad IRI : space.
+<http://example/ space> <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-uri-02.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# Bad IRI : bad escape
+<http://example/\u00ZZ11> <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-uri-03.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# Bad IRI : bad escape
+<http://example/\U00ZZ1111> <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-uri-04.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# Bad IRI : character escapes not allowed.
+<http://example/\n> <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-uri-05.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# Bad IRI : character escapes not allowed.
+<http://example/\/> <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-uri-06.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# No relative IRIs in N-Triples
+<s> <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-uri-07.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# No relative IRIs in N-Triples
+<http://example/s> <p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-uri-08.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# No relative IRIs in N-Triples
+<http://example/s> <http://example/p> <o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bad-uri-09.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# No relative IRIs in N-Triples
+<http://example/s> <http://example/p> "foo"^^<dt> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bnode-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+_:a  <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bnode-02.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+<http://example/s> <http://example/p> _:a .
+_:a  <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-bnode-03.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+<http://example/s> <http://example/p> _:1a .
+_:1a  <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-datatypes-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "123"^^<http://www.w3.org/2001/XMLSchema#byte> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-datatypes-02.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "123"^^<http://www.w3.org/2001/XMLSchema#string> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-file-02.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+#Empty file.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-file-03.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+#One comment, one empty line.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-str-esc-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "a\n" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-str-esc-02.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "a\u0020b" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-str-esc-03.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "a\U00000020b" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-string-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "string" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-string-02.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "string"@en .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-string-03.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "string"@en-uk .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-subm-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,79 @@
+#
+# Copyright World Wide Web Consortium, (Massachusetts Institute of
+# Technology, Institut National de Recherche en Informatique et en
+# Automatique, Keio University).
+#
+# All Rights Reserved.
+#
+# Please see the full Copyright clause at
+# <http://www.w3.org/Consortium/Legal/copyright-software.html>
+#
+# Test file with a variety of legal N-Triples
+#
+# Dave Beckett - http://purl.org/net/dajobe/
+# 
+# $Id: test.nt,v 1.7 2003/10/06 15:52:19 dbeckett2 Exp $
+# 
+#####################################################################
+
+# comment lines
+  	  	   # comment line after whitespace
+# empty blank line, then one with spaces and tabs
+
+         	
+<http://example.org/resource1> <http://example.org/property> <http://example.org/resource2> .
+_:anon <http://example.org/property> <http://example.org/resource2> .
+<http://example.org/resource2> <http://example.org/property> _:anon .
+# spaces and tabs throughout:
+ 	 <http://example.org/resource3> 	 <http://example.org/property>	 <http://example.org/resource2> 	.	 
+
+# line ending with CR NL (ASCII 13, ASCII 10)
+<http://example.org/resource4> <http://example.org/property> <http://example.org/resource2> .
+
+# 2 statement lines separated by single CR (ASCII 10)
+<http://example.org/resource5> <http://example.org/property> <http://example.org/resource2> .
+<http://example.org/resource6> <http://example.org/property> <http://example.org/resource2> .
+
+
+# All literal escapes
+<http://example.org/resource7> <http://example.org/property> "simple literal" .
+<http://example.org/resource8> <http://example.org/property> "backslash:\\" .
+<http://example.org/resource9> <http://example.org/property> "dquote:\"" .
+<http://example.org/resource10> <http://example.org/property> "newline:\n" .
+<http://example.org/resource11> <http://example.org/property> "return\r" .
+<http://example.org/resource12> <http://example.org/property> "tab:\t" .
+
+# Space is optional before final .
+<http://example.org/resource13> <http://example.org/property> <http://example.org/resource2>.
+<http://example.org/resource14> <http://example.org/property> "x".
+<http://example.org/resource15> <http://example.org/property> _:anon.
+
+# \u and \U escapes
+# latin small letter e with acute symbol \u00E9 - 3 UTF-8 bytes #xC3 #A9
+<http://example.org/resource16> <http://example.org/property> "\u00E9" .
+# Euro symbol \u20ac  - 3 UTF-8 bytes #xE2 #x82 #xAC
+<http://example.org/resource17> <http://example.org/property> "\u20AC" .
+# resource18 test removed
+# resource19 test removed
+# resource20 test removed
+
+# XML Literals as Datatyped Literals
+<http://example.org/resource21> <http://example.org/property> ""^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
+<http://example.org/resource22> <http://example.org/property> " "^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
+<http://example.org/resource23> <http://example.org/property> "x"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
+<http://example.org/resource23> <http://example.org/property> "\""^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
+<http://example.org/resource24> <http://example.org/property> "<a></a>"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
+<http://example.org/resource25> <http://example.org/property> "a <b></b>"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
+<http://example.org/resource26> <http://example.org/property> "a <b></b> c"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
+<http://example.org/resource26> <http://example.org/property> "a\n<b></b>\nc"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
+<http://example.org/resource27> <http://example.org/property> "chat"^^<http://www.w3.org/2000/01/rdf-schema#XMLLiteral> .
+# resource28 test removed 2003-08-03
+# resource29 test removed 2003-08-03
+
+# Plain literals with languages
+<http://example.org/resource30> <http://example.org/property> "chat"@fr .
+<http://example.org/resource31> <http://example.org/property> "chat"@en .
+
+# Typed Literals
+<http://example.org/resource32> <http://example.org/property> "abc"^^<http://example.org/datatype1> .
+# resource33 test removed 2003-08-03
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-uri-01.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-uri-02.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# x53 is capital S
+<http://example/\u0053> <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-uri-03.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# x53 is capital S
+<http://example/\U00000053> <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nt-syntax-uri-04.nq	Fri Nov 08 12:15:03 2013 -0800
@@ -0,0 +1,2 @@
+# IRI with all chars in it.
+<http://example/s> <http://example/p> <scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> .