Interface LinkSparqlQuery

All Superinterfaces:
AutoCloseable, Transactional
All Known Subinterfaces:
RDFLink
All Known Implementing Classes:
RDFLinkAdapter, RDFLinkDataset, RDFLinkFuseki, RDFLinkHTTP, RDFLinkModular

public interface LinkSparqlQuery extends Transactional, AutoCloseable
SPARQL Query Operations on a connection.
See Also:
  • Method Details

    • queryRowSet

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

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

      void querySelect(String query, 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, Consumer<Binding> rowAction)
      Execute a SELECT query and process the rows of the results with the handler code.
      Parameters:
      query -
      rowAction -
    • queryConstruct

      Graph queryConstruct(String query)
      Execute a CONSTRUCT query and return as a Model
    • queryConstruct

      Graph queryConstruct(Query query)
      Execute a CONSTRUCT query and return as a Model
    • queryDescribe

      Graph queryDescribe(String query)
      Execute a DESCRIBE query and return as a Model
    • queryDescribe

      Graph queryDescribe(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(Query query)
      Execute a ASK query and return a boolean
    • query

      QueryExec 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

      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

      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