N-Triples positive and negative syntax tests
authorGregg Kellogg <gregg@kellogg-assoc.com>
Tue, 12 Mar 2013 17:03:05 -0700
changeset 645 09d795631a53
parent 644 9d3d552c7e5f
child 646 e79b34dd5c4d
N-Triples positive and negative syntax tests
rdf-turtle/tests-nt/manifest.ttl
rdf-turtle/tests-nt/nt-syntax-bad-base-01.nt
rdf-turtle/tests-nt/nt-syntax-bad-esc-01.nt
rdf-turtle/tests-nt/nt-syntax-bad-esc-02.nt
rdf-turtle/tests-nt/nt-syntax-bad-esc-03.nt
rdf-turtle/tests-nt/nt-syntax-bad-lang-01.nt
rdf-turtle/tests-nt/nt-syntax-bad-num-01.nt
rdf-turtle/tests-nt/nt-syntax-bad-num-02.nt
rdf-turtle/tests-nt/nt-syntax-bad-num-03.nt
rdf-turtle/tests-nt/nt-syntax-bad-prefix-01.nt
rdf-turtle/tests-nt/nt-syntax-bad-string-01.nt
rdf-turtle/tests-nt/nt-syntax-bad-string-02.nt
rdf-turtle/tests-nt/nt-syntax-bad-string-03.nt
rdf-turtle/tests-nt/nt-syntax-bad-string-04.nt
rdf-turtle/tests-nt/nt-syntax-bad-string-05.nt
rdf-turtle/tests-nt/nt-syntax-bad-string-06.nt
rdf-turtle/tests-nt/nt-syntax-bad-string-07.nt
rdf-turtle/tests-nt/nt-syntax-bad-struct-01.nt
rdf-turtle/tests-nt/nt-syntax-bad-struct-02.nt
rdf-turtle/tests-nt/nt-syntax-bad-uri-01.nt
rdf-turtle/tests-nt/nt-syntax-bad-uri-02.nt
rdf-turtle/tests-nt/nt-syntax-bad-uri-03.nt
rdf-turtle/tests-nt/nt-syntax-bad-uri-04.nt
rdf-turtle/tests-nt/nt-syntax-bad-uri-05.nt
rdf-turtle/tests-nt/nt-syntax-bnode-01.nt
rdf-turtle/tests-nt/nt-syntax-bnode-02.nt
rdf-turtle/tests-nt/nt-syntax-datatypes-01.nt
rdf-turtle/tests-nt/nt-syntax-datatypes-02.nt
rdf-turtle/tests-nt/nt-syntax-file-01.nt
rdf-turtle/tests-nt/nt-syntax-file-02.nt
rdf-turtle/tests-nt/nt-syntax-file-03.nt
rdf-turtle/tests-nt/nt-syntax-str-esc-01.nt
rdf-turtle/tests-nt/nt-syntax-str-esc-02.nt
rdf-turtle/tests-nt/nt-syntax-str-esc-03.nt
rdf-turtle/tests-nt/nt-syntax-string-01.nt
rdf-turtle/tests-nt/nt-syntax-string-02.nt
rdf-turtle/tests-nt/nt-syntax-string-03.nt
rdf-turtle/tests-nt/nt-syntax-subm-01.nt
rdf-turtle/tests-nt/nt-syntax-uri-01.nt
rdf-turtle/tests-nt/nt-syntax-uri-02.nt
rdf-turtle/tests-nt/nt-syntax-uri-03.nt
rdf-turtle/tests-nt/nt-syntax-uri-04.nt
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/manifest.ttl	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,308 @@
+# N-Triples Syntax tests
+
[email protected] rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
[email protected] rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
[email protected] mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
[email protected] qt:     <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .
+
[email protected] rdft:   <http://www.w3.org/ns/rdftest#> .
+
+<>  rdf:type mf:Manifest ;
+    rdfs:comment "N-Triples tests" ;
+    mf:entries
+    (
+    <#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-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-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-esc-04>
+    <#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>
+    <#turtle-subm-01>
+    ) .
+
+<#nt-syntax-file-01> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-file-01" ;
+   rdfs:comment "Empty file" ;
+   mf:action    <nt-syntax-file-01.ttl> ;
+   .
+
+<#nt-syntax-file-02> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-file-02" ;
+   rdfs:comment "Only comment" ;
+   mf:action    <nt-syntax-file-02.ttl> ;
+   .
+
+<#nt-syntax-file-03> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-file-03" ;
+   rdfs:comment "One comment, one empty line" ;
+   mf:action    <nt-syntax-file-03.ttl> ;
+   .
+
+<#nt-syntax-uri-01> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-uri-01" ;
+   rdfs:comment "Only IRIs" ;
+   mf:action    <nt-syntax-uri-01.ttl> ;
+   .
+
+<#nt-syntax-uri-02> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-uri-02" ;
+   rdfs:comment "IRIs with Unicode escape" ;
+   mf:action    <nt-syntax-uri-02.ttl> ;
+   .
+
+<#nt-syntax-uri-03> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-uri-03" ;
+   rdfs:comment "IRIs with long Unicode escape" ;
+   mf:action    <nt-syntax-uri-03.ttl> ;
+   .
+
+<#nt-syntax-uri-04> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-uri-04" ;
+   rdfs:comment "Legal IRIs" ;
+   mf:action    <nt-syntax-uri-04.ttl> ;
+   .
+
+<#nt-syntax-string-01> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-string-01" ;
+   rdfs:comment "string literal" ;
+   mf:action    <nt-syntax-string-01.ttl> ;
+   .
+
+<#nt-syntax-string-02> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-string-02" ;
+   rdfs:comment "langString literal" ;
+   mf:action    <nt-syntax-string-02.ttl> ;
+   .
+
+<#nt-syntax-string-03> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-string-03" ;
+   rdfs:comment "langString literal with region" ;
+   mf:action    <ntnt-syntax-string-03.ttl> ;
+   .
+
+<#nt-syntax-str-esc-01> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-str-esc-01" ;
+   rdfs:comment "string literal with escaped newline" ;
+   mf:action    <nt-syntax-str-esc-01.ttl> ;
+   .
+
+<#nt-syntax-str-esc-02> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-str-esc-02" ;
+   rdfs:comment "string literal with Unicode escape" ;
+   mf:action    <nt-syntax-str-esc-02.ttl> ;
+   .
+
+<#nt-syntax-str-esc-03> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-str-esc-03" ;
+   rdfs:comment "string literal with long Unicode escape" ;
+   mf:action    <nt-syntax-str-esc-03.ttl> ;
+   .
+
+<#nt-syntax-bnode-01> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-bnode-01" ;
+   rdfs:comment "bnode subject" ;
+   mf:action    <nt-syntax-bnode-01.ttl> ;
+   .
+
+<#nt-syntax-bnode-02> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-bnode-02" ;
+   rdfs:comment "bnode object" ;
+   mf:action    <nt-syntax-bnode-02.ttl> ;
+   .
+
+<#nt-syntax-datatypes-01> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-datatypes-01" ;
+   rdfs:comment "xsd:byte literal" ;
+   mf:action    <nt-syntax-datatypes-01.ttl> ;
+   .
+
+<#nt-syntax-datatypes-02> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-datatypes-02" ;
+   rdfs:comment "integer as xsd:string" ;
+   mf:action    <nt-syntax-datatypes-02.ttl> ;
+   .
+
+<#nt-syntax-bad-uri-01> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-01" ;
+   rdfs:comment "Bad IRI : space (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-01.ttl> ;
+   .
+
+<#nt-syntax-bad-uri-02> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-02" ;
+   rdfs:comment "Bad IRI : bad escape (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-02.ttl> ;
+   .
+
+<#nt-syntax-bad-uri-03> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-03" ;
+   rdfs:comment "Bad IRI : bad long escape (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-03.ttl> ;
+   .
+
+<#nt-syntax-bad-uri-04> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-04" ;
+   rdfs:comment "Bad IRI : character escapes not allowed (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-04.ttl> ;
+   .
+
+<#nt-syntax-bad-uri-05> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   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.ttl> ;
+   .
+
+<#nt-syntax-bad-prefix-01> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-prefix-01" ;
+   rdfs:comment "@prefix not allowed in n-triples (negative test)" ;
+   mf:action    <nt-syntax-bad-prefix-01.ttl> ;
+   .
+
+<#nt-syntax-bad-base-01> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-base-01" ;
+   rdfs:comment "@base not allowed in N-Triples (negative test)" ;
+   mf:action    <nt-syntax-bad-base-01.ttl> ;
+   .
+
+<#nt-syntax-bad-struct-01> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-struct-01" ;
+   rdfs:comment "N-Triples does not have objectList (negative test)" ;
+   mf:action    <nt-syntax-bad-struct-01.ttl> ;
+   .
+
+<#nt-syntax-bad-struct-02> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-struct-02" ;
+   rdfs:comment "N-Triples does not have predicateObjectList (negative test)" ;
+   mf:action    <nt-syntax-bad-struct-02.ttl> ;
+   .
+
+<#nt-syntax-bad-lang-01> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-lang-01" ;
+   rdfs:comment "langString with bad lang (negative test)" ;
+   mf:action    <nt-syntax-bad-lang-01.ttl> ;
+   .
+
+<#nt-syntax-bad-esc-01> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-esc-01" ;
+   rdfs:comment "Bad string escape (negative test)" ;
+   mf:action    <nt-syntax-bad-esc-01.ttl> ;
+   .
+
+<#nt-syntax-bad-esc-02> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-esc-02" ;
+   rdfs:comment "Bad string escape (negative test)" ;
+   mf:action    <nt-syntax-bad-esc-02.ttl> ;
+   .
+
+<#nt-syntax-bad-esc-03> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-esc-03" ;
+   rdfs:comment "Bad string escape (negative test)" ;
+   mf:action    <nt-syntax-bad-esc-03.ttl> ;
+   .
+
+<#nt-syntax-bad-esc-04> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-esc-04" ;
+   rdfs:comment "Bad string escape (negative test)" ;
+   mf:action    <nt-syntax-bad-esc-04.ttl> ;
+   .
+
+<#nt-syntax-bad-string-01> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-01" ;
+   rdfs:comment "mismatching string literal open/close (negative test)" ;
+   mf:action    <nt-syntax-bad-string-01.ttl> ;
+   .
+
+<#nt-syntax-bad-string-02> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-02" ;
+   rdfs:comment "mismatching string literal open/close (negative test)" ;
+   mf:action    <nt-syntax-bad-string-02.ttl> ;
+   .
+
+<#nt-syntax-bad-string-03> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-03" ;
+   rdfs:comment "single quotes (negative test)" ;
+   mf:action    <nt-syntax-bad-string-03.ttl> ;
+   .
+
+<#nt-syntax-bad-string-04> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-04" ;
+   rdfs:comment "long single string literal (negative test)" ;
+   mf:action    <nt-syntax-bad-string-04.ttl> ;
+   .
+
+<#nt-syntax-bad-string-05> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-05" ;
+   rdfs:comment "long double string literal (negative test)" ;
+   mf:action    <nt-syntax-bad-string-05.ttl> ;
+   .
+
+<#nt-syntax-bad-string-06> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-06" ;
+   rdfs:comment "string literal with no end (negative test)" ;
+   mf:action    <nt-syntax-bad-string-06.ttl> ;
+   .
+
+<#nt-syntax-bad-string-07> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-string-07" ;
+   rdfs:comment "string literal with no start (negative test)" ;
+   mf:action    <nt-syntax-bad-string-07.ttl> ;
+   .
+
+<#nt-syntax-bad-num-01> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-num-01" ;
+   rdfs:comment "no numbers in N-Triples (integer) (negative test)" ;
+   mf:action    <nt-syntax-bad-num-01.ttl> ;
+   .
+
+<#nt-syntax-bad-num-02> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-num-02" ;
+   rdfs:comment "no numbers in N-Triples (decimal) (negative test)" ;
+   mf:action    <nt-syntax-bad-num-02.ttl> ;
+   .
+
+<#nt-syntax-bad-num-03> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-num-03" ;
+   rdfs:comment "no numbers in N-Triples (float) (negative test)" ;
+   mf:action    <nt-syntax-bad-num-03.ttl> ;
+   .
+
+<#nt-syntax-subm-01> rdf:type rdft:TestNTriplesPositiveSyntax ;
+   mf:name    "nt-syntax-subm-01" ;
+   rdfs:comment "Submission test from Original RDF Test Cases" ;
+   mf:action    <nt-syntax-subm-01.ttl> ;
+   .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-bad-base-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
[email protected] <http://example/> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-bad-esc-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bad-esc-02.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bad-esc-03.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bad-lang-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bad-num-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> 1 .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-bad-prefix-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
[email protected] : <http://example/> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-bad-string-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "abc' .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-bad-string-02.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> 1.0 .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-bad-string-03.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> 1.0e1 .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-bad-string-04.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> '''abc''' .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-bad-string-05.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> """abc""" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-bad-string-06.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "abc .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-bad-string-07.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> abc" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-bad-struct-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bad-struct-02.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bad-uri-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bad-uri-02.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bad-uri-03.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bad-uri-04.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bad-uri-05.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bnode-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+_:a  <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-bnode-02.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-datatypes-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<s> <p> "123"^^<http://www.w3.org/2001/XMLSchema#byte> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-datatypes-02.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<s> <p> "123"^^<http://www.w3.org/2001/XMLSchema#string> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-file-02.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+#Empty file.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-file-03.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,2 @@
+#One comment, one empty line.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-str-esc-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "a\n" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-str-esc-02.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "a\u0020b" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-str-esc-03.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "a\U00000020b" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-string-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "string" .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-string-02.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "string"@en .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-string-03.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "string"@en-uk .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-subm-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-uri-01.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> <http://example/o> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-uri-02.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-uri-03.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-uri-04.nt	Tue Mar 12 17:03:05 2013 -0700
@@ -0,0 +1,2 @@
+# IRI with all chars in it.
+<http://example/s> <http://example/p> <scheme:!$%25&'()*+,-./0123456789:/@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~?#> .