quoll / asami

A flexible graph store, written in Clojure
Eclipse Public License 1.0
329 stars 10 forks source link

Create new `get-pattern-vars` fn for SPARQL MINUS #22

Open quoll opened 5 months ago

quoll commented 5 months ago

The SPARQL MINUS operation requires that outer vars that don't appear in patterns (EPVPatterns) should not be included in bindings. This means that the get-vars function should not be recursing into FILTER or BINDING. That will require a new operation, which is essentially the same as the existing one, but which returns nothing for filters.

https://github.com/quoll/asami/blob/36099435c47a805f755e36e8d86fd72e5bfc7edd/src/asami/query.cljc#L298