Interface StatementExecutor
- All Known Subinterfaces:
InferredStorageConnector
,StorageConnector
- All Known Implementing Classes:
ChangeTrackingStorageConnector
,SharedStorageConnector
,SnapshotStorageConnector
public interface StatementExecutor
-
Method Summary
Modifier and TypeMethodDescriptionexecuteAskQuery
(org.apache.jena.query.Query query, Statement.StatementOntology target) Executes the specified SPARQL ASK query.executeSelectQuery
(org.apache.jena.query.Query query, Statement.StatementOntology target) Executes the specified SPARQL SELECT query, returning the Jena ARQ result set.void
executeUpdate
(String query, Statement.StatementOntology target) Executes the specified SPARQL 1.1 Update query.
-
Method Details
-
executeSelectQuery
AbstractResultSet executeSelectQuery(org.apache.jena.query.Query query, Statement.StatementOntology target) throws JenaDriverException Executes the specified SPARQL SELECT query, returning the Jena ARQ result set.The
target
specifies whether the query should be executed on the shared repository or whether the transactional snapshot will be used to evaluate the query. However, some implementations may ignore this parameter.- Parameters:
query
- Query to executetarget
- Dataset on which the query should be executed- Returns:
- ARQ result set
- Throws:
JenaDriverException
- If query execution fails
-
executeAskQuery
AbstractResultSet executeAskQuery(org.apache.jena.query.Query query, Statement.StatementOntology target) throws JenaDriverException Executes the specified SPARQL ASK query.The
target
specifies whether the query should be executed on the shared repository or whether the transactional snapshot will be used to evaluate the query. However, some implementations may ignore this parameter.- Parameters:
query
- Query to executetarget
- Dataset on which the query should be executed- Returns:
- ASK result
- Throws:
JenaDriverException
- If query execution fails
-
executeUpdate
Executes the specified SPARQL 1.1 Update query.The
target
specifies whether the query should be executed on the shared repository or whether the transactional snapshot will be used to evaluate the query. However, some implementations may ignore this parameter.- Parameters:
query
- Query to executetarget
- Dataset on which the update should be executed- Throws:
JenaDriverException
- If query execution fails
-