Oops, yes. I need to record this for the errata. This is a W3C doc that
I cannot simply change. Thankfully it is just an informal example.
Holger
On 28/07/2021 5:46 pm, 'Bohms, H.M. (Michel)' via TopBraid Suite Users
wrote:
Wrt to following fragment in https://www.w3.org/TR/shacl/
<https://www.w3.org/TR/shacl/> (or later:
https://w3c.github.io/data-shapes/shacl/
<https://w3c.github.io/data-shapes/shacl/>)
* At most 5 values of ex:property?
* Shouldn’t that be ex:digit?
The following example illustrates the use of
sh:qualifiedValueShapesDisjoint to express that a hand must have at
most 5 values of ex:property (expressed using sh:maxCount), and
exactly one of them must be an instance of ex:Thumb while exactly 4 of
them must be an instance of ex:Finger but thumbs and fingers must be
disjoint. In other words, on a hand, none of the fingers can also be
counted as the thumb.
ex:HandShape
a sh:NodeShape ;
/sh:targetClass ex:Hand ;/
sh:property [
sh:path ex:digit ;
sh:maxCount 5 ;
] ;
sh:property [
sh:path ex:digit ;
sh:qualifiedValueShape [ sh:class ex:Thumb ] ;
sh:qualifiedValueShapesDisjoint true ;
sh:qualifiedMinCount 1 ;
sh:qualifiedMaxCount 1 ;
] ;
sh:property [
sh:path ex:digit ;
sh:qualifiedValueShape [ sh:class ex:Finger ] ;
sh:qualifiedValueShapesDisjoint true ;
sh:qualifiedMinCount 4 ;
sh:qualifiedMaxCount 4 ;
] .
Dr. ir. H.M. (Michel) Bohms
Scientist Specialist
Structural Reliability
T +31 (0)88 866 31 07
M +31 (0)63 038 12 20
E [email protected] <mailto:[email protected]>
Location <http://www.tno.nl/locations/DTS>
<http://www.tno.nl/>
This message may contain information that is not intended for you. If
you are not the addressee or if this message was sent to you by
mistake, you are requested to inform the sender and delete the
message. TNO accepts no liability for the content of this e-mail, for
the manner in which you use it and for damage of any kind resulting
from the risks inherent to the electronic transmission of messages.
--
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]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/topbraid-users/d8368ea529b348f4adb6e20be0127c8b%40tno.nl
<https://groups.google.com/d/msgid/topbraid-users/d8368ea529b348f4adb6e20be0127c8b%40tno.nl?utm_medium=email&utm_source=footer>.
--
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/7a6b59b3-d9f9-fdb0-53d9-4fdad7bec3de%40topquadrant.com.