Hey,
For a particular node shape I would like to make sure that instances of it
do not have values for a particular property (but without closing the
shape). So I wrote:
ex:MyNode
a rdfs:Class, sh:NodeShape ;
sh:property [
sh:path ex:someProp ;
sh:maxCount 0 ;
]
.
This is ignored in the TBCME validator. That is, the following data passes
without validation results:
ex:anIndividual
a ex:MyNode ;
ex:someProp "a" ;
ex:someProp "b" ;
.
When I set sh:maxCount to 1, it throws an error. But not when I set it to 0.
Is this expected behavior? The spec doesn't say anything about this. On the
other hand, it does say something about when sh:minCount is set to zero:
"If the minimum cardinality value is 0 then this constraint is always
satisfied and so may be omitted." Given this, I would expect the same,
mutatis mutandis, with maximum cardinality. Any thoughts would be
appreciated. Best regards, -j
--
You received this message because you are subscribed to the Google Groups
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/876343cf-af88-487d-80e9-c201b3e98bffn%40googlegroups.com.