I am trying to load two ontologies using OWL-api in Java. They way I load them is this:
String onto1_iri = "http://purl.obolibrary.org/obo/psdo.owl"
String onto2_iri = "http://purl.obolibrary.org/obo/stato.owl";
OWLOntologyManager onto_manager = OWLManager.createOWLOntologyManager();
OWLOntology onto1 = onto_manager.loadOntology(IRI.create(onto1_iri.trim()));
OWLOntology onto2 = onto_manager.loadOntology(IRI.create(onto2_iri.trim()));
I’ve being working on this project for four, yet until next week everything was running perfect. However I tried to rerun the code two days ago, and I got the error OWLOntologyDocumentAlreadyExistsException
. I’ve being trying to find what causes the error and based on the owl-api documentation it says An exception that describes the situation where there was an attempt to create or load an ontology where the corresponding ontology document IRI already was already mapped to an ontology.
Yet, I am unable to find a solution…
Is there any way I can resolve this problem, somehow? This image below shows the message it throws.
enter image description here
Thank you in advance!