aboutsummaryrefslogtreecommitdiffstats
path: root/test/qualify
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-03-29 19:59:47 -0400
committerDavid Robillard <d@drobilla.net>2023-04-05 09:45:15 -0400
commitdd777c54b7585823be1f977e9dd887a5110a74f3 (patch)
tree0af28e331aba4e1d15719519ac9834a0b59817b7 /test/qualify
parent978467d01da0c487348e2a0118c1aed196070230 (diff)
downloadserd-dd777c54b7585823be1f977e9dd887a5110a74f3.tar.gz
serd-dd777c54b7585823be1f977e9dd887a5110a74f3.tar.bz2
serd-dd777c54b7585823be1f977e9dd887a5110a74f3.zip
Test URI and blank node manipulation features separately
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" .