Example. Forester 4.2 › New query language › Unions and intersections of families of queries › Querying all hereditary contributors to a tree [00X5]
We can use the union of families of relational queries to compute the set of (proper) contributors to a given tree. This is slightly subtle, because if a bibliographic tree is transcluded, we do not want its contributors to be included.
\def\query/contributors[x]{
\open\query
\union-fam-rel{
\isect{
\transclusion-coslice{\x}
}{
\compl{
\taxon{Reference}
}
}
}{\edges}{\outgoing}{\rel/contributors}
}