| Package | Description |
|---|---|
| org.eclipse.rdf4j.repository |
The Repository API: the main API for handling RDF4J repositories.
|
| org.eclipse.rdf4j.repository.base | |
| org.eclipse.rdf4j.repository.config | |
| org.eclipse.rdf4j.repository.util |
| Modifier and Type | Class and Description |
|---|---|
class |
RepositoryLockedException
Indicates that a Repository cannot be initialised because the configured persisted location is locked.
|
class |
RepositoryReadOnlyException
Indicates that the current write operation did not succeed because the SAIL cannot be written to, it can
only be read from.
|
class |
UnknownTransactionStateException
A specific subtype of
RepositoryException that indicates the connection's transaction state can not
be determined. |
| Modifier and Type | Method and Description |
|---|---|
void |
RepositoryConnection.add(File file,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
Adds RDF data from the specified file to a specific contexts in the repository.
|
void |
RepositoryConnection.add(InputStream in,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
Adds RDF data from an InputStream to the repository, optionally to one or more named contexts.
|
void |
RepositoryConnection.add(Iterable<? extends Statement> statements,
Resource... contexts)
Adds the supplied statements to this repository, optionally to one or more named contexts.
|
<E extends Exception> |
RepositoryConnection.add(Iteration<? extends Statement,E> statements,
Resource... contexts)
Adds the supplied statements to this repository, optionally to one or more named contexts.
|
void |
RepositoryConnection.add(Reader reader,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
Adds RDF data from a Reader to the repository, optionally to one or more named contexts.
|
void |
RepositoryConnection.add(Resource subject,
IRI predicate,
Value object,
Resource... contexts)
Adds a statement with the specified subject, predicate and object to this repository, optionally to one
or more named contexts.
|
default void |
RepositoryConnection.add(Resource subject,
URI predicate,
Value object,
Resource... contexts)
Deprecated.
since 4.0. Use
RepositoryConnection.add(Resource, IRI, Value, Resource...) instead. |
void |
RepositoryConnection.add(Statement st,
Resource... contexts)
Adds the supplied statement to this repository, optionally to one or more named contexts.
|
void |
RepositoryConnection.add(URL url,
String baseURI,
RDFFormat dataFormat,
Resource... contexts)
Adds the RDF data that can be found at the specified URL to the repository, optionally to one or more
named contexts.
|
<C extends Collection<T>> |
RepositoryResult.addTo(C collection)
Deprecated.
Use
Iterations.addAll(Iteration, Collection) instead. |
List<T> |
RepositoryResult.asList()
Deprecated.
Use
Iterations.asList(Iteration) instead. |
void |
RepositoryConnection.begin()
Begins a new transaction, requiring
RepositoryConnection.commit() or RepositoryConnection.rollback() to be called to end the
transaction. |
void |
RepositoryConnection.begin(IsolationLevel level)
Begins a new transaction with the supplied
IsolationLevel, requiring RepositoryConnection.commit() or
RepositoryConnection.rollback() to be called to end the transaction. |
void |
RepositoryConnection.clear(Resource... contexts)
Removes all statements from a specific contexts in the repository.
|
void |
RepositoryConnection.clearNamespaces()
Removes all namespace declarations from the repository.
|
default void |
RepositoryConnection.close()
Closes the connection, freeing resources.
|
void |
RepositoryConnection.commit()
Commits the active transaction.
|
void |
RepositoryResult.enableDuplicateFilter()
Switches on duplicate filtering while iterating over objects.
|
void |
RepositoryConnection.export(RDFHandler handler,
Resource... contexts)
Exports all explicit statements in the specified contexts to the supplied RDFHandler.
|
void |
RepositoryConnection.exportStatements(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
RDFHandler handler,
Resource... contexts)
Exports all statements with a specific subject, predicate and/or object from the repository, optionally
from the specified contexts.
|
RepositoryConnection |
Repository.getConnection()
Opens a connection to this repository that can be used for querying and updating the contents of the
repository.
|
RepositoryResult<Resource> |
RepositoryConnection.getContextIDs()
Gets all resources that are used as content identifiers.
|
RepositoryConnection |
DelegatingRepositoryConnection.getDelegate() |
String |
RepositoryConnection.getNamespace(String prefix)
Gets the namespace that is associated with the specified prefix, if any.
|
RepositoryResult<Namespace> |
RepositoryConnection.getNamespaces()
Gets all declared namespaces as a RepositoryResult of
Namespace objects. |
Repository |
RepositoryResolver.getRepository(String memberID) |
RepositoryResult<Statement> |
RepositoryConnection.getStatements(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts)
Gets all statements with a specific subject, predicate and/or object from the repository.
|
default RepositoryResult<Statement> |
RepositoryConnection.getStatements(Resource subj,
IRI pred,
Value obj,
Resource... contexts)
Gets all statements with a specific subject, predicate and/or object from the repository.
|
default RepositoryResult<Statement> |
RepositoryConnection.getStatements(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts)
Deprecated.
since 4.0. Use
RepositoryConnection.getStatements(Resource, IRI, Value, boolean, Resource...) instead. |
protected void |
RepositoryResult.handleClose() |
boolean |
RepositoryResult.hasNext() |
boolean |
RepositoryConnection.hasStatement(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts)
Checks whether the repository contains statements with a specific subject, predicate and/or object,
optionally in the specified contexts.
|
default boolean |
RepositoryConnection.hasStatement(Resource subj,
URI pred,
Value obj,
boolean includeInferred,
Resource... contexts)
Deprecated.
since 4.0. Use
RepositoryConnection.hasStatement(Resource, IRI, Value, boolean, Resource...) instead. |
boolean |
RepositoryConnection.hasStatement(Statement st,
boolean includeInferred,
Resource... contexts)
Checks whether the repository contains the specified statement, optionally in the specified contexts.
|
void |
Repository.initialize()
Initializes this repository.
|
boolean |
RepositoryConnection.isActive()
Indicates if a transaction is currently active on the connection.
|
boolean |
RepositoryConnection.isAutoCommit()
Deprecated.
since release 2.7.0. Use
RepositoryConnection.isActive() instead. |
boolean |
RepositoryConnection.isEmpty()
Returns true if this repository does not contain any (explicit) statements.
|
boolean |
RepositoryConnection.isOpen()
Checks whether this connection is open.
|
boolean |
Repository.isWritable()
Checks whether this repository is writable, i.e.
|
T |
RepositoryResult.next() |
BooleanQuery |
RepositoryConnection.prepareBooleanQuery(QueryLanguage ql,
String query)
Prepares queries that return true or false.
|
BooleanQuery |
RepositoryConnection.prepareBooleanQuery(QueryLanguage ql,
String query,
String baseURI)
Prepares queries that return true or false.
|
default BooleanQuery |
RepositoryConnection.prepareBooleanQuery(String query)
Prepares SPARQL queries that return true or false, that is, SPARQL ASK queries.
|
GraphQuery |
RepositoryConnection.prepareGraphQuery(QueryLanguage ql,
String query)
Prepares queries that produce RDF graphs.
|
GraphQuery |
RepositoryConnection.prepareGraphQuery(QueryLanguage ql,
String query,
String baseURI)
Prepares queries that produce RDF graphs.
|
default GraphQuery |
RepositoryConnection.prepareGraphQuery(String query)
Prepares SPARQL queries that produce RDF graphs, that is, SPARQL CONSTRUCT or DESCRIBE queries.
|
Query |
RepositoryConnection.prepareQuery(QueryLanguage ql,
String query)
Prepares a query for evaluation on this repository (optional operation).
|
Query |
RepositoryConnection.prepareQuery(QueryLanguage ql,
String query,
String baseURI)
Prepares a query for evaluation on this repository (optional operation).
|
default Query |
RepositoryConnection.prepareQuery(String query)
Prepares a SPARQL query for evaluation on this repository (optional operation).
|
TupleQuery |
RepositoryConnection.prepareTupleQuery(QueryLanguage ql,
String query)
Prepares a query that produces sets of value tuples.
|
TupleQuery |
RepositoryConnection.prepareTupleQuery(QueryLanguage ql,
String query,
String baseURI)
Prepares a query that produces sets of value tuples.
|
default TupleQuery |
RepositoryConnection.prepareTupleQuery(String query)
Prepares a SPARQL query that produces sets of value tuples, that is a SPARQL SELECT query.
|
Update |
RepositoryConnection.prepareUpdate(QueryLanguage ql,
String update)
Prepares an Update operation.
|
Update |
RepositoryConnection.prepareUpdate(QueryLanguage ql,
String update,
String baseURI)
Prepares an Update operation.
|
default Update |
RepositoryConnection.prepareUpdate(String update)
Prepares a SPARQL Update operation.
|
void |
RepositoryResult.remove() |
void |
RepositoryConnection.remove(Iterable<? extends Statement> statements,
Resource... contexts)
Removes the supplied statements from the specified contexts in this repository.
|
<E extends Exception> |
RepositoryConnection.remove(Iteration<? extends Statement,E> statements,
Resource... contexts)
Removes the supplied statements from a specific context in this repository, ignoring any context
information carried by the statements themselves.
|
void |
RepositoryConnection.remove(Resource subject,
IRI predicate,
Value object,
Resource... contexts)
Removes the statement(s) with the specified subject, predicate and object from the repository,
optionally restricted to the specified contexts.
|
default void |
RepositoryConnection.remove(Resource subject,
URI predicate,
Value object,
Resource... contexts)
Deprecated.
since 4.0. Use
RepositoryConnection.remove(Resource, IRI, Value, Resource...) instead. |
void |
RepositoryConnection.remove(Statement st,
Resource... contexts)
Removes the supplied statement from the specified contexts in the repository.
|
void |
RepositoryConnection.removeNamespace(String prefix)
Removes a namespace declaration by removing the association between a prefix and a namespace name.
|
void |
RepositoryConnection.rollback()
Rolls back all updates in the active transaction.
|
void |
RepositoryConnection.setAutoCommit(boolean autoCommit)
Deprecated.
As of release 2.7.0, use
RepositoryConnection.begin() instead. |
void |
RepositoryConnection.setNamespace(String prefix,
String name)
Sets the prefix for a namespace.
|
void |
Repository.shutDown()
Shuts the repository down, releasing any resources that it keeps hold of.
|
long |
RepositoryConnection.size(Resource... contexts)
Returns the number of (explicit) statements that are in the specified contexts in this repository.
|
| Constructor and Description |
|---|
RepositoryResult(CloseableIteration<? extends T,RepositoryException> iter) |
| Modifier and Type | Method and Description |
|---|---|
void |
RepositoryConnectionWrapper.add(File file,
String baseURI,
RDFFormat dataFormat,
Resource... contexts) |
void |
AbstractRepositoryConnection.add(File file,
String baseURI,
RDFFormat dataFormat,
Resource... contexts) |
void |
RepositoryConnectionWrapper.add(InputStream in,
String baseURI,
RDFFormat dataFormat,
Resource... contexts) |
void |
AbstractRepositoryConnection.add(InputStream in,
String baseURI,
RDFFormat dataFormat,
Resource... contexts) |
void |
RepositoryConnectionWrapper.add(Iterable<? extends Statement> statements,
Resource... contexts) |
void |
AbstractRepositoryConnection.add(Iterable<? extends Statement> statements,
Resource... contexts) |
<E extends Exception> |
RepositoryConnectionWrapper.add(Iteration<? extends Statement,E> statementIter,
Resource... contexts) |
<E extends Exception> |
AbstractRepositoryConnection.add(Iteration<? extends Statement,E> statements,
Resource... contexts) |
void |
RepositoryConnectionWrapper.add(Reader reader,
String baseURI,
RDFFormat dataFormat,
Resource... contexts) |
void |
AbstractRepositoryConnection.add(Reader reader,
String baseURI,
RDFFormat dataFormat,
Resource... contexts) |
void |
RepositoryConnectionWrapper.add(Resource subject,
IRI predicate,
Value object,
Resource... contexts) |
void |
AbstractRepositoryConnection.add(Resource subject,
IRI predicate,
Value object,
Resource... contexts) |
void |
RepositoryConnectionWrapper.add(Statement st,
Resource... contexts) |
void |
AbstractRepositoryConnection.add(Statement st,
Resource... contexts) |
void |
RepositoryConnectionWrapper.add(URL url,
String baseURI,
RDFFormat dataFormat,
Resource... contexts) |
void |
AbstractRepositoryConnection.add(URL url,
String baseURI,
RDFFormat dataFormat,
Resource... contexts) |
protected void |
RepositoryConnectionWrapper.addWithoutCommit(Resource subject,
IRI predicate,
Value object,
Resource... contexts) |
protected abstract void |
AbstractRepositoryConnection.addWithoutCommit(Resource subject,
IRI predicate,
Value object,
Resource... contexts) |
protected void |
AbstractRepositoryConnection.addWithoutCommit(Statement st,
Resource... contexts) |
void |
RepositoryConnectionWrapper.begin() |
void |
RepositoryConnectionWrapper.begin(IsolationLevel level) |
void |
AbstractRepositoryConnection.begin(IsolationLevel level) |
void |
RepositoryConnectionWrapper.clear(Resource... contexts) |
void |
AbstractRepositoryConnection.clear(Resource... contexts) |
void |
RepositoryConnectionWrapper.clearNamespaces() |
void |
RepositoryConnectionWrapper.close() |
void |
AbstractRepositoryConnection.close() |
void |
RepositoryConnectionWrapper.commit() |
protected void |
AbstractRepositoryConnection.conditionalCommit(boolean condition)
Invokes
RepositoryConnection.commit() if supplied boolean condition is true. |
protected void |
AbstractRepositoryConnection.conditionalRollback(boolean condition)
Invokes
RepositoryConnection.rollback() if supplied boolean condition is true. |
void |
AbstractRepositoryConnection.export(RDFHandler handler,
Resource... contexts) |
protected void |
RepositoryConnectionWrapper.exportStatements(RepositoryResult<Statement> stIter,
RDFHandler handler)
Exports all statements contained in the supplied statement iterator and all relevant namespace
information to the supplied RDFHandler.
|
void |
RepositoryConnectionWrapper.exportStatements(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
RDFHandler handler,
Resource... contexts) |
RepositoryConnection |
RepositoryWrapper.getConnection() |
RepositoryResult<Resource> |
RepositoryConnectionWrapper.getContextIDs() |
String |
RepositoryConnectionWrapper.getNamespace(String prefix) |
RepositoryResult<Namespace> |
RepositoryConnectionWrapper.getNamespaces() |
RepositoryResult<Statement> |
RepositoryConnectionWrapper.getStatements(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
boolean |
RepositoryConnectionWrapper.hasStatement(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
boolean |
AbstractRepositoryConnection.hasStatement(Resource subj,
IRI pred,
Value obj,
boolean includeInferred,
Resource... contexts) |
boolean |
RepositoryConnectionWrapper.hasStatement(Statement st,
boolean includeInferred,
Resource... contexts) |
boolean |
AbstractRepositoryConnection.hasStatement(Statement st,
boolean includeInferred,
Resource... contexts) |
void |
AbstractRepository.initialize() |
void |
RepositoryWrapper.initialize() |
protected abstract void |
AbstractRepository.initializeInternal() |
boolean |
RepositoryConnectionWrapper.isActive() |
boolean |
RepositoryConnectionWrapper.isAutoCommit()
Deprecated.
since release 2.7.0. Use
RepositoryConnectionWrapper.isActive() instead. |
boolean |
AbstractRepositoryConnection.isAutoCommit()
Deprecated.
since 2.7.0. Use
RepositoryConnection.isActive() instead. |
protected boolean |
RepositoryConnectionWrapper.isDelegatingAdd()
If false then the following add methods will call
RepositoryConnectionWrapper.addWithoutCommit(Resource, IRI, Value, Resource[]). |
protected boolean |
RepositoryConnectionWrapper.isDelegatingRead()
If false then the following has/export/isEmpty methods will call
RepositoryConnectionWrapper.getStatements(Resource, IRI, Value, boolean, Resource[]). |
protected boolean |
RepositoryConnectionWrapper.isDelegatingRemove()
If false then the following remove methods will call
RepositoryConnectionWrapper.removeWithoutCommit(Resource, IRI, Value, Resource[]). |
boolean |
RepositoryConnectionWrapper.isEmpty() |
boolean |
AbstractRepositoryConnection.isEmpty() |
boolean |
RepositoryConnectionWrapper.isOpen() |
boolean |
AbstractRepositoryConnection.isOpen() |
boolean |
RepositoryWrapper.isWritable() |
BooleanQuery |
AbstractRepositoryConnection.prepareBooleanQuery(QueryLanguage ql,
String query) |
BooleanQuery |
RepositoryConnectionWrapper.prepareBooleanQuery(QueryLanguage ql,
String query,
String baseURI) |
GraphQuery |
AbstractRepositoryConnection.prepareGraphQuery(QueryLanguage ql,
String query) |
GraphQuery |
RepositoryConnectionWrapper.prepareGraphQuery(QueryLanguage ql,
String query,
String baseURI) |
Query |
AbstractRepositoryConnection.prepareQuery(QueryLanguage ql,
String query) |
Query |
RepositoryConnectionWrapper.prepareQuery(QueryLanguage ql,
String query,
String baseURI) |
TupleQuery |
AbstractRepositoryConnection.prepareTupleQuery(QueryLanguage ql,
String query) |
TupleQuery |
RepositoryConnectionWrapper.prepareTupleQuery(QueryLanguage ql,
String query,
String baseURI) |
Update |
AbstractRepositoryConnection.prepareUpdate(QueryLanguage ql,
String update) |
Update |
RepositoryConnectionWrapper.prepareUpdate(QueryLanguage ql,
String update,
String baseURI) |
void |
RepositoryConnectionWrapper.remove(Iterable<? extends Statement> statements,
Resource... contexts) |
void |
AbstractRepositoryConnection.remove(Iterable<? extends Statement> statements,
Resource... contexts) |
<E extends Exception> |
RepositoryConnectionWrapper.remove(Iteration<? extends Statement,E> statementIter,
Resource... contexts) |
<E extends Exception> |
AbstractRepositoryConnection.remove(Iteration<? extends Statement,E> statements,
Resource... contexts) |
void |
RepositoryConnectionWrapper.remove(Resource subject,
IRI predicate,
Value object,
Resource... contexts) |
void |
AbstractRepositoryConnection.remove(Resource subject,
IRI predicate,
Value object,
Resource... contexts) |
void |
RepositoryConnectionWrapper.remove(Statement st,
Resource... contexts) |
void |
AbstractRepositoryConnection.remove(Statement st,
Resource... contexts) |
void |
RepositoryConnectionWrapper.removeNamespace(String prefix) |
protected void |
RepositoryConnectionWrapper.removeWithoutCommit(Resource subject,
IRI predicate,
Value object,
Resource... contexts) |
protected abstract void |
AbstractRepositoryConnection.removeWithoutCommit(Resource subject,
IRI predicate,
Value object,
Resource... contexts) |
protected void |
AbstractRepositoryConnection.removeWithoutCommit(Statement st,
Resource... contexts) |
void |
RepositoryConnectionWrapper.rollback() |
void |
RepositoryConnectionWrapper.setAutoCommit(boolean autoCommit)
Deprecated.
use
RepositoryConnectionWrapper.begin() instead. |
void |
AbstractRepositoryConnection.setAutoCommit(boolean autoCommit)
Deprecated.
since 2.7.0. Use
RepositoryConnection.begin() instead. |
void |
RepositoryConnectionWrapper.setNamespace(String prefix,
String name) |
void |
AbstractRepository.shutDown() |
void |
RepositoryWrapper.shutDown() |
protected abstract void |
AbstractRepository.shutDownInternal() |
long |
RepositoryConnectionWrapper.size(Resource... contexts) |
protected boolean |
AbstractRepositoryConnection.startLocalTransaction()
Starts a new transaction if one is not already active.
|
| Modifier and Type | Method and Description |
|---|---|
static Resource |
RepositoryConfigUtil.getContext(RepositoryConnection con,
String repositoryID)
Deprecated.
|
static RepositoryConfig |
RepositoryConfigUtil.getRepositoryConfig(Repository repository,
String repositoryID)
Deprecated.
|
static Set<String> |
RepositoryConfigUtil.getRepositoryIDs(Model model) |
static Set<String> |
RepositoryConfigUtil.getRepositoryIDs(Repository repository)
Deprecated.
|
static boolean |
RepositoryConfigUtil.hasRepositoryConfig(Repository repository,
String repositoryID)
Deprecated.
|
static boolean |
RepositoryConfigUtil.removeRepositoryConfigs(Repository repository,
String... repositoryIDs)
Deprecated.
|
static void |
RepositoryConfigUtil.updateRepositoryConfigs(RepositoryConnection con,
RepositoryConfig... configs)
Deprecated.
|
static void |
RepositoryConfigUtil.updateRepositoryConfigs(Repository repository,
RepositoryConfig... configs)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.function.Supplier<RepositoryException> |
Repositories.repositoryException(String message)
Creates a
Supplier of RepositoryException objects that be passed to
Optional.orElseThrow(Supplier) to generate exceptions as necessary. |
| Modifier and Type | Method and Description |
|---|---|
static void |
Repositories.consume(Repository repository,
java.util.function.Consumer<RepositoryConnection> processFunction,
java.util.function.Consumer<RepositoryException> exceptionHandler)
Opens a
RepositoryConnection to the given Repository within a transaction, sends the connection
to the given Consumer, before either rolling back the transaction if it failed, or committing
the transaction if it was successful. |
static void |
Repositories.consumeNoTransaction(Repository repository,
java.util.function.Consumer<RepositoryConnection> processFunction,
java.util.function.Consumer<RepositoryException> exceptionHandler)
Opens a
RepositoryConnection to the given Repository without opening a transaction, sends the
connection to the given Consumer. |
static <T> T |
Repositories.get(Repository repository,
java.util.function.Function<RepositoryConnection,T> processFunction,
java.util.function.Consumer<RepositoryException> exceptionHandler)
Opens a
RepositoryConnection to the given Repository within a transaction, sends the connection
to the given Function, before either rolling back the transaction if it failed, or committing
the transaction if it was successful. |
static <T> T |
Repositories.getNoTransaction(Repository repository,
java.util.function.Function<RepositoryConnection,T> processFunction,
java.util.function.Consumer<RepositoryException> exceptionHandler)
Opens a
RepositoryConnection to the given Repository without opening a transaction, sends the
connection to the given Function. |
| Modifier and Type | Method and Description |
|---|---|
static void |
Repositories.consume(Repository repository,
java.util.function.Consumer<RepositoryConnection> processFunction)
Opens a
RepositoryConnection to the given Repository within a transaction, sends the connection
to the given Consumer, before either rolling back the transaction if it failed, or committing
the transaction if it was successful. |
static void |
Repositories.consume(Repository repository,
java.util.function.Consumer<RepositoryConnection> processFunction,
java.util.function.Consumer<RepositoryException> exceptionHandler)
Opens a
RepositoryConnection to the given Repository within a transaction, sends the connection
to the given Consumer, before either rolling back the transaction if it failed, or committing
the transaction if it was successful. |
static void |
Repositories.consumeNoTransaction(Repository repository,
java.util.function.Consumer<RepositoryConnection> processFunction)
Opens a
RepositoryConnection to the given Repository without opening a transaction, sends the
connection to the given Consumer. |
static void |
Repositories.consumeNoTransaction(Repository repository,
java.util.function.Consumer<RepositoryConnection> processFunction,
java.util.function.Consumer<RepositoryException> exceptionHandler)
Opens a
RepositoryConnection to the given Repository without opening a transaction, sends the
connection to the given Consumer. |
static void |
Connections.consumeRDFCollection(RepositoryConnection conn,
Resource head,
java.util.function.Consumer<Statement> collectionConsumer,
Resource... contexts)
|
static Collection<? extends Statement> |
RepositoryUtil.difference(Repository rep1,
Repository rep2)
Compares two models defined by the default context of two repositories and returns the difference
between the first and the second model (that is, all statements that are present in rep1 but not in
rep2).
|
static boolean |
RepositoryUtil.equals(Repository rep1,
Repository rep2)
Compares the models in the default contexts of the two supplied repositories and returns true if they
are equal.
|
static <T> T |
Repositories.get(Repository repository,
java.util.function.Function<RepositoryConnection,T> processFunction)
Opens a
RepositoryConnection to the given Repository within a transaction, sends the connection
to the given Function, before either rolling back the transaction if it failed, or committing
the transaction if it was successful. |
static <T> T |
Repositories.get(Repository repository,
java.util.function.Function<RepositoryConnection,T> processFunction,
java.util.function.Consumer<RepositoryException> exceptionHandler)
Opens a
RepositoryConnection to the given Repository within a transaction, sends the connection
to the given Function, before either rolling back the transaction if it failed, or committing
the transaction if it was successful. |
static <T> T |
Repositories.getNoTransaction(Repository repository,
java.util.function.Function<RepositoryConnection,T> processFunction)
Opens a
RepositoryConnection to the given Repository without opening a transaction, sends the
connection to the given Function. |
static <T> T |
Repositories.getNoTransaction(Repository repository,
java.util.function.Function<RepositoryConnection,T> processFunction,
java.util.function.Consumer<RepositoryException> exceptionHandler)
Opens a
RepositoryConnection to the given Repository without opening a transaction, sends the
connection to the given Function. |
static <C extends Collection<Statement>> |
Connections.getRDFCollection(RepositoryConnection conn,
Resource head,
C statementCollection,
Resource... contexts)
Retrieve all
Statements that together form the RDF Collection starting with the supplied
starting resource. |
static Optional<Statement> |
Connections.getStatement(RepositoryConnection conn,
Resource subject,
IRI predicate,
Value object,
Resource... contexts)
Retrieve a single
Statement matching with the supplied subject, predicate, object and
context(s) from the given RepositoryConnection. |
static <T> T |
Repositories.graphQuery(Repository repository,
String query,
java.util.function.Function<GraphQueryResult,T> processFunction)
Performs a SPARQL Construct or Describe query on the given Repository within a transaction and passes
the results to the given
Function with the result from the function returned by the method. |
static void |
Repositories.graphQuery(Repository repository,
String query,
RDFHandler handler)
Performs a SPARQL Construct or Describe query on the given Repository within a transaction and passes
the results to the given
RDFHandler. |
static <T> T |
Repositories.graphQueryNoTransaction(Repository repository,
String query,
java.util.function.Function<GraphQueryResult,T> processFunction)
Performs a SPARQL Construct or Describe query on the given Repository without opening a transaction and
passes the results to the given
Function with the result from the function returned by the
method. |
static void |
Repositories.graphQueryNoTransaction(Repository repository,
String query,
RDFHandler handler)
Performs a SPARQL Construct or Describe query on the given Repository without opening a transaction and
passes the results to the given
RDFHandler. |
static boolean |
RepositoryUtil.isSubset(Repository rep1,
Repository rep2)
Compares the models of the default context of two repositories and returns true if rep1 is a subset of
rep2.
|
static <T> T |
Repositories.tupleQuery(Repository repository,
String query,
java.util.function.Function<TupleQueryResult,T> processFunction)
Performs a SPARQL Select query on the given Repository within a transaction and passes the results to
the given
Function with the result from the function returned by the method. |
static void |
Repositories.tupleQuery(Repository repository,
String query,
TupleQueryResultHandler handler)
Performs a SPARQL Select query on the given Repository within a transaction and passes the results to
the given
TupleQueryResultHandler. |
static <T> T |
Repositories.tupleQueryNoTransaction(Repository repository,
String query,
java.util.function.Function<TupleQueryResult,T> processFunction)
Performs a SPARQL Select query on the given Repository without opening a transaction and passes the
results to the given
Function with the result from the function returned by the method. |
static void |
Repositories.tupleQueryNoTransaction(Repository repository,
String query,
TupleQueryResultHandler handler)
Performs a SPARQL Select query on the given Repository without opening a transaction and passes the
results to the given
TupleQueryResultHandler. |
Copyright © 2015-2018 Eclipse Foundation. All Rights Reserved.