/** * Removes the triple t (if possible) from the set belonging to this graph. */ @Override public void performDelete(Triple t) { version++; //boolean removeIsFromBase = fdata.getGraph().contains(t); fdata.getGraph().delete(t); if (useTGCCaching) { if (transitiveEngine.delete(t)) { if (this.isPrepared()) { bEngine.deleteAllRules(); } this.setPreparedState(false); } } // Full incremental remove processing requires reference counting // of all deductions. It's not clear the cost of maintaining the // reference counts is worth it so the current implementation // forces a recompute if any external deletes are performed. if (this.isPrepared()) { bEngine.deleteAllRules(); this.setPreparedState(false); // Re-enable the code below when/if ref counting is added and remove above // if (removeIsFromBase) engine.delete(t); } bEngine.reset(); }
if (transitiveEngine.add(t)) this.setPreparedState(false); if (this.isPrepared()) { boolean needReset = false; if (preprocessorHooks != null && preprocessorHooks.size() > 0) {
/** * Removes the triple t (if possible) from the set belonging to this graph. */ @Override public void performDelete(Triple t) { version++; //boolean removeIsFromBase = fdata.getGraph().contains(t); fdata.getGraph().delete(t); if (useTGCCaching) { if (transitiveEngine.delete(t)) { if (this.isPrepared()) { bEngine.deleteAllRules(); } this.setPreparedState(false); } } // Full incremental remove processing requires reference counting // of all deductions. It's not clear the cost of maintaining the // reference counts is worth it so the current implementation // forces a recompute if any external deletes are performed. if (this.isPrepared()) { bEngine.deleteAllRules(); this.setPreparedState(false); // Re-enable the code below when/if ref counting is added and remove above // if (removeIsFromBase) engine.delete(t); } bEngine.reset(); }
if (transitiveEngine.add(t)) this.setPreparedState(false); if (this.isPrepared()) { boolean needReset = false; if (preprocessorHooks != null && preprocessorHooks.size() > 0) {
if (this.isPrepared()) return;
if (this.isPrepared()) return;