*/
public boolean ask(String sparql, Map<String, Object> args) {
Connection connection = dataSource.getConnection();
Boolean result = null;
try {
BooleanQuery query = connection.ask(sparql);
if (args != null) {
for (Entry<String, Object> arg : args.entrySet()) {
query.parameter(arg.getKey(), arg.getValue());
}
}
result = query.execute();
} catch (StardogException e) {
log.error("Error sending query to Stardog", e);
throw new RuntimeException(e);
} finally {
dataSource.releaseConnection(connection);