- From: Håvard Ottestad <hmottestad@gmail.com>
- Date: Sun, 1 Nov 2020 10:27:25 +0100
- To: Public Shacl W3C <public-shacl@w3.org>
Received on Sunday, 1 November 2020 09:27:41 UTC
Hi,
I’m wondering how to make sh:minInclusive work with custom datatypes.
Essentially I would like to achieve something like the following:
ex:measurementShape
a sh:NodeShape ;
sh:targetClass ex:Measurement ;
sh:property [
sh:path ex:temperature ;
sh:minInclusive "0”^^unit:celsius ;
] .
And allow for data such as:
[] a ex:Measurement;
ex:temperature "10”^^unit:celsius.
Currently this is leading to a validation error with the reference validator, unless the temperature is exactly 0.
I supposed this is how it is supposed to work! However it doesn’t lead to a validation error on https://shacl.org/playground/ <https://shacl.org/playground/>
Cheers,
Håvard
Received on Sunday, 1 November 2020 09:27:41 UTC