- All Superinterfaces:
AutoCloseable
,Transactional
- All Known Subinterfaces:
RDFLink
- All Known Implementing Classes:
RDFLinkAdapter
,RDFLinkDataset
,RDFLinkFuseki
,RDFLinkHTTP
,RDFLinkModular
SPARQL Query Operations on a connection.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional
Transactional.Promote
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close this connection.newQuery()
Return aQueryExecBuilder
that is initially configured using this link setup and type.Setup a SPARQL query execution.Setup a SPARQL query execution.boolean
Execute a ASK query and return a booleanboolean
Execute a ASK query and return a booleanqueryConstruct
(String query) Execute a CONSTRUCT query and return as a ModelqueryConstruct
(Query query) Execute a CONSTRUCT query and return as a ModelqueryDescribe
(String query) Execute a DESCRIBE query and return as a ModelqueryDescribe
(Query query) Execute a DESCRIBE query and return as a Modelvoid
queryRowSet
(String query, Consumer<RowSet> rowSetAction) Execute a SELECT query and process the RowSet with the handler code.void
queryRowSet
(Query query, Consumer<RowSet> rowSetAction) Execute a SELECT query and process the RowSet with the handler code.void
querySelect
(String query, Consumer<Binding> rowAction) Execute a SELECT query and process the rows of the results with the handler code.void
querySelect
(Query query, 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 Details
-
queryRowSet
Execute a SELECT query and process the RowSet with the handler code.- Parameters:
query
-rowSetAction
-
-
queryRowSet
Execute a SELECT query and process the RowSet with the handler code.- Parameters:
query
-rowSetAction
-
-
querySelect
Execute a SELECT query and process the rows of the results with the handler code.- Parameters:
query
-rowAction
-
-
querySelect
Execute a SELECT query and process the rows of the results with the handler code.- Parameters:
query
-rowAction
-
-
queryConstruct
Execute a CONSTRUCT query and return as a Model -
queryConstruct
Execute a CONSTRUCT query and return as a Model -
queryDescribe
Execute a DESCRIBE query and return as a Model -
queryDescribe
Execute a DESCRIBE query and return as a Model -
queryAsk
Execute a ASK query and return a boolean -
queryAsk
Execute a ASK query and return a boolean -
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
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 aQueryExecBuilder
that is initially configured using this link setup and type.- Returns:
- QueryExecBuilder
-
close
void close()Close this connection. Use with try-resource.- Specified by:
close
in interfaceAutoCloseable
-