--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/README Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,28 @@
+This README is for the W3C RDF Working Group's N-Quads test suite.
+This test suite contains two kinds of tests:
+
+ Positive syntax (rdft:TestNQuadsPositiveSyntax) - an input N-Quads
+ file with no syntax errors.
+
+ Negative syntax (rdft:TestNQuadsNegativeSyntax) - an input N-Quads
+ 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
+tests have a name (mf:name) and an input (mf:action).
+
+• An implementation passes a positive syntax test if it parses the
+ input.
+
+• An implementation passes a negative syntax test if it fails to parse
+ the input.
+
+The home of the test suite is <http://www.w3.org/2013/NQuadsTests/>.
+
+See http://www.w3.org/2011/rdf-wg/wiki/RDF_Test_Suites for more details.
+
+Eric Prud'hommeaux <eric+turtle@w3.org> - 11 June 2013.
+Gregg Kellogg <gregg@greggkellogg.net> - 26 June 2013.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/manifest.ttl Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,132 @@
+# N-Quads Syntax tests
+
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
+@prefix qt: <http://www.w3.org/2001/sw/DataAccess/tests/test-query#> .
+
+@prefix rdft: <http://www.w3.org/ns/rdftest#> .
+
+<> a mf:Manifest ;
+ rdfs:comment "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> 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 ;
+ 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 ;
+ 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 ;
+ 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 ;
+ 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 ;
+ 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 ;
+ 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 ;
+ 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 ;
+ 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 ;
+ 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 ;
+ 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 ;
+ 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 ;
+ mf:name "nt-syntax-bad-literal-01" ;
+ rdfs:comment "Graph name may not be a simple literal (negative test)" ;
+ mf:action <nt-syntax-bad-literal-01.nt> ;
+ .
+
+<#nq-syntax-bad-literal-02.nq> a rdft:TestNQuadsNegativeSyntax ;
+ mf:name "nt-syntax-bad-literal-02" ;
+ rdfs:comment "Graph name may not be a language tagged literal (negative test)" ;
+ mf:action <nt-syntax-bad-literal-02.nt> ;
+ .
+
+<#nq-syntax-bad-literal-03.nq> a rdft:TestNQuadsNegativeSyntax ;
+ mf:name "nt-syntax-bad-literal-03" ;
+ rdfs:comment "Graph name may not be a datatyped literal (negative test)" ;
+ mf:action <nt-syntax-bad-literal-03.nt> ;
+ .
+
+<#nq-syntax-bad-uri-01.nq> a rdft:TestNQuadsNegativeSyntax ;
+ mf:name "nt-syntax-bad-uri-01" ;
+ rdfs:comment "Graph name URI must be absolute (negative test)" ;
+ mf:action <nt-syntax-bad-uri-01.nt> ;
+ .
+
+<#nq-syntax-bad-quint-01.nq> a rdft:TestNQuadsNegativeSyntax ;
+ mf:name "nt-syntax-bad-quint-01" ;
+ rdfs:comment "N-Quads does not have a fifth element (negative test)" ;
+ mf:action <nt-syntax-bad-quint-01.nt> ;
+ .
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-bad-literal-01.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> <http://example/o> "o" .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-bad-literal-02.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> <http://example/o> "o"@en .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-bad-literal-03.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> <http://example/o> "o"^^<http://www.w3.org/2001/XMLSchema#string> .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-bad-quint-01.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,2 @@
+# N-Quads rejects a quint
+<http://example/s> <http://example/p> <http://example/o> <http://example/g> <http://example/n> .
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-bad-uri-01.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,2 @@
+# No relative IRIs in N-Quads
+<http://example/s> <http://example/p> <http://example/o> <g>.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-bnode-01.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> <http://example/o> _:g .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-bnode-02.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+_:s <http://example/p> <http://example/o> _:g .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-bnode-03.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> _:o _:g .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-bnode-04.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "o" _:g .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-bnode-05.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "o"@en _:g .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-bnode-06.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "o"^^<http://www.w3.org/2001/XMLSchema#string> _:g .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-uri-01.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> <http://example/o> <http://example/g> .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-uri-02.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+_:s <http://example/p> <http://example/o> <http://example/g> .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-uri-03.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> _:o <http://example/g> .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-uri-04.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "o" <http://example/g> .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-uri-05.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "o"@en <http://example/g> .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/nquads/tests/nq-syntax-uri-06.nq Wed Jun 26 17:47:52 2013 -0600
@@ -0,0 +1,1 @@
+<http://example/s> <http://example/p> "o"^^<http://www.w3.org/2001/XMLSchema#string> <http://example/g> .
\ No newline at end of file