/** * Return <code>true</code> if the connection does not permit mutation. */ public final boolean isReadOnly() { return getSailConnection().isReadOnly(); }
/** * Set the change log on the SAIL connection. See {@link IChangeLog} and * {@link IChangeRecord}. * * @param log * the change log */ public void addChangeLog(final IChangeLog log) { getSailConnection().addChangeLog(log); }
/** * Return <code>true</code> if this is the {@link ITx#UNISOLATED} * connection. */ public final boolean isUnisolated() { return getSailConnection().isUnisolated(); }
/** * Return <code>true</code> if the connection does not permit mutation. */ public final boolean isReadOnly() { return getSailConnection().isReadOnly(); }
/** * Remove a change log from the SAIL connection. See {@link IChangeLog} and * {@link IChangeRecord}. * * @param log * the change log */ public void removeChangeLog(final IChangeLog log) { getSailConnection().removeChangeLog(log); }
/** * Remove a change log from the SAIL connection. See {@link IChangeLog} and * {@link IChangeRecord}. * * @param log * the change log */ public void removeChangeLog(final IChangeLog log) { getSailConnection().removeChangeLog(log); }
/** * Return <code>true</code> if this is the {@link ITx#UNISOLATED} * connection. */ public final boolean isUnisolated() { return getSailConnection().isUnisolated(); }
/** * Return the backing {@link AbstractTripleStore} object. Caution MUST be * used when accessing this object as the access goes around the SAIL API. */ public AbstractTripleStore getTripleStore() { return ((BigdataSailConnection) getSailConnection()).getTripleStore(); }
/** * Set the change log on the SAIL connection. See {@link IChangeLog} and * {@link IChangeRecord}. * * @param log * the change log */ public void addChangeLog(final IChangeLog log) { getSailConnection().addChangeLog(log); }
/** * Return the backing {@link AbstractTripleStore} object. Caution MUST be * used when accessing this object as the access goes around the SAIL API. */ public AbstractTripleStore getTripleStore() { return ((BigdataSailConnection) getSailConnection()).getTripleStore(); }
private static PipelineOp convertDisableEntailments(PipelineOp left, AST2BOpUpdateContext context) { if (log.isDebugEnabled()) { log.debug("Going to disable truth maintenance"); } if (context.conn.getSailConnection().isTruthMaintenanceConfigured()) { context.conn.getSailConnection().setTruthMaintenance(false); } else { log.debug("Truth maintenance is not configured"); } if (log.isDebugEnabled()) { log.debug("truthMaintenance = " + context.conn.getSailConnection().getTruthMaintenance()); } return left; }
private static PipelineOp convertEnableEntailments(PipelineOp left, AST2BOpUpdateContext context) { if (log.isDebugEnabled()) { log.debug("Going to enable truth maintenance"); } if (context.conn.getSailConnection().isTruthMaintenanceConfigured()) { context.conn.getSailConnection().setTruthMaintenance(true); } else { log.debug("Truth maintenance is not configured"); } if (log.isDebugEnabled()) { log.debug("truthMaintenance = " + context.conn.getSailConnection().getTruthMaintenance()); } return left; }
private static PipelineOp convertDisableEntailments(PipelineOp left, AST2BOpUpdateContext context) { if (log.isDebugEnabled()) { log.debug("Going to disable truth maintenance"); } if (context.conn.getSailConnection().isTruthMaintenanceConfigured()) { context.conn.getSailConnection().setTruthMaintenance(false); } else { log.debug("Truth maintenance is not configured"); } if (log.isDebugEnabled()) { log.debug("truthMaintenance = " + context.conn.getSailConnection().getTruthMaintenance()); } return left; }
private static PipelineOp convertDropEntailments(final PipelineOp left, final AST2BOpUpdateContext context) throws SailException { long stmtCount = 0; if (log.isDebugEnabled()) { stmtCount = context.conn.getSailConnection().getTripleStore().getStatementCount(true); log.info("begin drop entailments"); } context.conn.getSailConnection().removeAllEntailments(); if (log.isDebugEnabled()) { long removedCount = stmtCount - context.conn.getSailConnection().getTripleStore().getStatementCount(true); log.debug("Removed statements = " + removedCount); } return left; }
private static PipelineOp convertCreateEntailments(PipelineOp left, AST2BOpUpdateContext context) throws SailException { long stmtCount = 0; if (log.isDebugEnabled()) { stmtCount = context.conn.getSailConnection().getTripleStore().getStatementCount(true); log.info("begin compute closure"); } context.conn.getSailConnection().computeClosure(); if (log.isDebugEnabled()) { long inferredCount = context.conn.getSailConnection().getTripleStore().getStatementCount(true) - stmtCount; log.debug("Inferred statements = " + inferredCount); } return left; }
private static PipelineOp convertDropEntailments(final PipelineOp left, final AST2BOpUpdateContext context) throws SailException { long stmtCount = 0; if (log.isDebugEnabled()) { stmtCount = context.conn.getSailConnection().getTripleStore().getStatementCount(true); log.info("begin drop entailments"); } context.conn.getSailConnection().removeAllEntailments(); if (log.isDebugEnabled()) { long removedCount = stmtCount - context.conn.getSailConnection().getTripleStore().getStatementCount(true); log.debug("Removed statements = " + removedCount); } return left; }
private static PipelineOp convertCreateEntailments(PipelineOp left, AST2BOpUpdateContext context) throws SailException { long stmtCount = 0; if (log.isDebugEnabled()) { stmtCount = context.conn.getSailConnection().getTripleStore().getStatementCount(true); log.info("begin compute closure"); } context.conn.getSailConnection().computeClosure(); if (log.isDebugEnabled()) { long inferredCount = context.conn.getSailConnection().getTripleStore().getStatementCount(true) - stmtCount; log.debug("Inferred statements = " + inferredCount); } return left; }
/** * Removes all "inferred" statements from the database (does NOT commit the * database). * * @throws RepositoryException */ public void removeAllEntailments() throws SailException, RepositoryException { try { ((BigdataSailConnection) getSailConnection()) .removeAllEntailments(); } catch (Exception ex) { throw new RepositoryException(ex); } }
/** * @param astContainer * @param db * * @throws SailException */ public AST2BOpUpdateContext(final ASTContainer astContainer, final BigdataSailRepositoryConnection conn) throws SailException { super(astContainer, conn.getTripleStore()); this.conn = conn; this.sail = conn.getSailConnection().getBigdataSail(); this.f = (BigdataValueFactory) sail.getValueFactory(); }
/** * @param astContainer * @param db * * @throws SailException */ public AST2BOpUpdateContext(final ASTContainer astContainer, final BigdataSailRepositoryConnection conn) throws SailException { super(astContainer, conn.getTripleStore()); this.conn = conn; this.sail = conn.getSailConnection().getBigdataSail(); this.f = (BigdataValueFactory) sail.getValueFactory(); }