zazuko / rdf-cube-view-query

RDF Cube View Schema query library
2 stars 3 forks source link

Add version cube filter #42

Closed jstcki closed 3 years ago

jstcki commented 3 years ago

It should be possible to filter by version (eq, lt, gt etc.)

Currently, I'm doing this myself:

({ cube, index }) => {
      const variable = rdf.variable(`version${index}`);
      return [
        [cube, ns.schema.version, variable],
        sparql`FILTER(${variable} > ${version})`,
      ];
    },
bergos commented 3 years ago

The latest version added this feature. An example can be found here.