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
|
||||||||||||||||
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 ;
.
|
||||||||||||||||
ex:Bridgea 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 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.
... 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 ReliabilityT +31 (0)88 866 31 07
M +31 (0)63 038 12 20
E michel...@tno.nlThis 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.
--
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:heightShapea sh:NodeShape ;sh:targetObjectsOf ex:height ;sh:class sml:QuantityValue ;.Can it be:ex:heighta sh:NodeShape ;sh:class sml:QuantityValue ;
.
Dr. ir. H.M. (Michel) Bohms
Scientist Specialist
Structural Reliability
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/e9de0317a39a47fd822f2b35b3a6d25c%40tno.nl.
Yes, ok
The ex:Bridge a rdfs:Class is in the imported RDFS ontology!
|
|
|
| ||||||||
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/813D5CF6-DCB7-493B-B4BE-271AD2D6635A%40topquadrant.com.
Right, see previous (its there imported from other graph (same ns))
|
||||||||||||||||
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:
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/31cd5804-8b2e-82da-78ed-ac0880bbc9b4%40topquadrant.com.
So I can do also the second option here?
( the ‘ex:height a rdfs:Property’ this time is again in an imported graph)
|
|
|
| ||||||||
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
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/869413D0-8A62-4A49-8D9C-7121B25C01C8%40topquadrant.com.