| Package | Description |
|---|---|
| org.eclipse.rdf4j.repository |
The Repository API: the main API for accessing rdf databases and SPARQL endpoints.
|
| org.eclipse.rdf4j.repository.base |
Abstract base classes and wrappers for the main Repository API interfaces.
|
| org.eclipse.rdf4j.repository.config |
Repository configuration interfaces.
|
| org.eclipse.rdf4j.repository.util |
Helper classes for working with Repositories.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
DelegatingRepository
Main interface for repositories that wrap another repository.
|
| Modifier and Type | Method and Description |
|---|---|
Repository |
DelegatingRepository.getDelegate() |
Repository |
RepositoryConnection.getRepository()
Returns the Repository object to which this connection belongs.
|
Repository |
RepositoryResolver.getRepository(String memberID) |
| Modifier and Type | Method and Description |
|---|---|
void |
DelegatingRepository.setDelegate(Repository delegate) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractRepository
Base class for
Repository implementation, offering common functionality. |
class |
RepositoryBase
Deprecated.
since 2.0. Use
AbstractRepository instead. |
class |
RepositoryWrapper
A
DelegatingRepository implementation that, by default, forwards all method calls to its delegate. |
| Modifier and Type | Method and Description |
|---|---|
Repository |
RepositoryWrapper.getDelegate() |
Repository |
AbstractRepositoryConnection.getRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
RepositoryWrapper.setDelegate(Repository delegate) |
| Constructor and Description |
|---|
AbstractRepositoryConnection(Repository repository) |
RepositoryConnectionBase(Repository repository)
Deprecated.
|
RepositoryConnectionWrapper(Repository repository) |
RepositoryConnectionWrapper(Repository repository,
RepositoryConnection delegate) |
RepositoryWrapper(Repository delegate)
Creates a new RepositoryWrapper and calls
RepositoryWrapper.setDelegate(Repository) with the supplied delegate
repository. |
| Modifier and Type | Method and Description |
|---|---|
Repository |
RepositoryFactory.getRepository(RepositoryImplConfig config)
Returns a Repository instance that has been initialized using the supplied configuration data.
|
| Modifier and Type | Method and Description |
|---|---|
static RepositoryConfig |
RepositoryConfigUtil.getRepositoryConfig(Repository repository,
String repositoryID)
Deprecated.
|
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(Repository repository,
RepositoryConfig... configs)
Deprecated.
|
| 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 |
Repositories.consumeSilent(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.consumeSilentNoTransaction(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 Collection<? extends org.eclipse.rdf4j.model.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 <T> T |
Repositories.getSilent(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.getSilentNoTransaction(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.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-2021 Eclipse Foundation. All Rights Reserved.