| Package | Description |
|---|---|
| org.eclipse.rdf4j.sail |
RDF Storage And Inference Layer (RDF Sail): a set of interfaces defining an API
for RDF repositories.
|
| org.eclipse.rdf4j.sail.helpers |
Generic utility classes for RDF Sail implementations.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SailConflictException
An exception thrown by some methods in Sail to indicate that a requested isolation level could not be
fulfilled.
|
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,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts)
Gets all statements from the specified contexts that have a specific subject, predicate and/or object.
|
default CloseableIteration<? extends Statement,SailException> |
SailConnection.getStatements(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts)
Deprecated.
since 4.0. Use
SailConnection.getStatements(Resource, IRI, Value, boolean, Resource...) instead. |
| Modifier and Type | Method and Description |
|---|---|
void |
SailConnection.addStatement(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Adds a statement to the store.
|
default void |
SailConnection.addStatement(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
since 4.0. Use
SailConnection.addStatement(Resource, IRI, Value, Resource...) instead. |
void |
SailConnection.addStatement(UpdateContext op,
Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Adds a statement to the store.
|
default void |
SailConnection.addStatement(UpdateContext op,
Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
since 4.0. Use
SailConnection.addStatement(UpdateContext, Resource, IRI, Value, Resource...)
instead. |
void |
SailConnection.begin()
Begins a transaction requiring
SailConnection.commit() or SailConnection.rollback() to be called to close the
transaction. |
void |
SailConnection.begin(IsolationLevel level)
Begins a transaction with the specified
IsolationLevel level, 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.
|
void |
SailConnection.flush()
Flushes any pending updates and notify changes to listeners as appropriate.
|
NotifyingSailConnection |
NotifyingSail.getConnection()
Opens a connection on the Sail which can be used to query and update data.
|
SailConnection |
Sail.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,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts)
Gets all statements from the specified contexts that have a specific subject, predicate and/or object.
|
default CloseableIteration<? extends Statement,SailException> |
SailConnection.getStatements(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts)
Deprecated.
since 4.0. Use
SailConnection.getStatements(Resource, IRI, Value, boolean, Resource...) instead. |
default boolean |
SailConnection.hasStatement(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts)
Determines if the store contains any 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,
IRI pred,
Value obj,
Resource... contexts)
Removes all statements matching the specified subject, predicate and object from the repository.
|
default void |
SailConnection.removeStatement(UpdateContext op,
Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
since 4.0. USe
SailConnection.removeStatement(UpdateContext, Resource, IRI, Value, Resource...)
instead. |
void |
SailConnection.removeStatements(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Removes all statements matching the specified subject, predicate and object from the repository.
|
default void |
SailConnection.removeStatements(Resource subj,
URI pred,
Value obj,
Resource... contexts)
Deprecated.
since 4.0. Use
SailConnection.removeStatements(Resource, IRI, Value, Resource...) instead. |
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> |
AbstractSailConnection.getContextIDs() |
CloseableIteration<? extends Resource,SailException> |
SailConnectionWrapper.getContextIDs() |
protected abstract CloseableIteration<? extends Resource,SailException> |
AbstractSailConnection.getContextIDsInternal() |
CloseableIteration<? extends Namespace,SailException> |
AbstractSailConnection.getNamespaces() |
CloseableIteration<? extends Namespace,SailException> |
SailConnectionWrapper.getNamespaces() |
protected abstract CloseableIteration<? extends Namespace,SailException> |
AbstractSailConnection.getNamespacesInternal() |
CloseableIteration<? extends Statement,SailException> |
AbstractSailConnection.getStatements(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
CloseableIteration<? extends Statement,SailException> |
SailConnectionWrapper.getStatements(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
protected abstract CloseableIteration<? extends Statement,SailException> |
AbstractSailConnection.getStatementsInternal(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractSailConnection.addStatement(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
void |
SailConnectionWrapper.addStatement(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
void |
AbstractSailConnection.addStatement(UpdateContext op,
Resource subj,
IRI pred,
Value obj,
Resource... contexts)
The default implementation buffers added statements until the update operation is complete.
|
void |
SailConnectionWrapper.addStatement(UpdateContext modify,
Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
protected abstract void |
AbstractSailConnection.addStatementInternal(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
protected void |
AbstractSailConnection.autoStartTransaction()
Deprecated.
since 2.7.0. Use
AbstractSailConnection.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 |
AbstractSailConnection.begin() |
void |
SailConnectionWrapper.begin() |
void |
AbstractSailConnection.begin(IsolationLevel level) |
void |
SailConnectionWrapper.begin(IsolationLevel level) |
void |
AbstractSailConnection.clear(Resource... contexts) |
void |
SailConnectionWrapper.clear(Resource... contexts) |
protected abstract void |
AbstractSailConnection.clearInternal(Resource... contexts) |
void |
AbstractSailConnection.clearNamespaces() |
void |
SailConnectionWrapper.clearNamespaces() |
protected abstract void |
AbstractSailConnection.clearNamespacesInternal() |
void |
AbstractSailConnection.close() |
void |
SailConnectionWrapper.close() |
protected abstract void |
AbstractSailConnection.closeInternal() |
void |
AbstractSailConnection.commit() |
void |
SailConnectionWrapper.commit() |
protected abstract void |
AbstractSailConnection.commitInternal() |
void |
AbstractSailConnection.endUpdate(UpdateContext op) |
void |
SailConnectionWrapper.endUpdate(UpdateContext modify) |
protected void |
AbstractSailConnection.endUpdateInternal(UpdateContext op) |
CloseableIteration<? extends BindingSet,QueryEvaluationException> |
AbstractSailConnection.evaluate(TupleExpr tupleExpr,
Dataset dataset,
BindingSet bindings,
boolean includeInferred) |
CloseableIteration<? extends BindingSet,QueryEvaluationException> |
SailConnectionWrapper.evaluate(TupleExpr tupleExpr,
Dataset dataset,
BindingSet bindings,
boolean includeInferred) |
protected abstract CloseableIteration<? extends BindingSet,QueryEvaluationException> |
AbstractSailConnection.evaluateInternal(TupleExpr tupleExpr,
Dataset dataset,
BindingSet bindings,
boolean includeInferred) |
void |
AbstractSailConnection.flush() |
void |
SailConnectionWrapper.flush() |
NotifyingSailConnection |
NotifyingSailWrapper.getConnection() |
SailConnection |
SailWrapper.getConnection() |
SailConnection |
AbstractSail.getConnection() |
NotifyingSailConnection |
AbstractNotifyingSail.getConnection() |
protected abstract SailConnection |
AbstractSail.getConnectionInternal()
Returns a store-specific SailConnection object.
|
protected abstract NotifyingSailConnection |
AbstractNotifyingSail.getConnectionInternal() |
CloseableIteration<? extends Resource,SailException> |
AbstractSailConnection.getContextIDs() |
CloseableIteration<? extends Resource,SailException> |
SailConnectionWrapper.getContextIDs() |
protected abstract CloseableIteration<? extends Resource,SailException> |
AbstractSailConnection.getContextIDsInternal() |
protected Lock |
AbstractSailConnection.getExclusiveConnectionLock()
Deprecated.
Use
AbstractSailConnection.connectionLock directly instead. |
String |
AbstractSailConnection.getNamespace(String prefix) |
String |
SailConnectionWrapper.getNamespace(String prefix) |
protected abstract String |
AbstractSailConnection.getNamespaceInternal(String prefix) |
CloseableIteration<? extends Namespace,SailException> |
AbstractSailConnection.getNamespaces() |
CloseableIteration<? extends Namespace,SailException> |
SailConnectionWrapper.getNamespaces() |
protected abstract CloseableIteration<? extends Namespace,SailException> |
AbstractSailConnection.getNamespacesInternal() |
protected Lock |
AbstractSailConnection.getSharedConnectionLock()
Deprecated.
Use
AbstractSailConnection.connectionLock directly instead. |
CloseableIteration<? extends Statement,SailException> |
AbstractSailConnection.getStatements(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
CloseableIteration<? extends Statement,SailException> |
SailConnectionWrapper.getStatements(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
protected abstract CloseableIteration<? extends Statement,SailException> |
AbstractSailConnection.getStatementsInternal(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
protected Lock |
AbstractSailConnection.getTransactionLock()
Deprecated.
Use
AbstractSailConnection.updateLock directly instead. |
void |
SailWrapper.initialize() |
void |
AbstractSail.initialize() |
protected void |
AbstractSail.initializeInternal()
Do store-specific operations to initialize the store.
|
boolean |
AbstractSailConnection.isOpen() |
boolean |
SailConnectionWrapper.isOpen() |
boolean |
SailWrapper.isWritable() |
void |
AbstractSailConnection.prepare() |
void |
SailConnectionWrapper.prepare() |
protected void |
AbstractSailConnection.prepareInternal() |
void |
AbstractSailConnection.removeNamespace(String prefix) |
void |
SailConnectionWrapper.removeNamespace(String prefix) |
protected abstract void |
AbstractSailConnection.removeNamespaceInternal(String prefix) |
void |
AbstractSailConnection.removeStatement(UpdateContext op,
Resource subj,
IRI pred,
Value obj,
Resource... contexts)
The default implementation buffers removed statements until the update operation is complete.
|
void |
SailConnectionWrapper.removeStatement(UpdateContext modify,
Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
void |
AbstractSailConnection.removeStatements(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
void |
SailConnectionWrapper.removeStatements(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
protected abstract void |
AbstractSailConnection.removeStatementsInternal(Resource subj,
IRI pred,
Value obj,
Resource... contexts) |
void |
AbstractSailConnection.rollback() |
void |
SailConnectionWrapper.rollback() |
protected abstract void |
AbstractSailConnection.rollbackInternal() |
void |
AbstractSailConnection.setNamespace(String prefix,
String name) |
void |
SailConnectionWrapper.setNamespace(String prefix,
String name) |
protected abstract void |
AbstractSailConnection.setNamespaceInternal(String prefix,
String name) |
void |
SailWrapper.shutDown() |
void |
AbstractSail.shutDown() |
protected abstract void |
AbstractSail.shutDownInternal()
Do store-specific operations to ensure proper shutdown of the store.
|
long |
AbstractSailConnection.size(Resource... contexts) |
long |
SailConnectionWrapper.size(Resource... contexts) |
long |
SailConnectionWrapper.size(Resource context) |
protected abstract long |
AbstractSailConnection.sizeInternal(Resource... contexts) |
protected abstract void |
AbstractSailConnection.startTransactionInternal() |
void |
AbstractSailConnection.startUpdate(UpdateContext op) |
void |
SailConnectionWrapper.startUpdate(UpdateContext modify) |
protected void |
AbstractSailConnection.verifyIsActive()
Verifies if a transaction is currently active.
|
protected void |
AbstractSailConnection.verifyIsOpen() |
Copyright © 2015-2016 Eclipse Foundation. All Rights Reserved.