Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6d58eda9 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- fixed the problem with loading twice the same ontology from different files

parent 9ac56113
No related branches found
No related tags found
No related merge requests found
...@@ -100,8 +100,10 @@ public class OWLAPI3OntologyFactory extends OntologyFactory { ...@@ -100,8 +100,10 @@ public class OWLAPI3OntologyFactory extends OntologyFactory {
// This is a cache failure // This is a cache failure
throw new OntowrapException("Already loaded [doc cache failure] " + uri, oodaeex ); throw new OntowrapException("Already loaded [doc cache failure] " + uri, oodaeex );
} catch ( OWLOntologyAlreadyExistsException ooaeex ) { } catch ( OWLOntologyAlreadyExistsException ooaeex ) {
// This is a cache failure // This happens when the ontology has been loaded from a different URIs
throw new OntowrapException("Already loaded [owl cache failure] " + uri, ooaeex ); ontology = manager.getOntology( ooaeex.getOntologyID() );
if ( ontology == null )
throw new OntowrapException("Already loaded [owl cache failure] " + uri, ooaeex );
} catch ( OWLOntologyCreationException oocex ) { } catch ( OWLOntologyCreationException oocex ) {
oocex.printStackTrace(); oocex.printStackTrace();
throw new OntowrapException("Cannot load " + uri, oocex ); throw new OntowrapException("Cannot load " + uri, oocex );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment