aboutsummaryrefslogtreecommitdiffstats
path: root/test/validate/bad-literal-value-high-inclusive.ttl
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-09 14:07:46 +0100
committerDavid Robillard <d@drobilla.net>2021-03-08 23:35:30 -0500
commit7efaf2431b9c1a96f6ed2e28626aff4886efc749 (patch)
treeba84dfdb11c4e952ff39621a9b8fcf834e9592a5 /test/validate/bad-literal-value-high-inclusive.ttl
parent1ba44998b0c5b8d76d574531d60b703ad56a2c8a (diff)
downloadserd-7efaf2431b9c1a96f6ed2e28626aff4886efc749.tar.gz
serd-7efaf2431b9c1a96f6ed2e28626aff4886efc749.tar.bz2
serd-7efaf2431b9c1a96f6ed2e28626aff4886efc749.zip
Add validation to command line interface
Diffstat (limited to 'test/validate/bad-literal-value-high-inclusive.ttl')
-rw-r--r--test/validate/bad-literal-value-high-inclusive.ttl20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/validate/bad-literal-value-high-inclusive.ttl b/test/validate/bad-literal-value-high-inclusive.ttl
new file mode 100644
index 00000000..c0753250
--- /dev/null
+++ b/test/validate/bad-literal-value-high-inclusive.ttl
@@ -0,0 +1,20 @@
+@prefix eg: <http://example.org/> .
+@prefix owl: <http://www.w3.org/2002/07/owl#> .
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
+@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 "1.1"^^eg:Normal .