for (OWLObjectProperty p : inputOntology
.getObjectPropertiesInSignature()) {
for (OWLAnnotation a : annotations(inputOntology.filterAxioms(
Filters.annotations, p.getIRI(), INCLUDED),
expandExpressionAP)) {
OWLAnnotationValue v = a.getValue();
if (v instanceof OWLLiteral) {
String str = ((OWLLiteral) v).getLiteral();
LOG.info("mapping {} to {}", p, str);
expandExpressionMap.put(p.getIRI(), str);
}
}
}
for (OWLAnnotationProperty p : inputOntology
.getAnnotationPropertiesInSignature(EXCLUDED)) {
for (OWLAnnotation a : annotations(inputOntology.filterAxioms(
Filters.annotations, p.getIRI(), INCLUDED),
expandAssertionAP)) {
OWLAnnotationValue v = a.getValue();
if (v instanceof OWLLiteral) {
String str = ((OWLLiteral) v).getLiteral();
LOG.info("assertion mapping {} to {}", p, str);
expandAssertionToMap.put(p.getIRI(), str);
}