Closed KonradHoeffner closed 2 years ago
Thank you for reporting @KonradHoeffner . This might be related to https://github.com/comunica/comunica/issues/666 . Which version of quadstore
were you using?
I was using https://cdn.jsdelivr.net/gh/beautifulinteractions/node-quadstore-webpack-bundle/quadstore.bundle.js, which was using quadstore version 9.2.0-alpha.0 at the time.
Which means this happened using @comunica/actor-init-sparql^1.22.2
. @rubensworks can this be a regression on https://github.com/comunica/comunica/issues/666 ? I don't think @KonradHoeffner is able to test with a different version as he ended up using a different solution based on Virtuoso but I may be able to A/B test next week or so.
Things seem to be going wrong because of the usage of GROUP_CONCAT
. Seems to be slightly different to comunica/comunica#666 though. Could you create a new issue for this?
I suspect just a very minor change will be needed here: https://github.com/comunica/comunica/blob/master/packages/actor-query-operation-project/lib/ActorQueryOperationProject.ts#L35-L40
Note to self, this also occurs for MINUS queries such as this one:
PREFIX ex: <http://www.w3.org/2009/sparql/docs/tests/data-sparql11/negation#>
SELECT * {
?animal a ex:Animal MINUS {
optional {
?animal a ?type
FILTER(?type = ex:Reptile || ?type = ex:Insect)
}
}
}
Sure!
Tracked upstream in https://github.com/comunica/comunica/issues/866
Fixed, will ship with next major version (10.0.0)
Selecting a variable that only occurs in an optional clause results in an error such as this:
Example Query
The query works perfectly on a Virtuoso SPARQL endpoint.