From 08a09191dd69e66aa56822383e84fe034d59dd3f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 3 Apr 2023 09:00:12 -0400 Subject: Separate test suites and simplify licensing metadata --- test/extra/root/README.md | 5 +++++ test/extra/root/manifest.ttl | 27 +++++++++++++++++++++++++++ test/extra/root/root-inside-base-in.ttl | 23 +++++++++++++++++++++++ test/extra/root/root-inside-base-out.ttl | 23 +++++++++++++++++++++++ test/extra/root/root-outside-base-in.ttl | 23 +++++++++++++++++++++++ test/extra/root/root-outside-base-out.ttl | 23 +++++++++++++++++++++++ 6 files changed, 124 insertions(+) create mode 100644 test/extra/root/README.md create mode 100644 test/extra/root/manifest.ttl create mode 100644 test/extra/root/root-inside-base-in.ttl create mode 100644 test/extra/root/root-inside-base-out.ttl create mode 100644 test/extra/root/root-outside-base-in.ttl create mode 100644 test/extra/root/root-outside-base-out.ttl (limited to 'test/extra/root') 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: . +@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/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 . +@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/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 . +@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/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 . +@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/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 . +@prefix rdfs: . + +<> + rdfs:label "base node" . + +<../> + rdfs:label "root node" . + + + rdfs:label "within base" . + +<../s> + rdfs:label "within root" . + + + rdfs:label "outside root" . + + + rdfs:label "outside domain" . + + + rdfs:label "outside scheme" . -- cgit v1.2.1