Closed benjaminaaron closed 8 months ago
With the following data-shape I can input negative integers and it passes as valid. I would expect anything below 0 to be invalid. Everything above 100 is correctly invalid as expected.
data-shape
0
100
@prefix sh: <http://www.w3.org/ns/shacl#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . @prefix ckg: <http://ckg.de/default#> . ckg:Citizen a sh:NodeShape ; sh:property [ sh:datatype xsd:integer ; sh:minInclusive 0 ; sh:maxInclusive 100 ; sh:maxCount 1 ; sh:name 'Age' ; sh:path ckg:hasAge ; ] .
Thanks for reporting. There where actually two bugs here:
ckg:Citizen a rdfs:Class .
Thanks, much appreciated, adding this triple made it work indeed 👍
With the following
data-shape
I can input negative integers and it passes as valid. I would expect anything below0
to be invalid. Everything above100
is correctly invalid as expected.