Ok, so better shacl Somehow I do not get a shacl warning on. This used to work as I remember well...tips welcome
# baseURI: https://w3id.org/def/example # imports: http://datashapes.org/dash # imports: https://w3id.org/def/basicsemantics-owl # prefix: ex @prefix bs: <https://w3id.org/def/basicsemantics-owl#> . @prefix dash: <http://datashapes.org/dash#> . @prefix ex: <https://w3id.org/def/example#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix quantitykind: <http://qudt.org/vocab/quantitykind/> . @prefix qudt: <http://qudt.org/schema/qudt/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix sh: <http://www.w3.org/ns/shacl#> . @prefix skos: <http://www.w3.org/2004/02/skos/core#> . @prefix unit: <http://qudt.org/vocab/unit/> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . <https://w3id.org/def/example> a owl:Ontology ; owl:imports <http://datashapes.org/dash> ; owl:imports <https://w3id.org/def/basicsemantics-owl> ; . ex:Bridge a owl:Class ; . ex:Bridge_1 a ex:ShortBridge ; ex:length [ rdf:value 120.0 ; ] ; . ex:ShortBridge a owl:Class ; rdfs:subClassOf ex:Bridge ; sh:property [ a sh:PropertyShape ; sh:path ( ex:length rdf:value ) ; sh:maxCount 1 ; sh:maxInclusive 100.0 ; sh:minCount 1 ; ] ; . ex:length a owl:ObjectProperty ; rdfs:range bs:QuantityValue ; . Dr. ir. H.M. (Michel) Böhms Senior Data Scientist T +31888663107 M +31630381220 E michel.bo...@tno.nl<mailto:michel.bo...@tno.nl> Location<https://www.google.com/maps/place/TNO+-+Locatie+Delft+-+Stieltjesweg/@52.000788,4.3745183,17z/data=!3m1!4b1!4m5!3m4!1s0x47c5b58c52869997:0x56681566be3b8c88!8m2!3d52.000788!4d4.376707> [cid:image001.gif@01D60F40.69066A40]<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. Van: topbraid-users@googlegroups.com <topbraid-users@googlegroups.com> Namens Irene Polikoff Verzonden: Thursday, April 9, 2020 3:48 PM Aan: topbraid-users@googlegroups.com Onderwerp: Re: [topbraid-users] infer question No, this type of inference is outside of RL profile. However, as David said, if you want to support a specific pattern that is outside of OWL RL, you can still add a rule targeted for it. RL profile is implemented as a set of SPIN rules - you can see it in TBC in owlrl-all.ttl and you can extend it. Further, I don’t think this example would produce the inference you are looking for irrespective of the reasoner. You would need to change the below restriction to the equivalentClass: ex:ShortBridgeLengthValue a owl:Class ; rdfs:subClassOf bs:QuantityValue ; rdfs:subClassOf [ a owl:Restriction ; owl:allValuesFrom [ a rdfs:Datatype ; owl:onDatatype xsd:decimal ; owl:withRestrictions ( [ xsd:maxInclusive 100 ; ] ) ; ] ; owl:onProperty rdf:value ; ] ; On Apr 9, 2020, at 9:14 AM, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com>> wrote: Thx david I see all the shacl pros etc. It just that we have owl-oriented partners that wondered how they could autoclassify like in the example. I know the limitations...was just thinking...maybe we can remodel in such a way the same sothat it would come into RL-territory..... Well,guess that’s difficult .... Gr michel Dr. ir. H.M. (Michel) Böhms Senior Data Scientist T +31888663107 M +31630381220 E michel.bo...@tno.nl<mailto:michel.bo...@tno.nl> Location<https://www.google.com/maps/place/TNO+-+Locatie+Delft+-+Stieltjesweg/@52.000788,4.3745183,17z/data=!3m1!4b1!4m5!3m4!1s0x47c5b58c52869997:0x56681566be3b8c88!8m2!3d52.000788!4d4.376707> <image001.gif><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. Van: topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com> <topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com>> Namens dprice Verzonden: Thursday, April 9, 2020 1:38 PM Aan: topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com> Onderwerp: Re: [topbraid-users] infer question I did not look into the details, but TopBraid has support for the OWL RL profile wrt inference. Anything beyond that is not supported out-of-the-box. If you find a few patterns like that you need to support in TopBraid, then layer SHACL rules over the OWL or extend the OWL RL SPIN rules to make these inferences . You could even have a small library of SPARQL CONSTRUCTs that do the trick. As you know from the V-Con project Michel, it is also possible to do a customer extension and integrate a DL reasoner into EDG if that requirement becomes operational in an organisation. Cheers, David On 9 Apr 2020, at 11:48, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbraid-users@googlegroups.com<mailto:topbraid-users@googlegroups.com>> wrote: No way/trick to topspin-infer “ex:Bridge_1 rdf:type ex:ShortBridge” ? (I know shacl is better here but still got this question for owl) From <https://w3id.org/def/example> a owl:Ontology ; owl:imports <https://w3id.org/def/basicsemantics-owl> ; . ex:Bridge a owl:Class ; . ex:Bridge_1 a ex:Bridge ; ex:length [ rdf:value 50.0 ; ] ; . ex:ShortBridge a owl:Class ; rdfs:subClassOf ex:Bridge ; rdfs:subClassOf [ a owl:Restriction ; owl:cardinality "1"^^xsd:nonNegativeInteger ; owl:onProperty ex:length ; ] ; owl:equivalentClass [ a owl:Restriction ; owl:allValuesFrom ex:ShortBridgeLengthValue ; owl:onProperty ex:length ; ] ; . ex:ShortBridgeLengthValue a owl:Class ; rdfs:subClassOf bs:QuantityValue ; rdfs:subClassOf [ a owl:Restriction ; owl:allValuesFrom [ a rdfs:Datatype ; owl:onDatatype xsd:decimal ; owl:withRestrictions ( [ xsd:maxInclusive 100 ; ] ) ; ] ; owl:onProperty rdf:value ; ] ; . ex:length a owl:ObjectProperty ; rdfs:range bs:QuantityValue ; . Dr. ir. H.M. (Michel) Böhms Senior Data Scientist T +31888663107 M +31630381220 E michel.bo...@tno.nl<mailto:michel.bo...@tno.nl> Location<https://www.google.com/maps/place/TNO+-+Locatie+Delft+-+Stieltjesweg/@52.000788,4.3745183,17z/data=!3m1!4b1!4m5!3m4!1s0x47c5b58c52869997:0x56681566be3b8c88!8m2!3d52.000788!4d4.376707> <image001.gif><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 topbraid-users+unsubscr...@googlegroups.com<mailto:topbraid-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/5a44c93542e34368a7ef2630e8de1147%40tno.nl<https://groups.google.com/d/msgid/topbraid-users/5a44c93542e34368a7ef2630e8de1147%40tno.nl?utm_medium=email&utm_source=footer>. UK +44 (0) 7788 561308 US +1 (336) 283-0808 -- 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-users+unsubscr...@googlegroups.com<mailto:topbraid-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/6D5F0B3C-31FD-4EA8-9D34-7F1A7738A61F%40topquadrant.com<https://groups.google.com/d/msgid/topbraid-users/6D5F0B3C-31FD-4EA8-9D34-7F1A7738A61F%40topquadrant.com?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 topbraid-users+unsubscr...@googlegroups.com<mailto:topbraid-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/8cbc3408293b435dac885a297d440062%40tno.nl<https://groups.google.com/d/msgid/topbraid-users/8cbc3408293b435dac885a297d440062%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 topbraid-users+unsubscr...@googlegroups.com<mailto:topbraid-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/D0B4437F-7523-4CEF-BA26-EEBF265903B2%40topquadrant.com<https://groups.google.com/d/msgid/topbraid-users/D0B4437F-7523-4CEF-BA26-EEBF265903B2%40topquadrant.com?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 topbraid-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/427a522c32054321a832297808e58b2c%40tno.nl.