@Override public boolean postExecute() { if (!super.postExecute()) return false; reasoner.ontologyIndex.commitAddedRules(); reasoner.ontologyIndex.initClassChanges(); reasoner.ontologyIndex.initIndividualChanges(); return true; }
@Override public boolean postExecute() { if (!super.postExecute()) return false; reasoner.ontologyIndex.commitAddedRules(); reasoner.ontologyIndex.initClassChanges(); reasoner.ontologyIndex.initIndividualChanges(); return true; }
@Override public boolean postExecute() { if (!super.postExecute()) return false; reasoner.ontologyIndex.commitAddedRules(); reasoner.ontologyIndex.initClassChanges(); reasoner.ontologyIndex.initIndividualChanges(); return true; }
@Override public boolean postExecute() { if (!super.postExecute()) { return false; } final Collection<IndexedIndividual> toAdd = reasoner.instanceTaxonomyState .getToAdd(); if (!toAdd.isEmpty()) { throw new ElkRuntimeException( InstanceTaxonomyComputation.class.getSimpleName() + " did not add all individuals to the taxonomy!"); } reasoner.instanceTaxonomyState.taxonomyComplete(); reasoner.ontologyIndex.initIndividualChanges(); // reasoner.ruleAndConclusionStats.add(computation_.getRuleAndConclusionStatistics()); this.computation_ = null; return true; }
@Override public boolean postExecute() { if (!super.postExecute()) { return false; } final Collection<IndexedIndividual> toAdd = reasoner.instanceTaxonomyState .getToAdd(); if (!toAdd.isEmpty()) { throw new ElkRuntimeException( InstanceTaxonomyComputation.class.getSimpleName() + " did not add all individuals to the taxonomy!"); } reasoner.instanceTaxonomyState.taxonomyComplete(); reasoner.ontologyIndex.initIndividualChanges(); // reasoner.ruleAndConclusionStats.add(computation_.getRuleAndConclusionStatistics()); this.computation_ = null; return true; }
/** * Sets the incremental mode for this {@code DifferentialIndex}. * * @param incremental * if {@code true}, deletions and additions to this indexed are * stored separately; if {@code false} all changes are * immediately applied to the index. */ public void setIncrementalMode(boolean incremental) { if (this.incrementalMode == incremental) // already set return; LOGGER_.trace("set incremental mode: " + incremental); this.incrementalMode = incremental; if (!incremental) { clearDeletedRules(); commitAddedRules(); initClassChanges(); initIndividualChanges(); } }
@Override public boolean postExecute() { if (!super.postExecute()) { return false; } final Collection<IndexedIndividual> toAdd = reasoner.instanceTaxonomyState .getToAdd(); if (!toAdd.isEmpty()) { throw new ElkRuntimeException( InstanceTaxonomyComputation.class.getSimpleName() + " did not add all individuals to the taxonomy!"); } reasoner.instanceTaxonomyState.taxonomyComplete(); reasoner.ontologyIndex.initIndividualChanges(); // reasoner.ruleAndConclusionStats.add(computation_.getRuleAndConclusionStatistics()); this.computation_ = null; return true; }
/** * Sets the incremental mode for this {@code DifferentialIndex}. * * @param incremental * if {@code true}, deletions and additions to this indexed are * stored separately; if {@code false} all changes are * immediately applied to the index. */ public void setIncrementalMode(boolean incremental) { if (this.incrementalMode == incremental) // already set return; LOGGER_.trace("set incremental mode: " + incremental); this.incrementalMode = incremental; if (!incremental) { clearDeletedRules(); commitAddedRules(); initClassChanges(); initIndividualChanges(); } }
/** * Sets the incremental mode for this {@code DifferentialIndex}. * * @param incremental * if {@code true}, deletions and additions to this indexed are * stored separately; if {@code false} all changes are * immediately applied to the index. */ public void setIncrementalMode(boolean incremental) { if (this.incrementalMode == incremental) // already set return; LOGGER_.trace("set incremental mode: " + incremental); this.incrementalMode = incremental; if (!incremental) { clearDeletedRules(); commitAddedRules(); initClassChanges(); initIndividualChanges(); } }
/** * Initializes all data structures */ void init() { initClassChanges(); initIndividualChanges(); initObjectPropertyChanges(); initAdditions(); initDeletions(); }
/** * Initializes all data structures */ void init() { initClassChanges(); initIndividualChanges(); initObjectPropertyChanges(); initAdditions(); initDeletions(); }
/** * Initializes all data structures */ void init() { initClassChanges(); initIndividualChanges(); initObjectPropertyChanges(); initAdditions(); initDeletions(); }