simple shacl question

16 views
Skip to first unread message

Bohms, H.M. (Michel)

unread,
Jun 23, 2021, 3:25:27 AM6/23/21
to topbrai...@googlegroups.com

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 ;

    ] ;

.

 

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
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.

 

Bohms, H.M. (Michel)

unread,
Jun 23, 2021, 3:28:01 AM6/23/21
to topbrai...@googlegroups.com

And then similar question for:

 

ex:heightShape

  a sh:NodeShape ;

  sh:targetObjectsOf ex:height ;

  sh:class sml:QuantityValue ;

.

 

Can it be:

 

ex:height

  a sh:NodeShape ;

  sh:class sml:QuantityValue ;

.

 

 

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.

 

Irene Polikoff

unread,
Jun 23, 2021, 3:29:47 AM6/23/21
to topbrai...@googlegroups.com
 
ex:Bridge
  a sh:NodeShape, owl:Class ; (or rdfs:Class)
  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 ;
    ] ;
.


This is necessary to establish the target.

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 topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/165cca5ae08e4e088d45585a8994b992%40tno.nl.

Holger Knublauch

unread,
Jun 23, 2021, 3:30:12 AM6/23/21
to topbrai...@googlegroups.com

... 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
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.


 

--

Irene Polikoff

unread,
Jun 23, 2021, 3:32:07 AM6/23/21
to topbrai...@googlegroups.com
You need a target - either explicitly by using one the SHACL target statements or implicitly by saying that it is a class as well as a node shape


On Jun 23, 2021, at 3:27 AM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:

And then similar question for:
 
ex:heightShape
  a sh:NodeShape ;
  sh:targetObjectsOf ex:height ;
  sh:class sml:QuantityValue ;
.
 
Can it be:
 
ex:height
  a sh:NodeShape ;
  sh:class sml:QuantityValue ;


The first shape targets all resources that are objects in the ?s ex:height ?o triples.

The second one does not target anything. If you make it a class, it will target all resources of the ex:height.
.
 
 
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
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 topbraid-user...@googlegroups.com.

Bohms, H.M. (Michel)

unread,
Jun 23, 2021, 3:40:39 AM6/23/21
to topbrai...@googlegroups.com

Yes, ok

 

The ex:Bridge a rdfs:Class is in the imported RDFS ontology!

 

 

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.

Bohms, H.M. (Michel)

unread,
Jun 23, 2021, 3:41:22 AM6/23/21
to topbrai...@googlegroups.com

Right, see previous (its there imported from other graph (same ns))

 

 

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.

 

Van: topbrai...@googlegroups.com <topbrai...@googlegroups.com> Namens Holger Knublauch
Verzonden: woensdag 23 juni 2021 09:30
Aan: topbrai...@googlegroups.com
Onderwerp: Re: [topbraid-users] simple shacl question

 

 

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

Bohms, H.M. (Michel)

unread,
Jun 23, 2021, 3:43:10 AM6/23/21
to topbrai...@googlegroups.com

So I can do also the second option here?

( the ‘ex:height a rdfs:Property’ this time is again in an imported graph)

 

 

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.

 

Van: topbrai...@googlegroups.com <topbrai...@googlegroups.com> Namens Irene Polikoff
Verzonden: woensdag 23 juni 2021 09:32
Aan: topbrai...@googlegroups.com
Onderwerp: Re: [topbraid-users] simple shacl question

 

You need a target - either explicitly by using one the SHACL target statements or implicitly by saying that it is a class as well as a node shape

Reply all
Reply to author
Forward
0 new messages