aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manifest-bad.ttl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-01-19 07:24:09 +0000
committerDavid Robillard <d@drobilla.net>2011-01-19 07:24:09 +0000
commit05f3e795bebbf51c1a5a859cd015d5dbd74c21f9 (patch)
tree1be491847f560c520f3077497b739221635d42ce /tests/manifest-bad.ttl
parent281c57610c95e1f80fd42b3729da1d3da90c43b6 (diff)
downloadserd-05f3e795bebbf51c1a5a859cd015d5dbd74c21f9.tar.gz
serd-05f3e795bebbf51c1a5a859cd015d5dbd74c21f9.tar.bz2
serd-05f3e795bebbf51c1a5a859cd015d5dbd74c21f9.zip
Initial import.
git-svn-id: http://svn.drobilla.net/serd/trunk@2 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests/manifest-bad.ttl')
-rw-r--r--tests/manifest-bad.ttl88
1 files changed, 88 insertions, 0 deletions
diff --git a/tests/manifest-bad.ttl b/tests/manifest-bad.ttl
new file mode 100644
index 00000000..e8c5ba8f
--- /dev/null
+++ b/tests/manifest-bad.ttl
@@ -0,0 +1,88 @@
+@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> ] ;
+ ]
+
+
+ # End of tests
+ ).