Interface StatementExecutor

All Known Subinterfaces:
RepoConnection
All Known Implementing Classes:
GraphDBStorageConnection, StorageConnection

public interface StatementExecutor
  • Method Details

    • executeSelectQuery

      org.eclipse.rdf4j.query.TupleQueryResult executeSelectQuery(QuerySpecification query) throws Rdf4jDriverException
      Executes the specified query and returns result in form of a RDF4J query result.
      Parameters:
      query - The query to execute
      Returns:
      Tuple query result
      Throws:
      Rdf4jDriverException - When things go wrong with query execution
    • executeBooleanQuery

      boolean executeBooleanQuery(QuerySpecification query) throws Rdf4jDriverException
      Executes the specified boolean query.

      This method is intended mostly for SPARQL ASK queries.

      Parameters:
      query - The query to execute
      Returns:
      Boolean result of the query
      Throws:
      Rdf4jDriverException - When things go wrong with query execution
    • executeUpdate

      void executeUpdate(QuerySpecification query) throws Rdf4jDriverException
      Executes the specified update query.
      Parameters:
      query - The query to execute
      Throws:
      Rdf4jDriverException - When things go wrong with query execution