aboutsummaryrefslogtreecommitdiffstats
path: root/test/extra/canon/manifest.ttl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-12-02 15:53:25 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit339f9d90d1fe001978d15e1c007a3861a7145453 (patch)
treed29ec45610ad04a79dd353fbb2609bbb2931148f /test/extra/canon/manifest.ttl
parent4711fdf527f416faee8ff19e15f050d4b48dcfb2 (diff)
downloadserd-339f9d90d1fe001978d15e1c007a3861a7145453.tar.gz
serd-339f9d90d1fe001978d15e1c007a3861a7145453.tar.bz2
serd-339f9d90d1fe001978d15e1c007a3861a7145453.zip
[WIP] Add support for converting literals to canonical form
Diffstat (limited to 'test/extra/canon/manifest.ttl')
-rw-r--r--test/extra/canon/manifest.ttl65
1 files changed, 65 insertions, 0 deletions
diff --git a/test/extra/canon/manifest.ttl b/test/extra/canon/manifest.ttl
new file mode 100644
index 00000000..143928ee
--- /dev/null
+++ b/test/extra/canon/manifest.ttl
@@ -0,0 +1,65 @@
+@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#> .
+
+<>
+ a mf:Manifest ;
+ rdfs:comment "Serd canonical literal writing test suite" ;
+ mf:entries (
+ <#bad-boolean>
+ <#bad-decimal-leading>
+ <#bad-decimal-trailing>
+ <#bad-empty-boolean>
+ <#bad-integer-leading>
+ <#bad-integer-trailing>
+ <#bad-lang-long>
+ <#test-canon>
+ ) .
+
+<#bad-boolean>
+ a rdft:TestTurtleNegativeEval ;
+ rdfs:comment "Invalid xsd::boolean syntax" ;
+ mf:action <bad-boolean.ttl> ;
+ mf:name "bad-boolean" .
+
+<#bad-decimal-leading>
+ a rdft:TestTurtleNegativeEval ;
+ rdfs:comment "Invalid xsd::decimal syntax (leading garbage)" ;
+ mf:action <bad-decimal-leading.ttl> ;
+ mf:name "bad-decimal-leading" .
+
+<#bad-decimal-trailing>
+ a rdft:TestTurtleNegativeEval ;
+ rdfs:comment "Invalid xsd::decimal syntax (trailing garbage)" ;
+ mf:action <bad-decimal-trailing.ttl> ;
+ mf:name "bad-decimal-trailing" .
+
+<#bad-empty-boolean>
+ a rdft:TestTurtleNegativeEval ;
+ rdfs:comment "Invalid xsd::boolean syntax (no value)" ;
+ mf:action <bad-empty-boolean.ttl> ;
+ mf:name "bad-empty-boolean" .
+
+<#bad-integer-leading>
+ a rdft:TestTurtleNegativeEval ;
+ rdfs:comment "Invalid xsd::integer syntax (leading garbage)" ;
+ mf:action <bad-integer-leading.ttl> ;
+ mf:name "bad-integer-leading" .
+
+<#bad-integer-trailing>
+ a rdft:TestTurtleNegativeEval ;
+ rdfs:comment "Invalid xsd::integer syntax (trailing garbage)" ;
+ mf:action <bad-integer-trailing.ttl> ;
+ mf:name "bad-integer-trailing" .
+
+<#bad-lang-long>
+ a rdft:TestTurtleNegativeEval ;
+ rdfs:comment "Overly long language tag" ;
+ mf:action <bad-lang-long.ttl> ;
+ mf:name "bad-lang-long" .
+
+<#test-canon>
+ a rdft:TestTurtleEval ;
+ mf:action <test-canon.ttl> ;
+ mf:name "test-canon" ;
+ mf:result <test-canon.nt> .