} else {
return results.getBoolean();
}
default:
log.error("error evaluating SPARQL ASK Query {}: {} {}",new Object[] {askQuery,response.getStatusLine().getStatusCode(),response.getStatusLine().getReasonPhrase()});
throw new MarmottaClientException("error evaluating SPARQL ASK Query "+askQuery+": "+response.getStatusLine().getStatusCode() + " " + response.getStatusLine().getReasonPhrase());
}
} catch(TupleQueryResultHandlerException e) {
throw new MarmottaClientException("error evaluating SPARQL Ask Query ", e);
} catch(QueryResultParseException e) {
throw new MarmottaClientException("error evaluating SPARQL Ask Query ", e);
} catch(UnsupportedQueryResultFormatException e) {
throw new MarmottaClientException("error evaluating SPARQL Ask Query ", e);
} catch(IllegalStateException e) {
throw new MarmottaClientException("error evaluating SPARQL Ask Query ", e);
} catch(QueryResultHandlerException e) {
throw new MarmottaClientException("error evaluating SPARQL Ask Query ", e);
} finally {
get.releaseConnection();
}
}