OntologyScope sc = null;
sc = ontologyScopeFactory.createOntologyScope(scopeIRI, new BlankOntologySource());
// Populate the core space
if (cores.length > 0) {
OntologySpace corespc = sc.getCoreSpace();
corespc.tearDown();
for (int i = 0; i < cores.length; i++)
try {
corespc.addOntology(new RootOntologyIRISource(IRI.create(cores[i])));
} catch (Exception ex) {
log.warn("Failed to import ontology " + cores[i], ex);
continue;
}
}