Dear user community, Our current approach to joining multiple model.listStatements (with SimpleSelector) calls is to take the content of the iterators returned and add them to separate HashSets and then use functions such as retainAll to find the intersection between the two sets.
This works relative well when model.listStatements return a small to medium number of statements. My problem is that this seems to be a very inefficient way of joining to sets of data that are already ordered in TDB. I assume that there must be a better way to do this. I have searched the web, but all uses of listStatements are very simple. I have also not found an effective way to do filtering (for instance literal less than 5) without comparing every statement that listStatements returns My questions are: * What is the recommended way to do a join between two lists of statements? * What is the recommended way to implement filtering? * Is there anything else than SimpleSelector? Are there any Advanced selectors? Thanks in advance, Niels
