Interface SparqlQueryConnection

All Superinterfaces:
AutoCloseable, Transactional
All Known Subinterfaces:
RDFConnection, RDFConnectionFuseki, RDFConnectionRemote
All Known Implementing Classes:
RDFConnectionAdapter, RDFConnectionFuseki.RDFConnectionFusekiImpl, RDFConnectionLocal, RDFConnectionWrapper

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

    • queryResultSet

      void queryResultSet(String query, Consumer<ResultSet> resultSetAction)
      Execute a SELECT query and process the ResultSet with the handler code.
      Parameters:
      query -
      resultSetAction -
    • queryResultSet

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

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

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

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

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

      Model 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

      QueryExecution 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:
      QueryExecution
    • query

      QueryExecution 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:
      QueryExecution
    • newQuery

      Return an execution builder initialized with the RDFConnection setup.
      Returns:
      QueryExecutionBuilderCommon
    • close

      void close()
      Close this connection. Use with try-resource.
      Specified by:
      close in interface AutoCloseable