Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 41s
New lib/datalog/demo.sx with three Datalog-as-query-language demos
over synthetic rose-ash data:
Federation: (mutual A B), (reachable A B), (foaf A C) over a
follows graph.
Content: (post-likes P N) via count aggregation, (popular P)
for likes >= 3, (interesting Me P) joining follows
+ authored + popular.
Permissions: (in-group A G) over transitive subgroup chains,
(can-access A R).
10 tests run each program against in-memory EDB tuples loaded via
dl-program-data.
Wiring to PostgreSQL and exposing as a service endpoint (/internal
/datalog) is out of scope for this loop — both would require
edits outside lib/datalog/. Programs above document the EDB shape
a real loader would populate.
31 lines
997 B
Plaintext
31 lines
997 B
Plaintext
# Datalog conformance config — sourced by lib/guest/conformance.sh.
|
|
|
|
LANG_NAME=datalog
|
|
MODE=dict
|
|
|
|
PRELOADS=(
|
|
lib/datalog/tokenizer.sx
|
|
lib/datalog/parser.sx
|
|
lib/datalog/unify.sx
|
|
lib/datalog/db.sx
|
|
lib/datalog/builtins.sx
|
|
lib/datalog/aggregates.sx
|
|
lib/datalog/strata.sx
|
|
lib/datalog/eval.sx
|
|
lib/datalog/api.sx
|
|
lib/datalog/demo.sx
|
|
)
|
|
|
|
SUITES=(
|
|
"tokenize:lib/datalog/tests/tokenize.sx:(dl-tokenize-tests-run!)"
|
|
"parse:lib/datalog/tests/parse.sx:(dl-parse-tests-run!)"
|
|
"unify:lib/datalog/tests/unify.sx:(dl-unify-tests-run!)"
|
|
"eval:lib/datalog/tests/eval.sx:(dl-eval-tests-run!)"
|
|
"builtins:lib/datalog/tests/builtins.sx:(dl-builtins-tests-run!)"
|
|
"semi_naive:lib/datalog/tests/semi_naive.sx:(dl-semi-naive-tests-run!)"
|
|
"negation:lib/datalog/tests/negation.sx:(dl-negation-tests-run!)"
|
|
"aggregates:lib/datalog/tests/aggregates.sx:(dl-aggregates-tests-run!)"
|
|
"api:lib/datalog/tests/api.sx:(dl-api-tests-run!)"
|
|
"demo:lib/datalog/tests/demo.sx:(dl-demo-tests-run!)"
|
|
)
|