Added negative tests for relative IRIs
authorGregg Kellogg <gregg@kellogg-assoc.com>
Wed, 13 Mar 2013 09:17:40 -0700
changeset 653 a96a6dfb48c2
parent 652 09d4366c9621
child 657 4af8137cdb71
Added negative tests for relative IRIs
rdf-turtle/tests-nt/manifest.ttl
rdf-turtle/tests-nt/nt-syntax-bad-uri-06.nt
rdf-turtle/tests-nt/nt-syntax-bad-uri-07.nt
rdf-turtle/tests-nt/nt-syntax-bad-uri-08.nt
rdf-turtle/tests-nt/nt-syntax-bad-uri-09.nt
--- a/rdf-turtle/tests-nt/manifest.ttl	Wed Mar 13 09:08:09 2013 -0700
+++ b/rdf-turtle/tests-nt/manifest.ttl	Wed Mar 13 09:17:40 2013 -0700
@@ -33,6 +33,10 @@
     <#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>
@@ -186,6 +190,30 @@
    mf:action    <nt-syntax-bad-uri-05.nt> ;
    .
 
+<#nt-syntax-bad-uri-06> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-06" ;
+   rdfs:comment "Relative IRI - subject (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-06.nt> ;
+   .
+
+<#nt-syntax-bad-uri-07> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-07" ;
+   rdfs:comment "Relative IRI - predicate (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-07.nt> ;
+   .
+
+<#nt-syntax-bad-uri-08> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-08" ;
+   rdfs:comment "Relative IRI - object (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-08.nt> ;
+   .
+
+<#nt-syntax-bad-uri-09> rdf:type rdft:TestNTriplesNegativeSyntax ;
+   mf:name    "nt-syntax-bad-uri-09" ;
+   rdfs:comment "Relative IRI - datatype (negative test)" ;
+   mf:action    <nt-syntax-bad-uri-09.nt> ;
+   .
+
 <#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)" ;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rdf-turtle/tests-nt/nt-syntax-bad-uri-06.nt	Wed Mar 13 09:17:40 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bad-uri-07.nt	Wed Mar 13 09:17:40 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bad-uri-08.nt	Wed Mar 13 09:17:40 2013 -0700
@@ -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/rdf-turtle/tests-nt/nt-syntax-bad-uri-09.nt	Wed Mar 13 09:17:40 2013 -0700
@@ -0,0 +1,2 @@
+# No relative IRIs in N-Triples
+<http://example/s> <http://example/p> "foo"^^<dt> .