sudo apt install python3-antlr3
git clone https://github.com/hibitomo/pylagolog
cd pylagolog
sudo ./setup.py install
pylagolog -r rule.datalog -q query.datalog
lagolog-server
$ lagolog-client -a 'p(x) :- q(x)' # Add rule
$ lagolog-client -a 'q("test")'
$ lagolog-client -q 'p(x)' # Query
p("test")
$ lagolog-client -d 'q("test")' # Delete rule
$ lagolog-client -q 'p(x)'