Package org.apache.jena.rdfconnection
Interface SparqlQueryConnection
-
- All Superinterfaces:
java.lang.AutoCloseable,Transactional
- All Known Subinterfaces:
RDFConnection
- All Known Implementing Classes:
RDFConnectionFuseki,RDFConnectionLocal,RDFConnectionModular,RDFConnectionRemote,RDFConnectionWrapper
public interface SparqlQueryConnection extends Transactional, java.lang.AutoCloseable
SPARQL Query Operations on a connection.- See Also:
RDFConnection,RDFConnectionFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close this connection.QueryExecutionquery(java.lang.String queryString)Setup a SPARQL query execution.QueryExecutionquery(Query query)Setup a SPARQL query execution.booleanqueryAsk(java.lang.String query)Execute a ASK query and return a booleanbooleanqueryAsk(Query query)Execute a ASK query and return a booleanModelqueryConstruct(java.lang.String query)Execute a CONSTRUCT query and return as a ModelModelqueryConstruct(Query query)Execute a CONSTRUCT query and return as a ModelModelqueryDescribe(java.lang.String query)Execute a DESCRIBE query and return as a ModelModelqueryDescribe(Query query)Execute a DESCRIBE query and return as a ModelvoidqueryResultSet(java.lang.String query, java.util.function.Consumer<ResultSet> resultSetAction)Execute a SELECT query and process the ResultSet with the handler code.voidqueryResultSet(Query query, java.util.function.Consumer<ResultSet> resultSetAction)Execute a SELECT query and process the ResultSet with the handler code.voidquerySelect(java.lang.String query, java.util.function.Consumer<QuerySolution> rowAction)Execute a SELECT query and process the rows of the results with the handler code.voidquerySelect(Query query, java.util.function.Consumer<QuerySolution> rowAction)Execute a SELECT query and process the rows of the results with the handler code.-
Methods inherited from interface org.apache.jena.sparql.core.Transactional
abort, begin, begin, begin, calc, calculate, calculateRead, calculateWrite, commit, end, exec, execute, executeRead, executeWrite, isInTransaction, promote, promote, transactionMode, transactionType
-
-
-
-
Method Detail
-
queryResultSet
void queryResultSet(java.lang.String query, java.util.function.Consumer<ResultSet> resultSetAction)Execute a SELECT query and process the ResultSet with the handler code.- Parameters:
query-resultSetAction-
-
queryResultSet
void queryResultSet(Query query, java.util.function.Consumer<ResultSet> resultSetAction)
Execute a SELECT query and process the ResultSet with the handler code.- Parameters:
query-resultSetAction-
-
querySelect
void querySelect(java.lang.String query, java.util.function.Consumer<QuerySolution> rowAction)Execute a SELECT query and process the rows of the results with the handler code.- Parameters:
query-rowAction-
-
querySelect
void querySelect(Query query, java.util.function.Consumer<QuerySolution> rowAction)
Execute a SELECT query and process the rows of the results with the handler code.- Parameters:
query-rowAction-
-
queryConstruct
Model queryConstruct(java.lang.String query)
Execute a CONSTRUCT query and return as a Model
-
queryDescribe
Model queryDescribe(java.lang.String query)
Execute a DESCRIBE query and return as a Model
-
queryAsk
boolean queryAsk(java.lang.String query)
Execute a ASK query and return a boolean
-
queryAsk
boolean queryAsk(Query query)
Execute a ASK query and return a boolean
-
query
QueryExecution query(Query query)
Setup a SPARQL query execution. See alsoquerySelect(Query, Consumer),queryConstruct(Query),queryDescribe(Query),queryAsk(Query)for ways to execute queries for of a specific form.- Parameters:
query-- Returns:
- QueryExecution
-
query
QueryExecution query(java.lang.String queryString)
Setup a SPARQL query execution. See alsoquerySelect(String, Consumer),queryConstruct(String),queryDescribe(String),queryAsk(String)for ways to execute queries for of a specific form.- Parameters:
queryString-- Returns:
- QueryExecution
-
close
void close()
Close this connection. Use with try-resource.- Specified by:
closein interfacejava.lang.AutoCloseable
-
-