summaryrefslogtreecommitdiffstats
path: root/tests/turtle/manifest-bad.ttl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/turtle/manifest-bad.ttl')
-rw-r--r--tests/turtle/manifest-bad.ttl123
1 files changed, 123 insertions, 0 deletions
diff --git a/tests/turtle/manifest-bad.ttl b/tests/turtle/manifest-bad.ttl
new file mode 100644
index 0000000..3a9d0e8
--- /dev/null
+++ b/tests/turtle/manifest-bad.ttl
@@ -0,0 +1,123 @@
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@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#> .
+
+<> rdf:type mf:Manifest ;
+ rdfs:comment "Turtle bad syntax test cases (must fail)" ;
+ mf:entries
+ (
+
+ [ mf:name "bad-00" ;
+ rdfs:comment "prefix name must end in a :" ;
+ mf:action [ qt:data <bad-00.ttl> ] ;
+ ]
+
+ [ mf:name "bad-01" ;
+ rdfs:comment "blank predicate forbidden" ;
+ mf:action [ qt:data <bad-01.ttl> ] ;
+ ]
+
+ [ mf:name "bad-02" ;
+ rdfs:comment "blank predicate forbidden" ;
+ mf:action [ qt:data <bad-02.ttl> ] ;
+ ]
+
+ [ mf:name "bad-03" ;
+ rdfs:comment "a forbidden as subject" ;
+ mf:action [ qt:data <bad-03.ttl> ] ;
+ ]
+
+ [ mf:name "bad-04" ;
+ rdfs:comment ", not allowed in collections" ;
+ mf:action [ qt:data <bad-04.ttl> ] ;
+ ]
+
+ [ mf:name "bad-05" ;
+ rdfs:comment "{} not allowed in Turtle" ;
+ mf:action [ qt:data <bad-05.ttl> ] ;
+ ]
+
+ [ mf:name "bad-06" ;
+ rdfs:comment "is and of not allowed in Turtle" ;
+ mf:action [ qt:data <bad-06.ttl> ] ;
+ ]
+
+ [ mf:name "bad-07" ;
+ rdfs:comment "paths not allowed in Turtle" ;
+ mf:action [ qt:data <bad-07.ttl> ] ;
+ ]
+
+ [ mf:name "bad-08" ;
+ rdfs:comment "@keywords not allowed in Turtle" ;
+ mf:action [ qt:data <bad-08.ttl> ] ;
+ ]
+
+ [ mf:name "bad-09" ;
+ rdfs:comment "=> not allowed in Turtle" ;
+ mf:action [ qt:data <bad-09.ttl> ] ;
+ ]
+
+ [ mf:name "bad-10" ;
+ rdfs:comment "= not allowed in Turtle" ;
+ mf:action [ qt:data <bad-10.ttl> ] ;
+ ]
+
+ [ mf:name "bad-11" ;
+ rdfs:comment "@forAll not allowed in Turtle" ;
+ mf:action [ qt:data <bad-11.ttl> ] ;
+ ]
+
+ [ mf:name "bad-12" ;
+ rdfs:comment "@forSome not allowed in Turtle" ;
+ mf:action [ qt:data <bad-12.ttl> ] ;
+ ]
+
+ [ mf:name "bad-13" ;
+ rdfs:comment "<= not allowed in Turtle" ;
+ mf:action [ qt:data <bad-13.ttl> ] ;
+ ]
+
+ [ mf:name "bad-14" ;
+ rdfs:comment "long literal with missing end" ;
+ mf:action [ qt:data <bad-14.ttl> ] ;
+ ]
+
+ [ mf:name "bad-17" ;
+ rdfs:comment "literal with ''s" ;
+ mf:action [ qt:data <bad-17.ttl> ] ;
+ ]
+
+ [ mf:name "bad-18" ;
+ rdfs:comment "long literal with '''s" ;
+ mf:action [ qt:data <bad-18.ttl> ] ;
+ ]
+
+ [ mf:name "bad-19" ;
+ rdfs:comment "Bad () in predicate position" ;
+ mf:action [ qt:data <bad-19.ttl> ] ;
+ ]
+
+ [ mf:name "bad-20" ;
+ rdfs:comment "Escape end-of-file" ;
+ mf:action [ qt:data <bad-20.ttl> ] ;
+ ]
+
+ [ mf:name "bad-21" ;
+ rdfs:comment "Turtle spec does not allow . in namespace prefix (token prefixName)" ;
+ mf:action [ qt:data <bad-21.ttl> ] ;
+ ]
+
+ [ mf:name "bad-22" ;
+ rdfs:comment "Turtle spec does not allow . in namespace name (token name)" ;
+ mf:action [ qt:data <bad-22.ttl> ] ;
+ ]
+
+ [ mf:name "bad-23" ;
+ rdfs:comment "Bad terminating long literal" ;
+ mf:action [ qt:data <bad-23.ttl> ] ;
+ ]
+
+
+ # End of tests
+ ).