From b5865b7ab1c687f537951f9d0b10c47b475bc23d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 14 Oct 2018 22:18:17 +0200 Subject: Add validation test suite --- tests/validate/bad-range-literal.ttl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/validate/bad-range-literal.ttl (limited to 'tests/validate/bad-range-literal.ttl') diff --git a/tests/validate/bad-range-literal.ttl b/tests/validate/bad-range-literal.ttl new file mode 100644 index 00000000..8a00a95f --- /dev/null +++ b/tests/validate/bad-range-literal.ttl @@ -0,0 +1,21 @@ +@prefix eg: . +@prefix rdf: . +@prefix rdfs: . + +eg:BinaryLiteral + a rdfs:Datatype ; + rdfs:label "binary literal" ; + owl:withRestrictions ( + [ + xsd:pattern "(0|1)+" + ] + ) . + +eg:value + a rdf:Property ; + rdfs:label "value" ; + rdfs:range eg:BinaryLiteral . + +eg:s + eg:value "not binary"^^eg:BinaryLiteral . + -- cgit v1.2.1