private void buildIndices() { reset(); AxiomMapBuilder builder = new AxiomMapBuilder(); for (OWLAxiom ax : currentExplanation) { ax.accept(builder); } try { if (ont != null) { man.removeOntology(ont); } ont = man.createOntology(IRI.create("http://www.semanticweb.org/ontology" + System.currentTimeMillis())); List<OWLOntologyChange> changes = new ArrayList<OWLOntologyChange>(); for (OWLAxiom ax : currentExplanation) { changes.add(new AddAxiom(ont, ax)); ax.accept(builder); } man.applyChanges(changes); } catch (OWLOntologyCreationException e) { throw new OWLRuntimeException(e); } }