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