This ontology does not quite seem to do what I have in mind:
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix : <http://test/> .
:AClass a owl:Class .
:BClass a owl:Class .
# Class 1
:CClass owl:equivalentClass [
owl:intersectionOf (
:AClass
:BClass
)
] .
Loading this in protege with hermit reasoner I do not see CClass as sub-class of either AClass or BClass. However the following works:
.
.
.
# Class 1
:CClass owl:equivalentClass [
rdf:type owl:Class ;
owl:intersectionOf (
:AClass
:BClass
)
] .
Curious on why I need to add rdf:type owl:Class.
- Isn't
[ ... ]automatically of typeowl:Class? - Or being an intersection of two
owl:Classmake it so?
Thanks