From dd777c54b7585823be1f977e9dd887a5110a74f3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 29 Mar 2023 19:59:47 -0400 Subject: Test URI and blank node manipulation features separately --- test/root/README.md | 5 +++++ test/root/manifest.ttl | 27 +++++++++++++++++++++++++++ test/root/root-inside-base-in.ttl | 23 +++++++++++++++++++++++ test/root/root-inside-base-out.ttl | 23 +++++++++++++++++++++++ test/root/root-outside-base-in.ttl | 23 +++++++++++++++++++++++ test/root/root-outside-base-out.ttl | 23 +++++++++++++++++++++++ 6 files changed, 124 insertions(+) create mode 100644 test/root/README.md create mode 100644 test/root/manifest.ttl create mode 100644 test/root/root-inside-base-in.ttl create mode 100644 test/root/root-inside-base-out.ttl create mode 100644 test/root/root-outside-base-in.ttl create mode 100644 test/root/root-outside-base-out.ttl (limited to 'test/root') 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: . +@prefix rdfs: . +@prefix rdft: . +@prefix 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 ; + mf:name "root-inside-base" ; + mf:result . + +<#root-outside-base> + a rdft:TestTurtleEval ; + mf:action ; + mf:name "root-outside-base" ; + mf:result . + +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 . +@prefix rdfs: . + + + rdfs:label "base node" . + + + rdfs:label "root node" . + + + rdfs:label "within root" . + + + rdfs:label "within base" . + + + rdfs:label "outside base" . + + + rdfs:label "outside domain" . + + + 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 . +@prefix rdfs: . + + + rdfs:label "base node" . + + + rdfs:label "root node" . + + + rdfs:label "within root" . + + + rdfs:label "within base" . + + + rdfs:label "outside base" . + + + rdfs:label "outside domain" . + + + 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 . +@prefix rdfs: . + + + rdfs:label "base node" . + + + rdfs:label "root node" . + + + rdfs:label "within base" . + + + rdfs:label "within root" . + + + rdfs:label "outside root" . + + + rdfs:label "outside domain" . + + + 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 . +@prefix rdfs: . + +<> + rdfs:label "base node" . + + + rdfs:label "root node" . + + + rdfs:label "within base" . + +<../s> + rdfs:label "within root" . + +<../../s> + rdfs:label "outside root" . + + + rdfs:label "outside domain" . + + + rdfs:label "outside scheme" . -- cgit v1.2.1