RepositoryConnection conn = null;
try {
conn = repo.getConnection();
HTTPGraphQuery query = (HTTPGraphQuery)conn.prepareGraphQuery(qInfo.getQueryLanguage(),
qInfo.getQueryString());
query.setIncludeInferred(qInfo.isIncludeInferred());
GraphQueryResult queryResult = null;
try {
queryResult = query.evaluate();
}
catch (HTTPQueryEvaluationException e) {
if (e.isCausedByMalformedQueryException()) {
throw e.getCauseAsMalformedQueryException();
}