Ejemplo n.º 1
0
 /** Free all resources, any further use of this Graph is an error. */
 public void close() {
   if (!closed) {
     fdata.getGraph().close();
     fdata = null;
     super.close();
   }
 }
Ejemplo n.º 2
0
 /**
  * Assert a new triple in the deduction graph, bypassing any processing machinery.
  *
  * @throws AsyncException
  * @throws AddDeniedException
  */
 @Override
 public void silentAdd(ASubCallHandler handler, Triple t)
     throws AddDeniedException, AsyncException {
   fdeductions.getGraph().add(handler, t);
 }
Ejemplo n.º 3
0
 /** Removes the triple t (if possible) from the set belonging to this graph. */
 public void performDelete(Triple t) {
   version++;
   if (!isPrepared) prepare();
   fdata.getGraph().delete(t);
 }
Ejemplo n.º 4
0
 /**
  * Add one triple to the data graph, run any rules triggered by the new data item, recursively
  * adding any generated triples.
  */
 public synchronized void performAdd(Triple t) {
   version++;
   if (!isPrepared) prepare();
   // System.out.println(t.toString());
   fdata.getGraph().add(t);
 }
Ejemplo n.º 5
0
 /**
  * Answer true iff this graph is empty. [Used to be in QueryHandler, but moved in here because
  * it's a more primitive operation.]
  */
 public boolean isEmpty() {
   return fdata.getGraph().isEmpty();
 }
Ejemplo n.º 6
0
 /** Return the number of triples in the just the base graph */
 public int graphBaseSize() {
   checkOpen();
   return fdata.getGraph().size();
 }
Ejemplo n.º 7
0
 /**
  * Return the raw RDF data Graph being processed (i.e. the argument to the Reasonder.bind call
  * that created this InfGraph).
  */
 public Graph getRawGraph() {
   return fdata.getGraph();
 }