Skip to content

Commit

Permalink
Only remove unannotated axiom if it received annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
balhoff authored and ignazio1977 committed May 20, 2022
1 parent f8bef61 commit 132773d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2389,8 +2389,10 @@ public void handleTriple(IRI s, IRI p, IRI o) {
}
if (!annotations.isEmpty()) {
OWLAxiom ax = consumer.getLastAddedAxiom();
consumer.removeAxiom(verifyNotNull(ax, "no axiom added yet by the consumer")
.getAxiomWithoutAnnotations());
// Only remove unannotated axiom if it received annotations
if (!verifyNotNull(ax, "no axiom added yet by the consumer").getAnnotations().isEmpty()) {
consumer.removeAxiom(ax.getAxiomWithoutAnnotations());
}
}
consume(s, p, o);
}
Expand Down

0 comments on commit 132773d

Please sign in to comment.