public Graph graphQuery(final String theQuery) throws QueryException {
try {
return Graphs.newGraph(Repositories.constructQuery(mRepo, QueryLanguage.SERQL, theQuery));
}
catch (MalformedQueryException e) {
throw new QueryException("Unsupported or invalid SeRQL query.", e);
}
catch (QueryEvaluationException e) {
throw new QueryException("Error during query evaluation.", e);
}
catch (Exception e) {
throw new QueryException(e);
}
}