diff --git a/src/main/java/uk/ac/ebi/efo/bubastis/OntologyFileWriter.java b/src/main/java/uk/ac/ebi/efo/bubastis/OntologyFileWriter.java index f0541fe..146fd27 100644 --- a/src/main/java/uk/ac/ebi/efo/bubastis/OntologyFileWriter.java +++ b/src/main/java/uk/ac/ebi/efo/bubastis/OntologyFileWriter.java @@ -91,7 +91,17 @@ private void writeListToFile(FileWriter fstream, ArrayList 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"); } }