I have a qualified constraint question.
To define a meronomy (typical hasPart hierarchy) we now use in OWA/OWL:
:Vehicle
a owl:Class ;
rdfs:subClassOf [
a owl:Restriction ;
owl:minQualifiedCardinality "0"^^xsd:nonNegativeInteger ;
owl:onClass :Engine ;
owl:onProperty :hasPart ;
] .
We explicitly model this mincard=0 to indicate relevance (it is not an
obligatory part).
(because we cannot leave the restriction out).
Now my question how does this translate into cwa/shacl?
:VehicleShape
a sh:NodeShape ;
sh:targetClass :Vehicle ;
sh:property [
sh:path :hasPart ;
sh:qualifiedMinCount 0 ;
sh:qualifiedValueShape [
sh:class :Engine ;
] ;
sh:qualifiedMinCount 0 ;
.
Or can I delete the red now?
Similar (example not for decomposition):
sh:property [ sh:path
https://w3id.org/nen2660/def#hasInterior ;
sh:qualifiedValueShape [ sh:class
https://otl.waternet.nl/def/cff9206f-72ae-4eb8-a671-9c3dd73b62c0 ]
] .
Is it ok to leave minCard/maxCard out?
Personally I guess NOT since I always have to give the actual constraint where
the valueshape is 'just' the context when to be applied, right?
So I put in minCar = 0 again or is there in shape a smarter way to indicate
this "relevance"?
Thx a lot, Michel
Michel Böhms
Data Scientist
[cid:[email protected]]
Mobile +31 630381220
E-mail [email protected]<mailto:[email protected]>
Location<https://nextdelft.com/>
[cid:[email protected]]<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.
--
The topics of this mailing list include TopBraid EDG and related technologies
such as SHACL.
To post to this group, send email to [email protected]
---
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/8f1ba4e23ebe4932bcaff5319933f7d1%40tno.nl.