@Override public void setNamespace(final String prefix, final String namespace) throws SailException { if (prefix == null) // per Sesame TCK behavior throw new NullPointerException(); if (namespace == null) // per Sesame TCK behavior throw new NullPointerException(); assertWritableConn(); // database.addNamespace(namespace,prefix); namespaces.put(prefix, namespace); }
@Override public void setNamespace(final String prefix, final String namespace) throws SailException { if (prefix == null) // per Sesame TCK behavior throw new NullPointerException(); if (namespace == null) // per Sesame TCK behavior throw new NullPointerException(); assertWritableConn(); // database.addNamespace(namespace,prefix); namespaces.put(prefix, namespace); }
throw new IllegalStateException("Rollback required"); assertWritableConn();
final Value o, final Resource c) throws SailException { assertWritableConn();
final int numStmts) throws SailException { assertWritableConn();
throws SailException { assertWritableConn();
throws SailException { assertWritableConn();
public synchronized int removeStatements(final SPOPredicate[] preds, final int numPreds) throws SailException { assertWritableConn();
public synchronized int removeStatements(final SPOPredicate[] preds, final int numPreds) throws SailException { assertWritableConn();
log.info("contexts=" + Arrays.toString(contexts)); assertWritableConn();
throw new IllegalStateException("Rollback required"); assertWritableConn();
log.info("contexts=" + Arrays.toString(contexts)); assertWritableConn();
/** * Computes the closure of the triple store for RDF(S)+ entailments. * <p> * This computes the closure of the database. This can be used if you do * NOT enable truth maintenance and choose instead to load up all of * your data first and then compute the closure of the database. Note * that some rules may be computed by eager closure while others are * computed at query time. * <p> * Note: If there are already entailments in the database AND you have * retracted statements since the last time the closure was computed * then you MUST delete all entailments from the database before * re-computing the closure. * <p> * Note: This method does NOT commit the database. See * {@link AbstractTripleStore#commit()} and {@link #getTripleStore()}. * * @see #removeAllEntailments() */ public synchronized void computeClosure() throws SailException { assertWritableConn(); flushStatementBuffers(true/* assertions */, true/* retractions */); database.getInferenceEngine().computeClosure(null/* focusStore */); }
/** * Computes the closure of the triple store for RDF(S)+ entailments. * <p> * This computes the closure of the database. This can be used if you do * NOT enable truth maintenance and choose instead to load up all of * your data first and then compute the closure of the database. Note * that some rules may be computed by eager closure while others are * computed at query time. * <p> * Note: If there are already entailments in the database AND you have * retracted statements since the last time the closure was computed * then you MUST delete all entailments from the database before * re-computing the closure. * <p> * Note: This method does NOT commit the database. See * {@link AbstractTripleStore#commit()} and {@link #getTripleStore()}. * * @see #removeAllEntailments() */ public synchronized void computeClosure() throws SailException { assertWritableConn(); flushStatementBuffers(true/* assertions */, true/* retractions */); database.getInferenceEngine().computeClosure(null/* focusStore */); }
/** * Removes all "inferred" statements from the database and the proof * chains (if any) associated with those inferences (does NOT commit the * database). */ public synchronized void removeAllEntailments() throws SailException { assertWritableConn(); flushStatementBuffers(true/* assertions */, true/* retractions */); if (quads) { // quads materalized inferences not supported yet. throw new UnsupportedOperationException(); } @SuppressWarnings("rawtypes") final IV NULL = null; database .getAccessPath(NULL, NULL, NULL, InferredSPOFilter.INSTANCE) .removeAll(); }
/** * Removes all "inferred" statements from the database and the proof * chains (if any) associated with those inferences (does NOT commit the * database). */ public synchronized void removeAllEntailments() throws SailException { assertWritableConn(); flushStatementBuffers(true/* assertions */, true/* retractions */); if (quads) { // quads materalized inferences not supported yet. throw new UnsupportedOperationException(); } @SuppressWarnings("rawtypes") final IV NULL = null; database .getAccessPath(NULL, NULL, NULL, InferredSPOFilter.INSTANCE) .removeAll(); }