code: public TupleIterator getTuples(Map<String, String> params)
              throws IOException {
          params.put("type", "tuples");
          params.put("format", RDFFormat.SPARQL.getName());
          try {
              String url = getRIQueryURL(params);
              return TupleIterator.fromStream(get(url, true, true),
                                              RDFFormat.SPARQL);
          } catch (TrippiException e) {
              throw new IOException("Error getting tuple iterator: "
                      + e.getMessage());
          }
      }
docs: Get tuples from the remote resource index. The map contains
  <em>String</em> values for parameters that should be passed to the
  service. Two parameters are required: 1) lang 2) query Two parameters to
  the risearch service are implied: 1) type = tuples 2) format = sparql See
  http
  ://www.fedora.info/download/2.0/userdocs/server/webservices/risearch/#
  app.tuples