aboutsummaryrefslogtreecommitdiffstats
path: root/test/qualify
diff options
context:
space:
mode:
Diffstat (limited to 'test/qualify')
-rw-r--r--test/qualify/README.md4
-rw-r--r--test/qualify/manifest.ttl20
-rw-r--r--test/qualify/qualify-in.ttl10
-rw-r--r--test/qualify/qualify-out.ttl10
4 files changed, 44 insertions, 0 deletions
diff --git a/test/qualify/README.md b/test/qualify/README.md
new file mode 100644
index 00000000..c345f242
--- /dev/null
+++ b/test/qualify/README.md
@@ -0,0 +1,4 @@
+Qualify Test Suite
+==================
+
+This small suite tests qualifying full URIs into shortened forms.
diff --git a/test/qualify/manifest.ttl b/test/qualify/manifest.ttl
new file mode 100644
index 00000000..0a2fb698
--- /dev/null
+++ b/test/qualify/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 URI qualification test suite" ;
+ mf:entries (
+ <#qualify>
+ ) .
+
+<#qualify>
+ a rdft:TestTurtleEval ;
+ mf:action <qualify-in.ttl> ;
+ mf:name "qualify" ;
+ mf:result <qualify-out.ttl> .
+
+rdft:Test
+ rdfs:subClassOf mf:ManifestEntry .
diff --git a/test/qualify/qualify-in.ttl b/test/qualify/qualify-in.ttl
new file mode 100644
index 00000000..04afc07f
--- /dev/null
+++ b/test/qualify/qualify-in.ttl
@@ -0,0 +1,10 @@
+@prefix eg: <http://example.org/> .
+
+<http://example.org/s>
+ <http://example.org/p> <http://example.org/o> .
+
+<http://example.org/a-subject>
+ <http://example.org/a-predicate> <http://example.org/a-object> .
+
+<http://www.w3.org/1999/02/22-rdf-syntax-ns#nil>
+ <http://www.w3.org/2000/01/rdf-schema#label> "nil" .
diff --git a/test/qualify/qualify-out.ttl b/test/qualify/qualify-out.ttl
new file mode 100644
index 00000000..f4dd15d4
--- /dev/null
+++ b/test/qualify/qualify-out.ttl
@@ -0,0 +1,10 @@
+@prefix eg: <http://example.org/> .
+
+eg:s
+ eg:p eg:o .
+
+<http://example.org/a-subject>
+ <http://example.org/a-predicate> <http://example.org/a-object> .
+
+()
+ <http://www.w3.org/2000/01/rdf-schema#label> "nil" .