| Package | Description |
|---|---|
| org.openrdf.sail |
RDF Storage And Inference Layer (RDF Sail): a set of interfaces defining an API
for RDF repositories.
|
| org.openrdf.sail.helpers |
Generic utility classes for RDF Sail implementations.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SailLockedException
Indicates that a SAIL cannot be initialised because the configured persisted
location is locked.
|
class |
SailReadOnlyException
Indicates that the current write operation did not succeed because the SAIL
cannot be written to, it can only be read from.
|
class |
UnknownSailTransactionStateException
Indicates that a SAIL's transaction state (active or inactive) cannot be determined.
|
| Modifier and Type | Method and Description |
|---|---|
CloseableIteration<? extends Resource,SailException> |
SailConnection.getContextIDs()
Returns the set of all unique context identifiers that are used to store
statements.
|
CloseableIteration<? extends Namespace,SailException> |
SailConnection.getNamespaces()
Gets the namespaces relevant to the data contained in this Sail object.
|
CloseableIteration<? extends Statement,SailException> |
SailConnection.getStatements(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts)
Gets all statements from the specified contexts that have a specific
subject, predicate and/or object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
SailConnection.addStatement(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Adds a statement to the store.
|
void |
SailConnection.addStatement(UpdateContext op,
Resource subj,
URI pred,
Value obj,
Resource... contexts)
Adds a statement to the store.
|
void |
SailConnection.begin()
Begins a transaction requiring
SailConnection.commit() or SailConnection.rollback() to
be called to close the transaction. |
void |
SailConnection.clear(Resource... contexts)
Removes all statements from the specified/all contexts.
|
void |
SailConnection.clearNamespaces()
Removes all namespace declarations from the repository.
|
void |
SailConnection.close()
Closes the connection.
|
void |
SailConnection.commit()
Commits any updates that have been performed since the last time
SailConnection.commit() or SailConnection.rollback() was called. |
void |
SailConnection.endUpdate(UpdateContext op)
Indicates that the given
op will not be used in any call
again. |
CloseableIteration<? extends BindingSet,QueryEvaluationException> |
SailConnection.evaluate(TupleExpr tupleExpr,
Dataset dataset,
BindingSet bindings,
boolean includeInferred)
Evaluates the supplied TupleExpr on the data contained in this Sail
object, using the (optional) dataset and supplied bindings as input
parameters.
|
SailConnection |
Sail.getConnection()
Opens a connection on the Sail which can be used to query and update data.
|
NotifyingSailConnection |
NotifyingSail.getConnection()
Opens a connection on the Sail which can be used to query and update data.
|
CloseableIteration<? extends Resource,SailException> |
SailConnection.getContextIDs()
Returns the set of all unique context identifiers that are used to store
statements.
|
String |
SailConnection.getNamespace(String prefix)
Gets the namespace that is associated with the specified prefix, if any.
|
CloseableIteration<? extends Namespace,SailException> |
SailConnection.getNamespaces()
Gets the namespaces relevant to the data contained in this Sail object.
|
CloseableIteration<? extends Statement,SailException> |
SailConnection.getStatements(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts)
Gets all statements from the specified contexts that have a specific
subject, predicate and/or object.
|
void |
Sail.initialize()
Initializes the Sail.
|
boolean |
SailConnection.isOpen()
Checks whether this SailConnection is open.
|
boolean |
Sail.isWritable()
Checks whether this Sail object is writable, i.e.
|
void |
SailConnection.prepare()
Checks for an error state in the active transaction that would force the
transaction to be rolled back.
|
void |
SailConnection.removeNamespace(String prefix)
Removes a namespace declaration by removing the association between a
prefix and a namespace name.
|
void |
SailConnection.removeStatement(UpdateContext op,
Resource subj,
URI pred,
Value obj,
Resource... contexts)
Removes all statements matching the specified subject, predicate and
object from the repository.
|
void |
SailConnection.removeStatements(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Removes all statements matching the specified subject, predicate and
object from the repository.
|
void |
SailConnection.rollback()
Rolls back the transaction, discarding any uncommitted changes that have
been made in this SailConnection.
|
void |
SailConnection.setNamespace(String prefix,
String name)
Sets the prefix for a namespace.
|
void |
Sail.shutDown()
Shuts down the Sail, giving it the opportunity to synchronize any stale
data.
|
long |
SailConnection.size(Resource... contexts)
Returns the number of (explicit) statements in the store, or in specific
contexts.
|
void |
SailConnection.startUpdate(UpdateContext op)
Signals the start of an update operation.
|
| Modifier and Type | Method and Description |
|---|---|
CloseableIteration<? extends Resource,SailException> |
SailConnectionWrapper.getContextIDs() |
CloseableIteration<? extends Resource,SailException> |
SailConnectionBase.getContextIDs() |
protected abstract CloseableIteration<? extends Resource,SailException> |
SailConnectionBase.getContextIDsInternal() |
CloseableIteration<? extends Namespace,SailException> |
SailConnectionWrapper.getNamespaces() |
CloseableIteration<? extends Namespace,SailException> |
SailConnectionBase.getNamespaces() |
protected abstract CloseableIteration<? extends Namespace,SailException> |
SailConnectionBase.getNamespacesInternal() |
CloseableIteration<? extends Statement,SailException> |
SailConnectionWrapper.getStatements(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
CloseableIteration<? extends Statement,SailException> |
SailConnectionBase.getStatements(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
protected abstract CloseableIteration<? extends Statement,SailException> |
SailConnectionBase.getStatementsInternal(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
| Modifier and Type | Method and Description |
|---|---|
void |
SailConnectionWrapper.addStatement(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
void |
SailConnectionBase.addStatement(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
void |
SailConnectionWrapper.addStatement(UpdateContext modify,
Resource subj,
URI pred,
Value obj,
Resource... contexts) |
void |
SailConnectionBase.addStatement(UpdateContext op,
Resource subj,
URI pred,
Value obj,
Resource... contexts)
The default implementation buffers added statements until the update
operation is complete.
|
protected abstract void |
SailConnectionBase.addStatementInternal(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
protected void |
SailConnectionBase.autoStartTransaction()
Deprecated.
since 2.7.0. Use
SailConnectionBase.verifyIsActive() instead. We should
not automatically start a transaction at the sail level.
Instead, an exception should be thrown when an update is
executed without first starting a transaction. |
void |
SailConnectionWrapper.begin() |
void |
SailConnectionBase.begin() |
void |
SailConnectionWrapper.clear(Resource... contexts) |
void |
SailConnectionBase.clear(Resource... contexts) |
protected abstract void |
SailConnectionBase.clearInternal(Resource... contexts) |
void |
SailConnectionWrapper.clearNamespaces() |
void |
SailConnectionBase.clearNamespaces() |
protected abstract void |
SailConnectionBase.clearNamespacesInternal() |
void |
SailConnectionWrapper.close() |
void |
SailConnectionBase.close() |
protected abstract void |
SailConnectionBase.closeInternal() |
void |
SailConnectionWrapper.commit() |
void |
SailConnectionBase.commit() |
protected abstract void |
SailConnectionBase.commitInternal() |
void |
SailConnectionWrapper.endUpdate(UpdateContext modify) |
void |
SailConnectionBase.endUpdate(UpdateContext op) |
CloseableIteration<? extends BindingSet,QueryEvaluationException> |
SailConnectionWrapper.evaluate(TupleExpr tupleExpr,
Dataset dataset,
BindingSet bindings,
boolean includeInferred) |
CloseableIteration<? extends BindingSet,QueryEvaluationException> |
SailConnectionBase.evaluate(TupleExpr tupleExpr,
Dataset dataset,
BindingSet bindings,
boolean includeInferred) |
protected abstract CloseableIteration<? extends BindingSet,QueryEvaluationException> |
SailConnectionBase.evaluateInternal(TupleExpr tupleExpr,
Dataset dataset,
BindingSet bindings,
boolean includeInferred) |
SailConnection |
SailWrapper.getConnection() |
SailConnection |
SailBase.getConnection() |
NotifyingSailConnection |
NotifyingSailWrapper.getConnection() |
NotifyingSailConnection |
NotifyingSailBase.getConnection() |
protected abstract SailConnection |
SailBase.getConnectionInternal()
Returns a store-specific SailConnection object.
|
protected abstract NotifyingSailConnection |
NotifyingSailBase.getConnectionInternal() |
CloseableIteration<? extends Resource,SailException> |
SailConnectionWrapper.getContextIDs() |
CloseableIteration<? extends Resource,SailException> |
SailConnectionBase.getContextIDs() |
protected abstract CloseableIteration<? extends Resource,SailException> |
SailConnectionBase.getContextIDsInternal() |
protected Lock |
SailConnectionBase.getExclusiveConnectionLock()
Deprecated.
Use
SailConnectionBase.connectionLock directly instead. |
String |
SailConnectionWrapper.getNamespace(String prefix) |
String |
SailConnectionBase.getNamespace(String prefix) |
protected abstract String |
SailConnectionBase.getNamespaceInternal(String prefix) |
CloseableIteration<? extends Namespace,SailException> |
SailConnectionWrapper.getNamespaces() |
CloseableIteration<? extends Namespace,SailException> |
SailConnectionBase.getNamespaces() |
protected abstract CloseableIteration<? extends Namespace,SailException> |
SailConnectionBase.getNamespacesInternal() |
protected Lock |
SailConnectionBase.getSharedConnectionLock()
Deprecated.
Use
SailConnectionBase.connectionLock directly instead. |
CloseableIteration<? extends Statement,SailException> |
SailConnectionWrapper.getStatements(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
CloseableIteration<? extends Statement,SailException> |
SailConnectionBase.getStatements(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
protected abstract CloseableIteration<? extends Statement,SailException> |
SailConnectionBase.getStatementsInternal(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
protected Lock |
SailConnectionBase.getTransactionLock()
Deprecated.
Use
SailConnectionBase.updateLock directly instead. |
void |
SailWrapper.initialize() |
void |
SailBase.initialize() |
protected void |
SailBase.initializeInternal()
Do store-specific operations to initialize the store.
|
boolean |
SailConnectionWrapper.isOpen() |
boolean |
SailConnectionBase.isOpen() |
boolean |
SailWrapper.isWritable() |
void |
SailConnectionWrapper.prepare() |
void |
SailConnectionBase.prepare() |
void |
SailConnectionWrapper.removeNamespace(String prefix) |
void |
SailConnectionBase.removeNamespace(String prefix) |
protected abstract void |
SailConnectionBase.removeNamespaceInternal(String prefix) |
void |
SailConnectionWrapper.removeStatement(UpdateContext modify,
Resource subj,
URI pred,
Value obj,
Resource... contexts) |
void |
SailConnectionBase.removeStatement(UpdateContext op,
Resource subj,
URI pred,
Value obj,
Resource... contexts)
The default implementation buffers removed statements until the update
operation is complete.
|
void |
SailConnectionWrapper.removeStatements(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
void |
SailConnectionBase.removeStatements(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
protected abstract void |
SailConnectionBase.removeStatementsInternal(Resource subj,
URI pred,
Value obj,
Resource... contexts) |
void |
SailConnectionWrapper.rollback() |
void |
SailConnectionBase.rollback() |
protected abstract void |
SailConnectionBase.rollbackInternal() |
void |
SailConnectionWrapper.setNamespace(String prefix,
String name) |
void |
SailConnectionBase.setNamespace(String prefix,
String name) |
protected abstract void |
SailConnectionBase.setNamespaceInternal(String prefix,
String name) |
void |
SailWrapper.shutDown() |
void |
SailBase.shutDown() |
protected abstract void |
SailBase.shutDownInternal()
Do store-specific operations to ensure proper shutdown of the store.
|
long |
SailConnectionWrapper.size(Resource... contexts) |
long |
SailConnectionBase.size(Resource... contexts) |
long |
SailConnectionWrapper.size(Resource context) |
protected abstract long |
SailConnectionBase.sizeInternal(Resource... contexts) |
protected abstract void |
SailConnectionBase.startTransactionInternal() |
void |
SailConnectionWrapper.startUpdate(UpdateContext modify) |
void |
SailConnectionBase.startUpdate(UpdateContext op) |
protected void |
SailConnectionBase.verifyIsActive()
Verifies if a transaction is currently active.
|
protected void |
SailConnectionBase.verifyIsOpen() |
Copyright © 2001-2014 Aduna. All Rights Reserved.