The Janus System: Multi-Paradigm Programming in Prolog and Python
arxiv.org
arxiv.org
https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&d...
Prolog -(ish)-> Datalog -> Rego & OPA
Then use #SheBang to make any such prolog-file interpreted by that interpreter to return JSON to the caller. Then it could be integrated to ANY program written in any language which uses the Unix shell-calling conventionss.
ddlog is another datalog variant that supports this, but I believe you need to specify the schema as a rust type
https://www.swi-prolog.org/pldoc/man?section=janus-intro
https://swi-prolog.discourse.group/t/a-bundled-python-interf...