code: public void write(final OutputStream out, final Stream<? extends Triple> triples, final IRI subject) {
          final Writer writer = new OutputStreamWriter(out, UTF_8);
          try {
              template
                  .execute(writer, new HtmlData(namespaceService, subject, triples.collect(toList()), properties))
                  .flush();
          } catch (final IOException ex) {
              throw new UncheckedIOException(ex);
          }
      }
docs: Send the content to an output stream
  @param out the output stream
  @param triples the triples
  @param subject the subject