diff options
author | David Robillard <d@drobilla.net> | 2023-04-03 09:00:12 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-04-05 09:45:15 -0400 |
commit | 08a09191dd69e66aa56822383e84fe034d59dd3f (patch) | |
tree | 36048566f68bf46b8ad6b52925e0fac30f9f38fa /test/extra/prefix | |
parent | f1adf9a4999d80d26314565d0c1f49c4471e5851 (diff) | |
download | serd-08a09191dd69e66aa56822383e84fe034d59dd3f.tar.gz serd-08a09191dd69e66aa56822383e84fe034d59dd3f.tar.bz2 serd-08a09191dd69e66aa56822383e84fe034d59dd3f.zip |
Separate test suites and simplify licensing metadata
Diffstat (limited to 'test/extra/prefix')
-rw-r--r-- | test/extra/prefix/README.md | 4 | ||||
-rw-r--r-- | test/extra/prefix/manifest.ttl | 20 | ||||
-rw-r--r-- | test/extra/prefix/remove-prefixes.nt | 4 | ||||
-rw-r--r-- | test/extra/prefix/remove-prefixes.ttl | 7 |
4 files changed, 35 insertions, 0 deletions
diff --git a/test/extra/prefix/README.md b/test/extra/prefix/README.md new file mode 100644 index 00000000..56a07244 --- /dev/null +++ b/test/extra/prefix/README.md @@ -0,0 +1,4 @@ +Prefix Test Suite +================= + +This small suite tests adding/chopping prefixes to/from blank node labels. diff --git a/test/extra/prefix/manifest.ttl b/test/extra/prefix/manifest.ttl new file mode 100644 index 00000000..12a0f9ca --- /dev/null +++ b/test/extra/prefix/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 blank node prefixing test suite" ; + mf:entries ( + <#remove-prefixes> + ) . + +<#remove-prefixes> + a rdft:TestTurtleEval ; + mf:action <remove-prefixes.ttl> ; + mf:name "remove-prefixes" ; + mf:result <remove-prefixes.nt> . + +rdft:Test + rdfs:subClassOf mf:ManifestEntry . diff --git a/test/extra/prefix/remove-prefixes.nt b/test/extra/prefix/remove-prefixes.nt new file mode 100644 index 00000000..26ac46ee --- /dev/null +++ b/test/extra/prefix/remove-prefixes.nt @@ -0,0 +1,4 @@ +_:s1 <http://example.org/p1> _:o1 . +_:s1 <http://example.org/p2> _:o3 . +_:s1 <http://example.org/p2> _:o4 . +_:b0 <http://example.org/p3> _:b1 . diff --git a/test/extra/prefix/remove-prefixes.ttl b/test/extra/prefix/remove-prefixes.ttl new file mode 100644 index 00000000..f3002a59 --- /dev/null +++ b/test/extra/prefix/remove-prefixes.ttl @@ -0,0 +1,7 @@ +_:tests1 + <http://example.org/p1> _:testo1 ; + <http://example.org/p2> _:testo3 , + _:testo4 . + +_:testb0 + <http://example.org/p3> _:testb1 . |