Пример #1
0
  /**
   * Removes the triple t (if possible) from the set belonging to this graph.
   *
   * @throws AsyncException
   */
  @Override
  public void performDelete(ASubCallHandler handler, Triple t) throws AsyncException {
    List<SyncVar> attrs = new ArrayList<SyncVar>();
    attrs.add(new SyncVar<Triple>("t", t));

    Object voidObj = new PerformDeleteHandler("performDelete", handler, attrs).result();
  }
Пример #2
0
  /**
   * Adds a set of precomputed triples to the deductions store. These do not, themselves, fire any
   * rules but provide additional axioms that might enable future rule firing when real data is
   * added. Used to implement bindSchema processing in the parent Reasoner.
   *
   * @return return true if the rule set has also been loaded
   * @throws AsyncException
   */
  protected boolean preloadDeductions(ASubCallHandler handler, Graph preloadIn)
      throws AsyncException {
    List<SyncVar> attrs = new ArrayList<SyncVar>();
    attrs.add(new SyncVar<Graph>("preloadIn", preloadIn));

    return new PreloadDeductionsHandler("preloadDeductions", handler, attrs).result();
  }
Пример #3
0
 /**
  * Internals of findWithContinuation implementation which allows control over functor filtering.
  *
  * @throws AsyncException
  */
 private ExtendedIterator<Triple> findWithContinuation(
     ASubCallHandler handler, TriplePattern pattern, Finder continuation, boolean filter)
     throws AsyncException {
   List<SyncVar> attrs = new ArrayList<SyncVar>();
   attrs.add(new SyncVar<TriplePattern>("pattern", pattern));
   attrs.add(new SyncVar<Finder>("continuation", continuation));
   attrs.add(new SyncVar<Boolean>("filter", filter));
   return new FindWithContinuationHandler("findWithContinuation", handler, attrs).result();
 }