Forester 5.0 › New datalog-based query engine › New built-in relations [013D]

A few new built-in relations have been added.

  • \rel/is-node ?X is a unary relation that holds for any tree address ?X. This is needed when specifying reflexive binary relations: the clause R ?X ?X -: is not allowed by datalog, so one must use R ?X ?X -: {\rel/is-node X}.
  • \rel/transcludes/transitive-closure is the transitive closure of \rel/transcludes.
  • \rel/transcludes/reflexive-transitive-closure is the reflexive transitive closure of \rel/transcludes.
  • \rel/is-reference ?X holds when ?X is designated as a reference/bibliographical tree. Currently, the built-in rules of the database deduce \rel/is-reference ?X for any tree ?X with taxon Reference. The purpose of abstracting from the taxon is to enable non-English users of Forester to benefit from the computation of bibliographies.
  • Similarly, \rel/is-person ?X holds when ?X is designated as a personal/biographical tree. Currently, the built-in rules of the database deduce \rel/is-reference ?X for any tree ?X with taxon Person.
  • \rel/in-bundle-closure ?X ?Y is the reflexive transitive closure of the union of the transclusion relation with the relation of ?X requiring the asset ?Y. The purpose of this relation is to easily bundle up fragments of a forest (see § [30FN]).

All of these built-in relations can be defined in Forester’s dialect of datalog; they are predefined for convenience, and because they are used in the computation of backmatter.