for(OWLOntology ont : rootOntology.getImportsClosure()) {
for(OWLClassAssertionAxiom ax : ont.getClassAssertionAxioms(subject)) {
if(!ax.getClassExpression().isAnonymous()) {
OWLClass type = (OWLClass) ax.getClassExpression();
ClassFrameTranslator classFrameTranslator = new ClassFrameTranslator();
ClassFrame classFrame = classFrameTranslator.getFrame(type, rootOntology, project);
for(PropertyValue propertyValue : classFrame.getPropertyValues()) {
// Bit yucky
if (!propertyValue.isAnnotation()) {
propertyValues.add(propertyValue.setState(PropertyValueState.DERIVED));
}
}