Apache Jena project is like a box full of interesting things—at least if you love programming. One of its many features, is stream processing.
It may contain very large datasets, with gigabytes of data about graphs. Some queries may be quite large, so sending the whole result would be simply impracticable.
Instead, the data will go through ARQ. ARQ is a query engine for Jena that supports Sparql. There is one piece of code there that I found interesting while reviewing a small pull request: org.apache.jena.riot.system.StreamRDFWriter
.
It is responsible for writing graph data in a streaming fashion. (See stream processing for programming models and more.)