@Override public void flush() { // Process the changes Set<OWLAxiom> added = new HashSet<>(); Set<OWLAxiom> removed = new HashSet<>(); computeDiff(added, removed); reasonerAxioms.removeAll(removed); reasonerAxioms.addAll(added); rawChanges.clear(); if (!added.isEmpty() || !removed.isEmpty()) { handleChanges(added, removed); } }
@Override public void flush() { prepared = false; super.flush(); prepareReasoner(); }
@Override public Set<OWLAxiom> getPendingAxiomAdditions() { Set<OWLAxiom> added = new HashSet<>(); computeDiff(added, new HashSet<OWLAxiom>()); return added; }
@Override public void dispose() { super.dispose(); try { } catch (Exception e) { log.debug(e.getMessage()); } try { queryEngine.close(); } catch (Exception e) { log.debug(e.getMessage()); } }
@Override public void flush() { prepared = false; super.flush(); prepareReasoner(); }
@Override public Set<OWLAxiom> getPendingAxiomRemovals() { Set<OWLAxiom> removed = new HashSet<>(); computeDiff(new HashSet<OWLAxiom>(), removed); return removed; }
@Override public void dispose() { super.dispose(); try { conn.close(); } catch (Exception e) { log.debug(e.getMessage()); } try { questInstance.dispose(); } catch (Exception e) { log.debug(e.getMessage()); } }
public void flush() { prepared = false; super.flush(); prepareReasoner(); }
@Override public void flush() { // Process the changes Set<OWLAxiom> added = new HashSet<>(); Set<OWLAxiom> removed = new HashSet<>(); computeDiff(added, removed); reasonerAxioms.removeAll(removed); reasonerAxioms.addAll(added); rawChanges.clear(); if (!added.isEmpty() || !removed.isEmpty()) { handleChanges(added, removed); } }
@Override public Set<OWLAxiom> getPendingAxiomAdditions() { Set<OWLAxiom> added = new HashSet<>(); computeDiff(added, new HashSet<OWLAxiom>()); return added; }
@Override public void dispose() { super.dispose(); try { conn.close(); } catch (Exception e) { log.debug(e.getMessage()); } try { questInstance.dispose(); } catch (Exception e) { log.debug(e.getMessage()); } }
/** * Handles raw ontology changes. If the reasoner is a buffering reasoner then the changes will be stored * in a buffer. If the reasoner is a non-buffering reasoner then the changes will be automatically flushed * through to the change filter and passed on to the reasoner. * @param changes The list of raw changes. */ private void handleRawOntologyChanges(List<? extends OWLOntologyChange> changes) { rawChanges.addAll(changes); // We auto-flush the changes if the reasoner is non-buffering if(bufferingMode.equals(BufferingMode.NON_BUFFERING)) { flush(); } }
@Override public void flush() { // Process the changes Set<OWLAxiom> added = new HashSet<>(); Set<OWLAxiom> removed = new HashSet<>(); computeDiff(added, removed); reasonerAxioms.removeAll(removed); reasonerAxioms.addAll(added); rawChanges.clear(); if (!added.isEmpty() || !removed.isEmpty()) { handleChanges(added, removed); } }
public Set<OWLAxiom> getPendingAxiomAdditions() { Set<OWLAxiom> added = new HashSet<OWLAxiom>(); computeDiff(added, new HashSet<OWLAxiom>()); return added; }
/** * Handles raw ontology changes. If the reasoner is a buffering reasoner * then the changes will be stored in a buffer. If the reasoner is a * non-buffering reasoner then the changes will be automatically flushed * through to the change filter and passed on to the reasoner. * * @param changes The list of raw changes. */ protected synchronized void handleRawOntologyChanges( List<? extends OWLOntologyChange> changes) { rawChanges.addAll(changes); // We auto-flush the changes if the reasoner is non-buffering if (bufferingMode.equals(BufferingMode.NON_BUFFERING)) { flush(); } }
@Override public void flush() { // Process the changes Set<OWLAxiom> added = new HashSet<>(); Set<OWLAxiom> removed = new HashSet<>(); computeDiff(added, removed); reasonerAxioms.removeAll(removed); reasonerAxioms.addAll(added); rawChanges.clear(); if (!added.isEmpty() || !removed.isEmpty()) { handleChanges(added, removed); } }
@Override public Set<OWLAxiom> getPendingAxiomAdditions() { Set<OWLAxiom> added = new HashSet<>(); computeDiff(added, new HashSet<OWLAxiom>()); return added; }
/** * Handles raw ontology changes. If the reasoner is a buffering reasoner * then the changes will be stored in a buffer. If the reasoner is a * non-buffering reasoner then the changes will be automatically flushed * through to the change filter and passed on to the reasoner. * * @param changes The list of raw changes. */ protected synchronized void handleRawOntologyChanges( List<? extends OWLOntologyChange> changes) { rawChanges.addAll(changes); // We auto-flush the changes if the reasoner is non-buffering if (bufferingMode.equals(BufferingMode.NON_BUFFERING)) { flush(); } }
/** * Flushes the pending changes from the pending change list. The changes will be analysed to dermine which * axioms have actually been added and removed from the imports closure of the root ontology and then the * reasoner will be asked to handle these changes via the {@link #handleChanges(java.util.Set, java.util.Set)} * method. */ public void flush() { // Process the changes final Set<OWLAxiom> added = new HashSet<OWLAxiom>(); final Set<OWLAxiom> removed = new HashSet<OWLAxiom>(); computeDiff(added, removed); reasonerAxioms.removeAll(removed); reasonerAxioms.addAll(added); rawChanges.clear(); if (!added.isEmpty() || !removed.isEmpty()) { handleChanges(added, removed); } }
@Override public Set<OWLAxiom> getPendingAxiomRemovals() { Set<OWLAxiom> removed = new HashSet<>(); computeDiff(new HashSet<OWLAxiom>(), removed); return removed; }