class JenaStatement implements Statement {

    @Override
    public ResultSet executeQuery(String sparql) throws JenaDriverException {
        ensureOpen();
        final Query query = parseQuery(Objects.requireNonNull(sparql));
        closeCurrentResultSet();
        final AbstractResultSet resultSet;
        if (query.isAskType()) {
            resultSet = executor.executeAskQuery(query, targetOntology);
        } else {
            resultSet = executor.executeSelectQuery(query, targetOntology);
        }
        resultSet.setStatement(this);
        this.currentResultSet = resultSet;
        return resultSet;
    }

    public  JenaStatement(StatementExecutor executor);

}