diff options
author | David Robillard <d@drobilla.net> | 2023-03-29 19:59:47 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-04-05 09:45:15 -0400 |
commit | dd777c54b7585823be1f977e9dd887a5110a74f3 (patch) | |
tree | 0af28e331aba4e1d15719519ac9834a0b59817b7 /test/root | |
parent | 978467d01da0c487348e2a0118c1aed196070230 (diff) | |
download | serd-dd777c54b7585823be1f977e9dd887a5110a74f3.tar.gz serd-dd777c54b7585823be1f977e9dd887a5110a74f3.tar.bz2 serd-dd777c54b7585823be1f977e9dd887a5110a74f3.zip |
Test URI and blank node manipulation features separately
Diffstat (limited to 'test/root')
-rw-r--r-- | test/root/README.md | 5 | ||||
-rw-r--r-- | test/root/manifest.ttl | 27 | ||||
-rw-r--r-- | test/root/root-inside-base-in.ttl | 23 | ||||
-rw-r--r-- | test/root/root-inside-base-out.ttl | 23 | ||||
-rw-r--r-- | test/root/root-outside-base-in.ttl | 23 | ||||
-rw-r--r-- | test/root/root-outside-base-out.ttl | 23 |
6 files changed, 124 insertions, 0 deletions
diff --git a/test/root/README.md b/test/root/README.md new file mode 100644 index 00000000..bec7db1e --- /dev/null +++ b/test/root/README.md @@ -0,0 +1,5 @@ +Root Test Suite +=============== + +This small suite tests URI resolution against a base URI with or without a +constraining root URI. diff --git a/test/root/manifest.ttl b/test/root/manifest.ttl new file mode 100644 index 00000000..90c6a527 --- /dev/null +++ b/test/root/manifest.ttl @@ -0,0 +1,27 @@ +@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 root URI test suite" ; + mf:entries ( + <#root-inside-base> + <#root-outside-base> + ) . + +<#root-inside-base> + a rdft:TestTurtleEval ; + mf:action <root-inside-base-in.ttl> ; + mf:name "root-inside-base" ; + mf:result <root-inside-base-out.ttl> . + +<#root-outside-base> + a rdft:TestTurtleEval ; + mf:action <root-outside-base-in.ttl> ; + mf:name "root-outside-base" ; + mf:result <root-outside-base-out.ttl> . + +rdft:Test + rdfs:subClassOf mf:ManifestEntry . diff --git a/test/root/root-inside-base-in.ttl b/test/root/root-inside-base-in.ttl new file mode 100644 index 00000000..3fca79ec --- /dev/null +++ b/test/root/root-inside-base-in.ttl @@ -0,0 +1,23 @@ +@base <http://example.org/top/> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . + +<http://example.org/top/> + rdfs:label "base node" . + +<http://example.org/top/root/> + rdfs:label "root node" . + +<http://example.org/top/root/s> + rdfs:label "within root" . + +<http://example.org/top/s> + rdfs:label "within base" . + +<http://example.org/other/s> + rdfs:label "outside base" . + +<http://example.com/s> + rdfs:label "outside domain" . + +<https://example.org/s> + rdfs:label "outside scheme" . diff --git a/test/root/root-inside-base-out.ttl b/test/root/root-inside-base-out.ttl new file mode 100644 index 00000000..a5081e4d --- /dev/null +++ b/test/root/root-inside-base-out.ttl @@ -0,0 +1,23 @@ +@base <http://example.org/top/> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . + +<http://example.org/top/> + rdfs:label "base node" . + +<root/> + rdfs:label "root node" . + +<root/s> + rdfs:label "within root" . + +<s> + rdfs:label "within base" . + +<http://example.org/other/s> + rdfs:label "outside base" . + +<http://example.com/s> + rdfs:label "outside domain" . + +<https://example.org/s> + rdfs:label "outside scheme" . diff --git a/test/root/root-outside-base-in.ttl b/test/root/root-outside-base-in.ttl new file mode 100644 index 00000000..f0c9ef8a --- /dev/null +++ b/test/root/root-outside-base-in.ttl @@ -0,0 +1,23 @@ +@base <http://example.org/top/root/base/> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . + +<http://example.org/top/root/base/> + rdfs:label "base node" . + +<http://example.org/top/root/> + rdfs:label "root node" . + +<http://example.org/top/root/base/s> + rdfs:label "within base" . + +<http://example.org/top/root/s> + rdfs:label "within root" . + +<http://example.org/top/s> + rdfs:label "outside root" . + +<http://example.com/s> + rdfs:label "outside domain" . + +<https://example.org/s> + rdfs:label "outside scheme" . diff --git a/test/root/root-outside-base-out.ttl b/test/root/root-outside-base-out.ttl new file mode 100644 index 00000000..47a4c47e --- /dev/null +++ b/test/root/root-outside-base-out.ttl @@ -0,0 +1,23 @@ +@base <http://example.org/top/root/base/> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . + +<> + rdfs:label "base node" . + +<http://example.org/top/root/> + rdfs:label "root node" . + +<s> + rdfs:label "within base" . + +<../s> + rdfs:label "within root" . + +<../../s> + rdfs:label "outside root" . + +<http://example.com/s> + rdfs:label "outside domain" . + +<https://example.org/s> + rdfs:label "outside scheme" . |