// vendor-specific sections of the query, we use the lower-level
// com.hp.hpl.jena.sparql.engine.http.HttpQuery to execute the query and
// read the results into model.
HttpQuery httpQuery = new HttpQuery(endpointURL);
httpQuery.addParam("query", query);
if (defaultGraphURI != null) {
httpQuery.addParam("default-graph-uri", defaultGraphURI);
}
for (String[] param: queryParamsGraph) {
httpQuery.addParam(param[0], param[1]);