Exemplo n.º 1
0
    @Override
    protected Serializable processMethod() throws AsyncException {
      version++;
      if (fdata != null) {
        Graph data = fdata.getGraph();
        if (data != null) {
          data.delete(getHandler(""), t);
        }
      }
      if (isPrepared) {
        fdeductions.getGraph().delete(getHandler(""), t);
      }

      return null;
    }
Exemplo n.º 2
0
 @Override
 protected Boolean processMethod() throws AsyncException {
   Graph d = fdeductions.getGraph();
   BasicForwardRuleInfGraph preload = (BasicForwardRuleInfGraph) preloadIn;
   // If the rule set is the same we can reuse those as well
   if (preload.rules == rules) {
     // Load raw deductions
     for (Iterator<Triple> i = preload.find(getHandler(""), null, null, null); i.hasNext(); ) {
       d.add(getHandler(""), i.next());
     }
     engine.setRuleStore(preload.engine.getRuleStore());
     return true;
   } else {
     return false;
   }
 }