zazuko / query-rdf-data-cube

Explore or query RDF Data Cubes with a JavaScript API, without writing SPARQL.
https://zazuko.github.io/query-rdf-data-cube/
9 stars 2 forks source link

Max 2 filters are applied #28

Closed jstcki closed 4 years ago

jstcki commented 4 years ago

When more than 2 .filter()s are applied, only 2 actually end up in the generated SPARQL query.

My suspicion is that the && operator only uses the first two args:

https://github.com/zazuko/query-rdf-data-cube/blob/fd063f178b69b876e779013d03ed0f8fcbc4fccf/src/queryutils.ts#L59-L67

vhf commented 4 years ago

Good catch, thanks!

L.66 above was definitely missing the required nesting :)

vhf commented 4 years ago

v0.1.2 👍