}
else {
// Ontology annotations
OWLLiteral con = getDataFactory().getOWLLiteral(value);
OWLAnnotationProperty property = getDataFactory().getOWLAnnotationProperty(getIRI(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(value, "");
OWLAnnotationProperty property = getDataFactory().getOWLAnnotationProperty(getIRI(tag));
OWLAnnotation anno = getDataFactory().getOWLAnnotation(property, con);
OWLAnnotationAssertionAxiom ax = getDataFactory().getOWLAnnotationAssertionAxiom(subject, anno);
owlOntologyManager.addAxiom(ontology, ax);
OWLDeclarationAxiom annotationPropertyDeclaration = getDataFactory().getOWLDeclarationAxiom(property);
owlOntologyManager.addAxiom(ontology, annotationPropertyDeclaration);
}