public void importOntology(IOntology ont) throws IOntologyException {
File file = new File(ontologyDirectory,ont.getName());
try {
ont.write(new FileOutputStream(file),IOntology.OWL_FORMAT);
} catch (FileNotFoundException e) {
throw new IOntologyException("Unable to save file in the local cache at "+file.getAbsolutePath(),e);
}
// reload from cache
ont.dispose();
ont = OOntology.loadOntology(file);
addOntology(ont);