Interface LinkSparqlQuery

All Superinterfaces:
AutoCloseable, org.apache.jena.sparql.core.Transactional
All Known Subinterfaces:
RDFLink
All Known Implementing Classes:
RDFLinkAdapter, RDFLinkDataset, RDFLinkFuseki, RDFLinkHTTP, RDFLinkModular

public interface LinkSparqlQuery extends org.apache.jena.sparql.core.Transactional, AutoCloseable
SPARQL Query Operations on a connection.
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.jena.sparql.core.Transactional

    org.apache.jena.sparql.core.Transactional.Promote
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Close this connection.
    org.apache.jena.sparql.exec.QueryExecBuilder
    Return a QueryExecBuilder that is initially configured using this link setup and type.
    org.apache.jena.sparql.exec.QueryExec
    query(String queryString)
    Setup a SPARQL query execution.
    org.apache.jena.sparql.exec.QueryExec
    query(org.apache.jena.query.Query query)
    Setup a SPARQL query execution.
    boolean
    Execute a ASK query and return a boolean
    boolean
    queryAsk(org.apache.jena.query.Query query)
    Execute a ASK query and return a boolean
    org.apache.jena.graph.Graph
    Execute a CONSTRUCT query and return as a Model
    org.apache.jena.graph.Graph
    queryConstruct(org.apache.jena.query.Query query)
    Execute a CONSTRUCT query and return as a Model
    org.apache.jena.graph.Graph
    Execute a DESCRIBE query and return as a Model
    org.apache.jena.graph.Graph
    queryDescribe(org.apache.jena.query.Query query)
    Execute a DESCRIBE query and return as a Model
    void
    queryRowSet(String query, Consumer<org.apache.jena.sparql.exec.RowSet> rowSetAction)
    Execute a SELECT query and process the RowSet with the handler code.
    void
    queryRowSet(org.apache.jena.query.Query query, Consumer<org.apache.jena.sparql.exec.RowSet> rowSetAction)
    Execute a SELECT query and process the RowSet with the handler code.
    void
    querySelect(String query, Consumer<org.apache.jena.sparql.engine.binding.Binding> rowAction)
    Execute a SELECT query and process the rows of the results with the handler code.
    void
    querySelect(org.apache.jena.query.Query query, Consumer<org.apache.jena.sparql.engine.binding.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

      void queryRowSet(String query, Consumer<org.apache.jena.sparql.exec.RowSet> rowSetAction)
      Execute a SELECT query and process the RowSet with the handler code.
      Parameters:
      query -
      rowSetAction -
    • queryRowSet

      void queryRowSet(org.apache.jena.query.Query query, Consumer<org.apache.jena.sparql.exec.RowSet> rowSetAction)
      Execute a SELECT query and process the RowSet with the handler code.
      Parameters:
      query -
      rowSetAction -
    • querySelect

      void querySelect(String query, Consumer<org.apache.jena.sparql.engine.binding.Binding> rowAction)
      Execute a SELECT query and process the rows of the results with the handler code.
      Parameters:
      query -
      rowAction -
    • querySelect

      void querySelect(org.apache.jena.query.Query query, Consumer<org.apache.jena.sparql.engine.binding.Binding> rowAction)
      Execute a SELECT query and process the rows of the results with the handler code.
      Parameters:
      query -
      rowAction -
    • queryConstruct

      org.apache.jena.graph.Graph queryConstruct(String query)
      Execute a CONSTRUCT query and return as a Model
    • queryConstruct

      org.apache.jena.graph.Graph queryConstruct(org.apache.jena.query.Query query)
      Execute a CONSTRUCT query and return as a Model
    • queryDescribe

      org.apache.jena.graph.Graph queryDescribe(String query)
      Execute a DESCRIBE query and return as a Model
    • queryDescribe

      org.apache.jena.graph.Graph queryDescribe(org.apache.jena.query.Query query)
      Execute a DESCRIBE query and return as a Model
    • queryAsk

      boolean queryAsk(String query)
      Execute a ASK query and return a boolean
    • queryAsk

      boolean queryAsk(org.apache.jena.query.Query query)
      Execute a ASK query and return a boolean
    • query

      org.apache.jena.sparql.exec.QueryExec query(org.apache.jena.query.Query query)
      Setup a SPARQL query execution. See also querySelect(Query, Consumer), queryConstruct(Query), queryDescribe(Query), queryAsk(Query) for ways to execute queries for of a specific form.
      Parameters:
      query -
      Returns:
      QExec
    • query

      org.apache.jena.sparql.exec.QueryExec query(String queryString)
      Setup a SPARQL query execution. See also querySelect(String, Consumer), queryConstruct(String), queryDescribe(String), queryAsk(String) for ways to execute queries for of a specific form.
      Parameters:
      queryString -
      Returns:
      QExec
    • newQuery

      org.apache.jena.sparql.exec.QueryExecBuilder newQuery()
      Return a QueryExecBuilder 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 interface AutoCloseable