Expansion of Terms, Abbreviations, and Definitions

That’s great thank you!
I didn’t realise I could just have multiple contexts instead of an object containing a list of contexts. That’s simpler.
The Term note contains a field “summary” which can be returned by a query (you suggested this in the previous thread).
So the key reason for all this is to have a table showing all the Abbreviations, Terms, and Term Summaries for a particular context.

I have this, but it doesn’t return the Abbreviations for the context:

TABLE ctx.term, ctx.fileContexts
FROM #abbreviation
WHERE contains(ctx.fileContexts, "[[Abbreviation Test Document]]")
FLATTEN contexts AS ctx
SORT file ASC, string(term) ASC

The 2nd issue is how to get the summary to display in the table. The summary is a field of each Term, so the query would have to reach into each linked term to retrieve it. The table should look like this for the abbreviations in a particular context:

Abbreviation Term Summary
(abbreviation from the selected context) (term) (summary from the term)
BM Business Manager Someone who manages business
CM Configuration Management (summary for that)

That’s more tricky I think. I tried some things but it might need dataviewJS.