-
- All Superinterfaces:
java.lang.AutoCloseable,Transactional
- All Known Subinterfaces:
RDFLink
- All Known Implementing Classes:
RDFLinkAdapter,RDFLinkDataset,RDFLinkFuseki,RDFLinkHTTP,RDFLinkModular
public interface LinkSparqlQuery extends Transactional, java.lang.AutoCloseable
SPARQL Query Operations on a connection.- See Also:
RDFLink
-
-
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.QueryExecBuildernewQuery()Return aQueryExecBuilderthat is initially configured using this link setup and type.QueryExecquery(java.lang.String queryString)Setup a SPARQL query execution.QueryExecquery(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 booleanGraphqueryConstruct(java.lang.String query)Execute a CONSTRUCT query and return as a ModelGraphqueryConstruct(Query query)Execute a CONSTRUCT query and return as a ModelGraphqueryDescribe(java.lang.String query)Execute a DESCRIBE query and return as a ModelGraphqueryDescribe(Query query)Execute a DESCRIBE query and return as a ModelvoidqueryRowSet(java.lang.String query, java.util.function.Consumer<RowSet> rowSetAction)Execute a SELECT query and process the RowSet with the handler code.voidqueryRowSet(Query query, java.util.function.Consumer<RowSet> rowSetAction)Execute a SELECT query and process the RowSet with the handler code.voidquerySelect(java.lang.String query, java.util.function.Consumer<Binding> rowAction)Execute a SELECT query and process the rows of the results with the handler code.voidquerySelect(Query query, java.util.function.Consumer<Binding> 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
-
queryRowSet
void queryRowSet(java.lang.String query, java.util.function.Consumer<RowSet> rowSetAction)Execute a SELECT query and process the RowSet with the handler code.- Parameters:
query-rowSetAction-
-
queryRowSet
void queryRowSet(Query query, java.util.function.Consumer<RowSet> rowSetAction)
Execute a SELECT query and process the RowSet with the handler code.- Parameters:
query-rowSetAction-
-
querySelect
void querySelect(java.lang.String query, java.util.function.Consumer<Binding> 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<Binding> rowAction)
Execute a SELECT query and process the rows of the results with the handler code.- Parameters:
query-rowAction-
-
queryConstruct
Graph queryConstruct(java.lang.String query)
Execute a CONSTRUCT query and return as a Model
-
queryDescribe
Graph 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
QueryExec 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:
- QExec
-
query
QueryExec 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:
- QExec
-
newQuery
QueryExecBuilder newQuery()
Return aQueryExecBuilderthat is initially configured using this link setup and type.- Returns:
- QueryExecBuilder
-
close
void close()
Close this connection. Use with try-resource.- Specified by:
closein interfacejava.lang.AutoCloseable
-
-