small shacl example question

6 views
Skip to first unread message

Bohms, H.M. (Michel)

unread,
Jul 28, 2021, 3:46:42 AMJul 28
to topbrai...@googlegroups.com

Wrt to following fragment in https://www.w3.org/TR/shacl/ (or later: 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
michel...@tno.nl

Location

 

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.

 

Holger Knublauch

unread,
Jul 28, 2021, 4:18:23 AMJul 28
to topbrai...@googlegroups.com

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

--
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 topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/d8368ea529b348f4adb6e20be0127c8b%40tno.nl.
Reply all
Reply to author
Forward
0 new messages