Reputation: 63
I have an ontology that contains classes both of type owl:Class and rdfs:Class. I am using OWL API to parse the ontology.
I know that OWL API calls such as ontology.getClassesInSignature() can parse OWL classes from the ontology into OWLClass objects.
Is it also possible to parse the rdfs:Class objects from the ontology also using OWL API - or will OWL API only see the owl:Classes in my ontology?
Upvotes: 1
Views: 270
Reputation: 10659
In short, yes. rdfs:Class
and owl:Class
are both parsed as OWLClass
(or OWLClassExpression
if they do not have IRIs but are complex expressions.
Beware of the results of modifying and saving these ontologies, though. Currently the OWL API won't preserve the original namespace declaration, and all classes will be saved as owl:Class
.
Upvotes: 1