Set<PropertyAnnotationValue> propertyValues = new HashSet<PropertyAnnotationValue>();
Set<OWLEntity> domains = new HashSet<OWLEntity>();
Set<OWLEntity> ranges = new HashSet<OWLEntity>();
for(OWLOntology ont : rootOntology.getImportsClosure()) {
for(OWLAnnotationAssertionAxiom ax : ont.getAnnotationAssertionAxioms(subject.getIRI())) {
propertyValues.add(new PropertyAnnotationValue(ax.getProperty(), ax.getValue(), PropertyValueState.ASSERTED));
}
for(OWLAnnotationPropertyDomainAxiom ax : ont.getAnnotationPropertyDomainAxioms(subject)) {
domains.addAll(rootOntology.getEntitiesInSignature(ax.getDomain()));
}
for(OWLAnnotationPropertyRangeAxiom ax : ont.getAnnotationPropertyRangeAxioms(subject)) {