code: public boolean performBooleanQuery(String queryString, SPARQLQueryBindingSet bindings, Transaction tx, boolean includeInferred, String baseURI) {
          SPARQLQueryDefinition qdef = sparqlManager.newQueryDefinition(queryString);
          if(notNull(baseURI) && !baseURI.isEmpty()){ qdef.setBaseUri(baseURI);}
          qdef.setIncludeDefaultRulesets(includeInferred);
          if (notNull(ruleset)) {qdef.setRulesets(ruleset);}
          if (notNull(getConstrainingQueryDefinition())){
          	qdef.setConstrainingQueryDefinition(getConstrainingQueryDefinition());
              qdef.setDirectory(getConstrainingQueryDefinition().getDirectory());
              qdef.setCollections(getConstrainingQueryDefinition().getCollections());
              qdef.setResponseTransform(getConstrainingQueryDefinition().getResponseTransform());
              qdef.setOptionsName(getConstrainingQueryDefinition().getOptionsName());
          	}
          if(notNull(graphPerms)){ qdef.setUpdatePermissions(graphPerms);}
          return sparqlManager.executeAsk(qdef,tx);
      }
docs: executes BooleanQuery
  
  @param queryString
  @param bindings
  @param tx
  @param includeInferred
  @param baseURI
  @return