} finally {
connection.close();
}
} catch(RepositoryException e) {
log.error("error while getting repository connection: {}", e);
throw new MarmottaException("error while getting repository connection", e);
} catch (QueryEvaluationException e) {
log.error("error while evaluating query: {}", e);
throw new MarmottaException("error while writing query result in format ", e);
} catch (MalformedQueryException e) {
log.error("error because malformed query: {}", e);
throw new MarmottaException("error because malformed query result in format ", e);
}
log.debug("SPARQL execution took {}ms", System.currentTimeMillis()-start);
}