diff options
Diffstat (limited to 'test/extra/prefix')
-rw-r--r-- | test/extra/prefix/README.md | 4 | ||||
-rw-r--r-- | test/extra/prefix/manifest.ttl | 20 | ||||
-rw-r--r-- | test/extra/prefix/remove-prefixes.nt | 4 | ||||
-rw-r--r-- | test/extra/prefix/remove-prefixes.ttl | 7 |
4 files changed, 35 insertions, 0 deletions
diff --git a/test/extra/prefix/README.md b/test/extra/prefix/README.md new file mode 100644 index 00000000..56a07244 --- /dev/null +++ b/test/extra/prefix/README.md @@ -0,0 +1,4 @@ +Prefix Test Suite +================= + +This small suite tests adding/chopping prefixes to/from blank node labels. diff --git a/test/extra/prefix/manifest.ttl b/test/extra/prefix/manifest.ttl new file mode 100644 index 00000000..12a0f9ca --- /dev/null +++ b/test/extra/prefix/manifest.ttl @@ -0,0 +1,20 @@ +@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix rdft: <http://www.w3.org/ns/rdftest#> . +@prefix serd: <http://drobilla.net/ns/serd#> . + +<> + a mf:Manifest ; + rdfs:comment "Serd blank node prefixing test suite" ; + mf:entries ( + <#remove-prefixes> + ) . + +<#remove-prefixes> + a rdft:TestTurtleEval ; + mf:action <remove-prefixes.ttl> ; + mf:name "remove-prefixes" ; + mf:result <remove-prefixes.nt> . + +rdft:Test + rdfs:subClassOf mf:ManifestEntry . diff --git a/test/extra/prefix/remove-prefixes.nt b/test/extra/prefix/remove-prefixes.nt new file mode 100644 index 00000000..26ac46ee --- /dev/null +++ b/test/extra/prefix/remove-prefixes.nt @@ -0,0 +1,4 @@ +_:s1 <http://example.org/p1> _:o1 . +_:s1 <http://example.org/p2> _:o3 . +_:s1 <http://example.org/p2> _:o4 . +_:b0 <http://example.org/p3> _:b1 . diff --git a/test/extra/prefix/remove-prefixes.ttl b/test/extra/prefix/remove-prefixes.ttl new file mode 100644 index 00000000..f3002a59 --- /dev/null +++ b/test/extra/prefix/remove-prefixes.ttl @@ -0,0 +1,7 @@ +_:tests1 + <http://example.org/p1> _:testo1 ; + <http://example.org/p2> _:testo3 , + _:testo4 . + +_:testb0 + <http://example.org/p3> _:testb1 . |