Skip to content

Commit

Permalink
Update OntologyFileWriter.java
Browse files Browse the repository at this point in the history
FIXED text output not containing annotation changes
  • Loading branch information
naouelkaram authored Sep 10, 2024
1 parent a319fce commit 7f43b62
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/java/uk/ac/ebi/efo/bubastis/OntologyFileWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,17 @@ private void writeListToFile(FileWriter fstream, ArrayList<OWLClassAxiomsInfo> c
fstream.write("+ " + axiom + "\n");
}
}

if (classChangeInfo.getDeletedAnnotations() != null) {
for (String axiom : classChangeInfo.getDeletedAnnotations()) {
fstream.write("- " + axiom + "\n");
}
}
if (classChangeInfo.getNewAnnotations() != null){
for (String axiom : classChangeInfo.getNewAnnotations()) {
fstream.write("+ " + axiom + "\n");
}
}

fstream.write("\n");
}
}
Expand Down

0 comments on commit 7f43b62

Please sign in to comment.