diff --git a/src/main/java/org/stanford/ncbo/oapiwrapper/OntologyParser.java b/src/main/java/org/stanford/ncbo/oapiwrapper/OntologyParser.java index 0ad3741d..8478ea15 100644 --- a/src/main/java/org/stanford/ncbo/oapiwrapper/OntologyParser.java +++ b/src/main/java/org/stanford/ncbo/oapiwrapper/OntologyParser.java @@ -386,6 +386,17 @@ private void generateSKOSInOwl(Set allAxioms, OWLDataFactory fact, OWL } } + /** + * Generates a set of annotation axioms for the target ontology. + *

+ * The purpose of the axioms is to add a skos:notation annotation property to every class in the ontology, + * where the value is set to the OBO term ID. The notation property is meant to act as a unique code for ontology + * classes, which facilitates class ID lookups across various ontology formats in the BioPortal application. + * + * @param allAxioms the set of axioms for the target ontology + * @param factory the OWL data factory of the source ontology + * @param sourceOntology the source ontology + */ private void generateSKOSInObo(Set allAxioms, OWLDataFactory factory, OWLOntology sourceOntology) { IRI notationPropertyIRI = IRI.create("http://www.w3.org/2004/02/skos/core#notation"); OWLAnnotationProperty property = factory.getOWLAnnotationProperty(notationPropertyIRI);