diff options
author | David Robillard <d@drobilla.net> | 2013-03-04 01:36:52 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-03-04 01:36:52 +0000 |
commit | 1184a657618a42af2e3f882fb7f90d873a6ee9b8 (patch) | |
tree | 85c68b24414ef6afc3d1ce2f66a6f2ee49fc6200 /tests/extra/manifest.ttl | |
parent | c15914a3a956658a727a895745a5e5b638b04648 (diff) | |
download | serd-1184a657618a42af2e3f882fb7f90d873a6ee9b8.tar.gz serd-1184a657618a42af2e3f882fb7f90d873a6ee9b8.tar.bz2 serd-1184a657618a42af2e3f882fb7f90d873a6ee9b8.zip |
Improve dot support.
Extend test suite to cover more of the new Turtle draft.
git-svn-id: http://svn.drobilla.net/serd/trunk@433 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'tests/extra/manifest.ttl')
-rw-r--r-- | tests/extra/manifest.ttl | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/tests/extra/manifest.ttl b/tests/extra/manifest.ttl new file mode 100644 index 00000000..f373f3a2 --- /dev/null +++ b/tests/extra/manifest.ttl @@ -0,0 +1,86 @@ +@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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix rdft: <http://www.w3.org/ns/rdftest#> . + +<> + rdf:type mf:Manifest ; + rdfs:comment "Extra Turtle tests from Serd" ; + mf:entries ( + <#turtle-syntax-bad-blank-label-dot-end> + <#turtle-syntax-bad-ln-dash-start> + <#turtle-syntax-bad-ln-escape> + <#turtle-syntax-bad-ns-dot-end> + <#turtle-syntax-bad-ns-dot-start> + <#turtle-syntax-bad-ns-missing-dot-end> + <#turtle-syntax-bad-ns-missing-dot-start> + <#turtle-syntax-blank-label> + <#turtle-syntax-ns-dots> + ) . + +<#turtle-syntax-bad-blank-label-dot-end> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Blank node label must not end in dot" ; + mf:name "turtle-syntax-bad-blank-label-dot-end" ; + mf:action <turtle-syntax-bad-blank-label-dot-end.ttl> . + +<#turtle-syntax-bad-number-dot-in-anon> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Dot delimeter may not appear in anonymous nodes" ; + mf:name "turtle-syntax-bad-number-dot-in-anon" ; + mf:action <turtle-syntax-bad-number-dot-in-anon.ttl> . + +<#turtle-syntax-bad-ln-dash-start> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Local name must not begin with dash" ; + mf:name "turtle-syntax-bad-ln-dash-start" ; + mf:action <turtle-syntax-bad-ln-dash-start.ttl> . + +<#turtle-syntax-bad-ln-escape> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Bad hex escape in local name" ; + mf:name "turtle-syntax-bad-ln-escape" ; + mf:action <turtle-syntax-bad-ln-escape.ttl> . + +<#turtle-syntax-bad-ln-escape-start> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Bad hex escape at start of local name" ; + mf:name "turtle-syntax-bad-ln-escape-start" ; + mf:action <turtle-syntax-bad-ln-escape-start.ttl> . + +<#turtle-syntax-bad-ns-dot-end> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Prefix must not end in dot" ; + mf:name "turtle-syntax-bad-ns-dot-end" ; + mf:action <turtle-syntax-bad-ns-dot-end.ttl> . + +<#turtle-syntax-bad-ns-dot-start> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Prefix must not start with dot" ; + mf:name "turtle-syntax-bad-ns-dot-start" ; + mf:action <turtle-syntax-bad-ns-dot-start.ttl> . + +<#turtle-syntax-bad-ns-missing-dot-end> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Prefix must not end in dot (error in triple, not prefix directive like turtle-syntax-bad-ns-dot-end)" ; + mf:name "turtle-syntax-bad-missing-ns-dot-end" ; + mf:action <turtle-syntax-bad-missing-ns-dot-end.ttl> . + +<#turtle-syntax-bad-ns-missing-dot-start> + rdf:type rdft:TestTurtleNegativeSyntax ; + rdfs:comment "Prefix must not start with dot (error in triple, not prefix directive like turtle-syntax-bad-ns-dot-end)" ; + mf:name "turtle-syntax-bad-missing-ns-dot-start" ; + mf:action <turtle-syntax-bad-missing-ns-dot-start.ttl> . + +<#turtle-syntax-ns-dots> + rdf:type rdft:TestTurtlePositiveSyntax ; + rdfs:comment "Dots in namespace names" ; + mf:name "turtle-syntax-ns-dots" ; + mf:action <turtle-syntax-ns-dots.ttl> . + +<#turtle-syntax-blank-label> + rdf:type rdft:TestTurtlePositiveSyntax ; + rdfs:comment "Characters allowed in blank node labels" ; + mf:name "turtle-syntax-blank-label" ; + mf:action <turtle-syntax-blank-label.ttl> . |