I was reading a book where I came across this line:
"The SPARQL FROM clause provide another way to define custom union graphs. The FROM clause is used to identify the default graph for a query. The most typical use is to identify a single RDF graph. However if multiple FROM clauses are specified in a query then the contents of those graphs are merged (typically in-memory) to provide a union graph that will form the default graph for the query. This feature of SPARQL can therefore provide another way to assemble a useful graph-agnostic view of a dataset."
Here it says "those graphs are merged (typically in-memory) to provide a union graph".
I am new to Apache Jena, so this got me thinking are such big GRAPH unions happen in-memory ?
So I use TDB to store my graphs and I am querying them using SPARQL and I want to query the "GRAPH union of 2 particular graphs given in multiple FROM clauses" or "GRAPH union of all named graphs":
Will these UNION happens in-memory from my Java code where I use ARQ to query TDB ??
Will this not cause OutOfMemory error lot of times since Graphs can be many ?
This might seem rookie question, pardon my beginner experience in Jena.