aboutsummaryrefslogtreecommitdiffstats
path: root/test/prefix
diff options
context:
space:
mode:
Diffstat (limited to 'test/prefix')
-rw-r--r--test/prefix/README.md4
-rw-r--r--test/prefix/manifest.ttl20
-rw-r--r--test/prefix/remove-prefixes.nt4
-rw-r--r--test/prefix/remove-prefixes.ttl7
4 files changed, 35 insertions, 0 deletions
diff --git a/test/prefix/README.md b/test/prefix/README.md
new file mode 100644
index 00000000..56a07244
--- /dev/null
+++ b/test/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/prefix/manifest.ttl b/test/prefix/manifest.ttl
new file mode 100644
index 00000000..12a0f9ca
--- /dev/null
+++ b/test/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/prefix/remove-prefixes.nt b/test/prefix/remove-prefixes.nt
new file mode 100644
index 00000000..26ac46ee
--- /dev/null
+++ b/test/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/prefix/remove-prefixes.ttl b/test/prefix/remove-prefixes.ttl
new file mode 100644
index 00000000..f3002a59
--- /dev/null
+++ b/test/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 .