workflo.query-engine.data-layer.util

filter-entity

(filter-entity data entity params)

has-entity-attrs-rule

(has-entity-attrs-rule attrs)

matches-param-rule

(matches-param-rule [param value] suffix)

Takes a parameter (can be an attribute path), a value and a suffix for the Datalog rule to generate. Generates a (matches-param-<suffix>? ?e) rule that matches all ?e that leads to value via the attribute(s) in param.

matches-params-rules

(matches-params-rules params)

Takes a parameter map (e.g. from a query) and generates a number of Datalog rules to match entities against these parameters. The entry point to these rules is the (matches-params? ?e) rule.

matches-params-rules*

A memoized version of matches-params-rules.

paginate

(paginate params entities)

reserved-param?

(reserved-param? [k v])

select-attrs

sort

(sort params entities)

validate-param

(validate-param param)