configuration);
owlOntologyManager
.applyChange(new AddImport(ontology, decl));
} else {
// Ontology annotations
OWLLiteral con = getDataFactory().getOWLLiteral(
unescapeTagValue(value));
OWLAnnotationProperty property = getDataFactory()
.getOWLAnnotationProperty(getIRIFromTagName(tag));
OWLAnnotation anno = getDataFactory().getOWLAnnotation(
property, con);
owlOntologyManager.applyChange(new AddOntologyAnnotation(
ontology, anno));
}
} else if (currentId != null) {
// Add as annotation
if (configuration.isLoadAnnotationAxioms()) {
IRI subject = getIRI(currentId);
OWLLiteral con = getDataFactory().getOWLLiteral(
unescapeTagValue(value));
IRI annotationPropertyIRI = getIRIFromTagName(tag);
OWLAnnotationProperty property = getDataFactory()
.getOWLAnnotationProperty(annotationPropertyIRI);
OWLAnnotation anno = getDataFactory().getOWLAnnotation(