Skip to content

Commit

Permalink
Update OntologyHelper.java
Browse files Browse the repository at this point in the history
  • Loading branch information
matentzn committed May 2, 2024
1 parent 4c750c8 commit a50c78e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions robot-core/src/main/java/org/obolibrary/robot/OntologyHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,18 @@ public static void removeAxiomAnnotations(OWLOntology ontology, OWLAnnotationPro
removeAxiomAnnotations(ontology, property, null);
}

/**
* Removes all of the axiom annotations for the given annotation properties.
*
* @param ontology OWLOntology to remove axiom annotations
* @param properties List of annotation property IRIs to remove related axiom annotations.
*/
public static void removeAxiomAnnotations(OWLOntology ontology, List<IRI> properties) {
Map<IRI, String> annotationsToDrop = new HashMap<>();
properties.forEach(iri -> annotationsToDrop.put(iri, null));
removeAxiomAnnotations(ontology, annotationsToDrop);
}

/**
* Removes all of the axiom annotations for the given annotation property and an optional value
* pattern The value pattern should follow
Expand Down

0 comments on commit a50c78e

Please sign in to comment.