* If the supplied query language is not supported.
*/
public BooleanQuery prepareBooleanQuery(QueryLanguage language, final String query, String baseURI) throws RepositoryException, MalformedQueryException {
if (language != QueryLanguage.SPARQL)
throw new UnsupportedQueryLanguageException(" : Only SPARQL queries are supported");
BooleanQuery q = new VirtuosoBooleanQuery() {
public boolean evaluate() throws QueryEvaluationException {
return executeSPARQLForBooleanResult(query, getDataset(), getIncludeInferred(), getBindings());
}