Rules reuse across queries

Tagging along on functions in config.edn that persist across all queries, it would be extremely helpful to enable the same thing for :rules if this is feasible. That is, storing these rules in config.edn and having them be in scope for datalog / advanced queries, similar to how they are for functions in the prior link.

Just as how that linked post is helpful for not having to write “sort by descending journal date” all over the place, it would be helpful if I didn’t have to write the :rules clause to check whether one page is in the namespace of another, or if one block is the ancestor of a block with a certain tag, etc.

Same: Make Advanced Queries reusable