On 2021-06-23 5:25 pm, 'Bohms, H.M. (Michel)' via TopBraid Suite Users wrote:

Just checking…

Instead of:

ex:BridgeShape

  a sh:NodeShape ;

sh:targetClass ex:Bridge ;

  sh:property [

    sh:path ex:height ;

    sh:minCount 1 ;

    ] ;

  sh:property [

    sh:path sml:hasPart ;

    sh:minCount 1 ;

    sh:maxCount 1 ;

    sh:class ex:Deck ;

] ;

.

I can say:

ex:Bridge

  a sh:NodeShape ;

  sh:property [

    sh:path ex:height ;

    sh:minCount 1 ;

    ] ;

  sh:property [

    sh:path sml:hasPart ;

    sh:minCount 1 ;

    sh:maxCount 1 ;

    sh:class ex:Deck ;

] ;

.

... only if you also say ex:Bridge rdf:type owl:Class (or rdfs:Class). If a class is also a node shape then you don't need a targetClass statement. See

    https://www.w3.org/TR/shacl/#implicit-targetClass

Holger


Right?

Thx michel

        

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/165cca5ae08e4e088d45585a8994b992%40tno.nl <https://groups.google.com/d/msgid/topbraid-users/165cca5ae08e4e088d45585a8994b992%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/31cd5804-8b2e-82da-78ed-ac0880bbc9b4%40topquadrant.com.

Reply via email to