I am doing something wrong?
Why no shac validation error (2x: two wheels and an inappropr. door) on data for:
(I would at least expect 1 error for the maxCount; maybe not for Door since independent needing second property shape maxcard=0 for door?))
@prefix rdfs: http://www.w3.org/2000/01/rdf-schema# .
@prefix sh: http://www.w3.org/ns/shacl# .
@prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# .
@prefix ex: http://example.org/def/ .
@prefix owl: http://www.w3.org/2002/07/owl# .
ex: a owl:Ontology .
ex:hasPart
a owl:ObjectProperty .
ex:RealObject
a sh:NodeShape, owl:Class ;
sh:property [
sh:path ex:hasPart ;
sh:class ex:RealObject
] ; .
ex:Car
a sh:NodeShape, owl:Class ;
rdfs:subClassOf ex:RealObject ;
sh:property [sh:path ex:hasPart ;
sh:qualifiedMinCount 1 ;
sh:qualifiedMaxCount 1 ;
sh:qualifiedValueShape [ sh:class ex:Wheel ] ;
] ; .
ex:Wheel
a sh:NodeShape, owl:Class .
ex:Door
a sh:NodeShape, owl:Class .
ex:hasPart
a owl:ObjectProperty .
ex:Car_1 rdf:type ex:Car ;
ex:hasPart ex:Wheel_1 ;
ex:hasPart ex:Wheel_2 ;
ex:hasPart ex:Door_1 .
ex:Wheel_1 rdf:type ex:Wheel .
ex:Wheel_2 rdf:type ex:Wheel .
ex:Door_1 rdf:type ex:Door .
|
||||||||||||||||
On 14 Jun 2022, at 10:25 pm, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:I am doing something wrong?
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.
<image002.png> --
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/5642ddb307dc46b0ac4c08bc37d81a33%40tno.nl.
Hi Holger
In this variant where Door and Wheel are not (yet) subclasses of RealObject I would expect indeed 4 errors (contrary to my expected 2 other error I expected but now understand):
But there is nothing when I check in TBC (v 7.1.1):

Guess I miss a setting?
Thx Michel
|
|
|
| ||||
|
||||||||
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/0B1C19E8-EB66-48CA-9A29-410D74887526%40topquadrant.com.
On 15 Jun 2022, at 5:06 pm, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:
Hi HolgerIn this variant where Door and Wheel are not (yet) subclasses of RealObject I would expect indeed 4 errors (contrary to my expected 2 other error I expected but now understand):
- a car having two wheels where one is allowed.
- 3 parts that are not real objects
But there is nothing when I check in TBC (v 7.1.1):
<image003.png>
Guess I miss a setting?
Thx Michel
Michel Böhms
Data ScientistUnit Buildings, Infrastructure & Maritime
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/32899f49b3df4329b3365e8a1725549e%40tno.nl.
<test.ttl>
Actually it was the whole file 😊
Thought sh was only essential…
Added dash too
But no change in behaviour…
Adding the sh import however did ……
(also without dash that I deleted again)
THX!
|
|
|
| ||||
|
||||||||
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/2BB151B4-0CAA-45F8-B60C-C8D4E3EFB5BB%40topquadrant.com.
On 15 Jun 2022, at 9:30 pm, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:
Actually it was the whole file 😊Thought sh was only essential…Added dash tooBut no change in behaviour…Adding the sh import however did ……(also without dash that I deleted again)THX!
Michel Böhms
Data ScientistUnit Buildings, Infrastructure & Maritime
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/2BB151B4-0CAA-45F8-B60C-C8D4E3EFB5BB%40topquadrant.com.
--
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/19414ee6396d4084bb2fffc7cd21ce98%40tno.nl.
<test.ttl>
Yes ok
For our standardization files we try to keep as generic/simple as possible
Hence sh over dash
Maybe you have counterarg. still to use dash?
|
|
|
| ||||
|
||||||||
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/1A410C60-3EF5-4867-9CB7-70558C80AE23%40topquadrant.com.
My second variant makes Door and Window a subclass of an EXTERNAL nen2660:RealObject:
nen2660:RealObject
a sh:NodeShape ;
sh:property [
sh:path nen2660:consistsOf ;
sh:xone ( [ sh:class nen2660:Matter] [sh:class nen2660:MatterPortion ] ) ;
] ;
sh:property [
sh:path nen2660:hasPart ;
sh:xone ( [ sh:class nen2660:RealObject] [ sh:class nen2660:Port ] ) ;
] ;
.
So the 3 errors disappeared as expected.
But I expected one to appear new on my extended data:
ex:Car_1 rdf:type ex:Car ;
ex:hasPart ex:Wheel_1 ;
ex:hasPart ex:Wheel_2 ;
ex:hasPart ex:Door_1 ;
ex:hasPart ex:NoRO_1 .
ex:Wheel_1 rdf:type ex:Wheel .
ex:Wheel_2 rdf:type ex:Wheel .
ex:Door_1 rdf:type ex:Door .
ex:NoRO_1 rdf:type ex:NoRO .
(NoRO not being a subclass of RealObject!).
|
|
|
| ||||
|
||||||||
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/1A410C60-3EF5-4867-9CB7-70558C80AE23%40topquadrant.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/1A410C60-3EF5-4867-9CB7-70558C80AE23%40topquadrant.com.
--
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/81745650ce864e3484d3689688af5147%40tno.nl.
Sorry/thx
Test file: test2 importing nen2660-shacl importing nen2660-rdfs.
I expected a shacl error saying your car instance has a part (ex:NoRO_1 – No RealObject) that is not allowed since in imported shacl it says:
nen2660:RealObject
a sh:NodeShape ;
sh:property [
sh:path nen2660:consistsOf ;
sh:xone ( [ sh:class nen2660:Matter] [sh:class nen2660:MatterPortion ] ) ;
] ;
sh:property [
sh:path nen2660:hasPart ;
sh:xone ( [ sh:class nen2660:RealObject] [ sh:class nen2660:Port ] ) ;
] ;
.
Note:
There IS another sh-validation error on qudt’ s quantity kind that I do not understand, but that is another issue.
|
|
|
| ||||
|
||||||||
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/847E90AA-AE5C-44C8-A295-20C205C678F4%40topquadrant.com.
On 16 Jun 2022, at 12:44 am, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:
Sorry/thxTest file: test2 importing nen2660-shacl importing nen2660-rdfs.I expected a shacl error saying your car instance has a part (ex:NoRO_1 – No RealObject) that is not allowed since in imported shacl it says:nen2660:RealObjecta sh:NodeShape ;sh:property [sh:path nen2660:consistsOf ;sh:xone ( [ sh:class nen2660:Matter] [sh:class nen2660:MatterPortion ] ) ;] ;sh:property [sh:path nen2660:hasPart ;sh:xone ( [ sh:class nen2660:RealObject] [ sh:class nen2660:Port ] ) ;] ;.Note:There IS another sh-validation error on qudt’ s quantity kind that I do not understand, but that is another issue.
Michel Böhms
Data ScientistUnit Buildings, Infrastructure & Maritime
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/847E90AA-AE5C-44C8-A295-20C205C678F4%40topquadrant.com.
--
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/6a829f9d3ed5477285496265c13f3d17%40tno.nl.
<test2.ttl><nen2660-shacl.ttl><nen2660-rdfs.ttl>
Thx, solved (my stupid mistake)
Wrt qudt validation error:
The relevant code is:
nen2660:hasQuantityKindShape
a sh:NodeShape ;
sh:class qudt:QuantityKind ; ERROR for this one
sh:targetObjectsOf nen2660:hasQuantityKind ;
.
Maybe because it is not imported?
(only qudt is imported, not unit and quantitykind)
Ps updated test file added
|
|
|
| ||||
|
||||||||
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/769B9F0A-F108-4E84-87E8-77C92503FE94%40topquadrant.com.
On 16 Jun 2022, at 5:53 pm, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:Thx, solved (my stupid mistake)Wrt qudt validation error:The relevant code is:nen2660:hasQuantityKindShapea sh:NodeShape ;sh:class qudt:QuantityKind ; ERROR for this onesh:targetObjectsOf nen2660:hasQuantityKind ;.Maybe because it is not imported?
(only qudt is imported, not unit and quantitykind)Ps updated test file added
Michel Böhms
Data ScientistUnit Buildings, Infrastructure & Maritime
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/6b8aec1dcc17421cb16b31a5f69308dd%40tno.nl.
<test2.ttl>