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 ;
.
|
|
|||||||||||||||||
|
|
|||||||||||||||||
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/5a44c93542e34368a7ef2630e8de1147%40tno.nl.
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
|
|
|
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/6D5F0B3C-31FD-4EA8-9D34-7F1A7738A61F%40topquadrant.com.
ex:ShortBridgeLengthValuea 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 <topbrai...@googlegroups.com> wrote:
Thx davidI 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
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/8cbc3408293b435dac885a297d440062%40tno.nl.
Yes , of course: 2 times equivalent in the chain! (otherwise you won’t travel back...)
Thx!
|
|
|
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/D0B4437F-7523-4CEF-BA26-EEBF265903B2%40topquadrant.com.
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#> .
owl:imports <http://datashapes.org/dash> ;
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 ;
.
|
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/D0B4437F-7523-4CEF-BA26-EEBF265903B2%40topquadrant.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/427a522c32054321a832297808e58b2c%40tno.nl.
On 9 Apr 2020, at 14:14, 'Bohms, H.M. (Michel)' via TopBraid Suite Users <topbrai...@googlegroups.com> wrote:Thx davidI 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
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/8cbc3408293b435dac885a297d440062%40tno.nl.