I have used an object property O
to relate Class A
with Class B
. I also have instance a
and b
of classes A
and B
respectively. I have used the same object property O
to relate the instances a
and b
.
Again, I have used the same object property O
to link a
with c
, where c
is an instance of Class C
which is not linked with class A
or B
using any object property.
Reasoners are still showing that the Ontology is Consistent.
My question is "Should this not be marked as inconsistent by the reasoners? Please enlighten me regarding your answer, whether the answer is 'Yes' or 'No' and the reason behind your answer"?
Thanks in advance.
You understand the semantics of domain and range axioms incorrectly. In the case of your object property
O
it merely states that whenever 2 individualsx
,y
are linked viaO
it means that the reasoner will infer thatx
is of typeA
andy
is of typeB
.In the case linking individuals
a
andc
wherec
is of typeC
you will notice thatc
is also now inferred to be of typeB
.If you want to see an inconsistency, what you can do is make classes
B
andC
disjoint. Then linkinga
andc
viaO
will result in an inconsistency.BTW, if you are interested, on my blog I write about OWL2 ontologies and the use of reasoners and some of the counter intuitive ways in which reasoners can seem to "fail".