static void |
Repositories.consume(Repository repository,
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,
Consumer<RepositoryConnection> processFunction,
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,
Consumer<RepositoryConnection> processFunction) |
|
static void |
Repositories.consumeNoTransaction(Repository repository,
Consumer<RepositoryConnection> processFunction,
Consumer<RepositoryException> exceptionHandler) |
|
static void |
Repositories.consumeSilent(Repository repository,
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,
Consumer<RepositoryConnection> processFunction) |
|
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,
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,
Function<RepositoryConnection,T> processFunction,
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,
Function<RepositoryConnection,T> processFunction) |
|
static <T> T |
Repositories.getNoTransaction(Repository repository,
Function<RepositoryConnection,T> processFunction,
Consumer<RepositoryException> exceptionHandler) |
|
static <T> T |
Repositories.getSilent(Repository repository,
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,
Function<RepositoryConnection,T> processFunction) |
|
static <T> T |
Repositories.graphQuery(Repository repository,
String query,
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,
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,
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,
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.
|