Skip to content

federated SPARQL query planning #1217

Answered by rubensworks
balhoff asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @balhoff, thanks for the detailed findings!

You're right to indicate that if a count query returns 0, that no following SELECT query should be initiated.

Internally, Comunica will fetch the COUNT and SELECT queries at the same time.
However, the SELECT query should be lazy, and only be actually triggered from the moment it actually becomes required.
As you have indicated, something seems to be going wrong with this lazyness, which is making the query always get triggered.

The precise location where this lazy stream is created is here: https://github.com/comunica/comunica/blob/master/packages/actor-rdf-resolve-hypermedia-sparql/lib/RdfSourceSparql.ts#L184
So either this stream is not ac…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@balhoff
Comment options

Answer selected by balhoff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants