-
Notifications
You must be signed in to change notification settings - Fork 14
/
StatementExecutor.java
33 lines (28 loc) · 1014 Bytes
/
StatementExecutor.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package cz.cvut.kbss.ontodriver.jena.connector;
import cz.cvut.kbss.ontodriver.jena.exception.JenaDriverException;
import org.apache.jena.query.ResultSet;
public interface StatementExecutor {
/**
* Executes the specified SPARQL SELECT query, returning the Jena ARQ result set.
*
* @param query Query to execute
* @return ARQ result set
* @throws JenaDriverException If query execution fails
*/
ResultSet executeSelectQuery(String query) throws JenaDriverException;
/**
* Executes the specified SPARQL ASK query.
*
* @param query Query to execute
* @return ASK result
* @throws JenaDriverException If query execution fails
*/
boolean executeAskQuery(String query) throws JenaDriverException;
/**
* Executes the specified SPARQL 1.1 Update query.
*
* @param query Query to execute
* @throws JenaDriverException If query execution fails
*/
void executeUpdate(String query) throws JenaDriverException;
}