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 <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.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 <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 .
|