datalog: tag co-occurrence demo (169/169)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled

Adds (cotagged P T1 T2) — P has both T1 and T2 with T1 != T2 — and
(tag-pair-count T1 T2 N) which counts posts cotagged with each
distinct (T1, T2) pair. Demonstrates count aggregation against a
recursive-then-aggregated stream of derived tuples.

2 new demo tests: cooking + vegetarian co-occurrence on a small
data set, and a count-of-co-occurrences query.
This commit is contained in:
2026-05-08 09:20:23 +00:00
parent 408fc27366
commit 9054fe983d
4 changed files with 49 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
# datalog scoreboard
**167 / 167 passing** (0 failure(s)).
**169 / 169 passing** (0 failure(s)).
| Suite | Passed | Total | Status |
|-------|--------|-------|--------|
@@ -13,4 +13,4 @@
| negation | 10 | 10 | ok |
| aggregates | 16 | 16 | ok |
| api | 11 | 11 | ok |
| demo | 13 | 13 | ok |
| demo | 15 | 15 | ok |