Example #1
0
 public synchronized void open(ActionContext context) throws Exception {
   count++;
   if (open) {
     return;
   }
   in = (BTreeInterface) ReasoningContext.getInstance().getKB();
   spo = in.openWritingSession(context, DBType.SPO);
   sop = in.openWritingSession(context, DBType.SOP);
   pso = in.openWritingSession(context, DBType.PSO);
   pos = in.openWritingSession(context, DBType.POS);
   osp = in.openWritingSession(context, DBType.OSP);
   ops = in.openWritingSession(context, DBType.OPS);
   open = true;
 }
 @Override
 public void stopProcess(ActionContext context, ActionOutput actionOutput) throws Exception {
   ReasoningContext.getInstance()
       .getRuleset()
       .reloadPrecomputationSchemaGeneric(context, true, true);
 }