On 23/05/11 14:38, Laurent Pellegrino wrote:
Hi all,
Does Jena provide a means to create a new ResultSet which is the union
of two ResultSets? Especially in the case where the two result sets
have the same variables.
No - there isn't specifically.
UNION is concatenation and results are Iterator<QuerySolution>. You
could use Iter.concat or your favourite way to concatenate iterators.
Or is there a means to create a ResultSet by
using a list of variables and a QuerySolution/Binding?
You could create a QueryIterator and use ResultSetStream
There are lots QueryIterator including QueryIterConcat
Internally, everything is done in QueryIterator - ResultSets are the
final step of presentation.
I have take a look at ResultSetUtils and ResultSetMem but it seems
there is nothing to do it :S
Kind Regards,
Laurent
Andy