diff options
Diffstat (limited to 'test/extra/root')
-rw-r--r-- | test/extra/root/README.md | 5 | ||||
-rw-r--r-- | test/extra/root/manifest.ttl | 27 | ||||
-rw-r--r-- | test/extra/root/root-inside-base-in.ttl | 23 | ||||
-rw-r--r-- | test/extra/root/root-inside-base-out.ttl | 23 | ||||
-rw-r--r-- | test/extra/root/root-outside-base-in.ttl | 23 | ||||
-rw-r--r-- | test/extra/root/root-outside-base-out.ttl | 23 |
6 files changed, 124 insertions, 0 deletions
diff --git a/test/extra/root/README.md b/test/extra/root/README.md new file mode 100644 index 00000000..bec7db1e --- /dev/null +++ b/test/extra/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/extra/root/manifest.ttl b/test/extra/root/manifest.ttl new file mode 100644 index 00000000..90c6a527 --- /dev/null +++ b/test/extra/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/extra/root/root-inside-base-in.ttl b/test/extra/root/root-inside-base-in.ttl new file mode 100644 index 00000000..3fca79ec --- /dev/null +++ b/test/extra/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/extra/root/root-inside-base-out.ttl b/test/extra/root/root-inside-base-out.ttl new file mode 100644 index 00000000..76f61791 --- /dev/null +++ b/test/extra/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#> . + +<> + rdfs:label "base node" . + +<root/> + rdfs:label "root node" . + +<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/extra/root/root-outside-base-in.ttl b/test/extra/root/root-outside-base-in.ttl new file mode 100644 index 00000000..f0c9ef8a --- /dev/null +++ b/test/extra/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/extra/root/root-outside-base-out.ttl b/test/extra/root/root-outside-base-out.ttl new file mode 100644 index 00000000..dcb95d5a --- /dev/null +++ b/test/extra/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" . + +<../> + rdfs:label "root node" . + +<s> + rdfs:label "within base" . + +<../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" . |