public static QueryExecution create(String queryStr, Model model) {
   checkArg(queryStr);
   checkArg(model);
   if (model.getGraph() instanceof VirtGraph) {
     VirtuosoQueryExecution ret =
         new VirtuosoQueryExecution(queryStr, (VirtGraph) model.getGraph());
     return ret;
   } else {
     return create(makeQuery(queryStr), model);
   }
 }
  public static QueryExecution create(Query query, Model model) {
    checkArg(query);
    checkArg(model);

    if (model.getGraph() instanceof VirtGraph) {
      VirtuosoQueryExecution ret =
          new VirtuosoQueryExecution(query.toString(), (VirtGraph) model.getGraph());
      return ret;
    } else {
      return make(query, new DatasetImpl(model));
    }
  }
 public static QueryExecution sparqlService(String service, Query query, String defaultGraph) {
   checkNotNull(service, "URL for service is null");
   // checkNotNull(defaultGraph, "IRI for default graph is null") ;
   checkArg(query);
   QueryEngineHTTP qe = makeServiceRequest(service, query);
   qe.addDefaultGraph(defaultGraph);
   return qe;
 }
  public static QueryExecution sparqlService(
      String service, Query query, List defaultGraphURIs, List namedGraphURIs) {
    checkNotNull(service, "URL for service is null");
    // checkNotNull(defaultGraphURIs, "List of default graph URIs is null") ;
    // checkNotNull(namedGraphURIs, "List of named graph URIs is null") ;
    checkArg(query);

    QueryEngineHTTP qe = makeServiceRequest(service, query);

    if (defaultGraphURIs != null) qe.setDefaultGraphURIs(defaultGraphURIs);
    if (namedGraphURIs != null) qe.setNamedGraphURIs(namedGraphURIs);
    return qe;
  }
 public static QueryExecution create(String queryStr, FileManager fm) {
   checkArg(queryStr);
   return create(makeQuery(queryStr), fm);
 }
 public static QueryExecution create(Query query, FileManager fm) {
   checkArg(query);
   QueryExecution qe = make(query);
   if (fm != null) qe.setFileManager(fm);
   return qe;
 }
 public static QueryExecution sparqlService(String service, Query query) {
   checkNotNull(service, "URL for service is null");
   checkArg(query);
   return makeServiceRequest(service, query);
 }
 // ??
 public static QueryExecution create(
     String queryStr, Dataset dataset, QuerySolution initialBinding) {
   checkArg(queryStr);
   return create(makeQuery(queryStr), dataset, initialBinding);
 }
 // ??
 public static QueryExecution create(Query query, Dataset dataset, QuerySolution initialBinding) {
   checkArg(query);
   QueryExecution qe = make(query, dataset);
   if (initialBinding != null) qe.setInitialBinding(initialBinding);
   return qe;
 }