code: public static Collector<Triple, ?, Graph> toGraph() {
          return of(rdf::createGraph, Graph::add, (left, right) -> {
              right.iterate().forEach(left::add);
              return left;
          }, UNORDERED);
      }
docs: Collect a stream of Triples into a Graph
  @return a graph