Make sure IDs do not appear twice when parsing the ontology file