/** Free all resources, any further use of this Graph is an error. */ public void close() { if (!closed) { fdata.getGraph().close(); fdata = null; super.close(); } }
/** * 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); }
/** 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); }
/** * 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); }
/** * 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(); }
/** Return the number of triples in the just the base graph */ public int graphBaseSize() { checkOpen(); return fdata.getGraph().size(); }
/** * 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(); }