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/prefix | |
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/prefix')
-rw-r--r-- | test/prefix/README.md | 4 | ||||
-rw-r--r-- | test/prefix/manifest.ttl | 20 | ||||
-rw-r--r-- | test/prefix/remove-prefixes.nt | 4 | ||||
-rw-r--r-- | test/prefix/remove-prefixes.ttl | 7 |
4 files changed, 35 insertions, 0 deletions
diff --git a/test/prefix/README.md b/test/prefix/README.md new file mode 100644 index 00000000..56a07244 --- /dev/null +++ b/test/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/prefix/manifest.ttl b/test/prefix/manifest.ttl new file mode 100644 index 00000000..12a0f9ca --- /dev/null +++ b/test/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/prefix/remove-prefixes.nt b/test/prefix/remove-prefixes.nt new file mode 100644 index 00000000..26ac46ee --- /dev/null +++ b/test/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/prefix/remove-prefixes.ttl b/test/prefix/remove-prefixes.ttl new file mode 100644 index 00000000..f3002a59 --- /dev/null +++ b/test/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 . |