Interface StatementExecutor
- All Known Subinterfaces:
RepoConnection
- All Known Implementing Classes:
GraphDBStorageConnection
,StorageConnection
public interface StatementExecutor
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Executes the specified boolean query.org.eclipse.rdf4j.query.TupleQueryResult
Executes the specified query and returns result in form of a RDF4J query result.void
executeUpdate
(QuerySpecification query) Executes the specified update query.
-
Method Details
-
executeSelectQuery
org.eclipse.rdf4j.query.TupleQueryResult executeSelectQuery(QuerySpecification query) throws Rdf4jDriverException Executes the specified query and returns result in form of a RDF4J query result.- Parameters:
query
- The query to execute- Returns:
- Tuple query result
- Throws:
Rdf4jDriverException
- When things go wrong with query execution
-
executeBooleanQuery
Executes the specified boolean query.This method is intended mostly for SPARQL ASK queries.
- Parameters:
query
- The query to execute- Returns:
- Boolean result of the query
- Throws:
Rdf4jDriverException
- When things go wrong with query execution
-
executeUpdate
Executes the specified update query.- Parameters:
query
- The query to execute- Throws:
Rdf4jDriverException
- When things go wrong with query execution
-