use of org.openrdf.query.BooleanQuery in project gocd by gocd.
the class SesameGraph method getBooleanQueryResult.
private boolean getBooleanQueryResult(String sparqlSelect) {
try {
BooleanQuery booleanQuery = conn.prepareBooleanQuery(QueryLanguage.SPARQL, sparqlSelect);
contextualize(booleanQuery);
return booleanQuery.evaluate();
} catch (UnsupportedSPARQLStatementException e) {
throw e;
} catch (Exception e) {
throw new ShineRuntimeException(e);
}
}
Aggregations