| 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 | 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.
|
| 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 4.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) |
static Set<String> |
RepositoryConfigUtil.getRepositoryIDs(Repository repository) |
static boolean |
RepositoryConfigUtil.hasRepositoryConfig(Repository repository,
String repositoryID)
Is configuration information for the specified repository ID present in the (system) repository?
|
static boolean |
RepositoryConfigUtil.removeRepositoryConfigs(Repository repository,
String... repositoryIDs)
Removes one or more Repository configurations from a Repository.
|
static void |
RepositoryConfigUtil.updateRepositoryConfigs(Repository repository,
RepositoryConfig... configs)
Update the specified Repository with the specified set of RepositoryConfigs.
|
| 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, 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, 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.consumeSilent(Repository repository,
java.util.function.Consumer<RepositoryConnection> processFunction)
Opens a
RepositoryConnection to the given Repository, 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 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, 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, 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.getSilent(Repository repository,
java.util.function.Function<RepositoryConnection,T> processFunction)
Opens a
RepositoryConnection to the given Repository, 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.graphQuery(Repository repository,
String query,
java.util.function.Function<GraphQueryResult,T> processFunction)
Performs a SPARQL Construct or Describe query on the given Repository 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 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 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 and passes the results to the given
TupleQueryResultHandler. |
Copyright © 2015-2017 Eclipse Foundation. All Rights Reserved.