aboutsummaryrefslogtreecommitdiffstats
path: root/tests/validate/bad-literal-value-low-inclusive.ttl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-10-14 22:18:17 +0200
committerDavid Robillard <d@drobilla.net>2018-11-25 22:12:48 +0100
commitb5865b7ab1c687f537951f9d0b10c47b475bc23d (patch)
treea78fdcca67031fbf45c91c2ec84a9c1b21cb9b49 /tests/validate/bad-literal-value-low-inclusive.ttl
parenta70ee297d71d03c004e78aa1061877f231cfd8d2 (diff)
downloadserd-b5865b7ab1c687f537951f9d0b10c47b475bc23d.tar.gz
serd-b5865b7ab1c687f537951f9d0b10c47b475bc23d.tar.bz2
serd-b5865b7ab1c687f537951f9d0b10c47b475bc23d.zip
Add validation test suite
Diffstat (limited to 'tests/validate/bad-literal-value-low-inclusive.ttl')
-rw-r--r--tests/validate/bad-literal-value-low-inclusive.ttl19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/validate/bad-literal-value-low-inclusive.ttl b/tests/validate/bad-literal-value-low-inclusive.ttl
new file mode 100644
index 00000000..c88123dd
--- /dev/null
+++ b/tests/validate/bad-literal-value-low-inclusive.ttl
@@ -0,0 +1,19 @@
+@prefix eg: <http://example.org/> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+
+eg:Normal
+ a rdfs:Datatype ;
+ rdfs:label "normal" ;
+ owl:onDatatype xsd:double ;
+ owl:withRestrictions (
+ [
+ xsd:maxInclusive 1.0
+ ] [
+ xsd:minInclusive 0.0
+ ]
+ ) .
+
+eg:s
+ rdf:value "-0.1"^^eg:Normal .
+