Skip to content

Commit

Permalink
Add Javadoc for method
Browse files Browse the repository at this point in the history
  • Loading branch information
jvendetti committed May 16, 2017
1 parent 6d854b0 commit a963a80
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/org/stanford/ncbo/oapiwrapper/OntologyParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,17 @@ private void generateSKOSInOwl(Set<OWLAxiom> allAxioms, OWLDataFactory fact, OWL
}
}

/**
* Generates a set of annotation axioms for the target ontology.
* <p>
* 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<OWLAxiom> allAxioms, OWLDataFactory factory, OWLOntology sourceOntology) {
IRI notationPropertyIRI = IRI.create("http://www.w3.org/2004/02/skos/core#notation");
OWLAnnotationProperty property = factory.getOWLAnnotationProperty(notationPropertyIRI);
Expand Down

0 comments on commit a963a80

Please sign in to comment.