Bash Datalog
Answering Datalog Queries with Unix Shell Commands

Sparql/OWL

An API for transforming SPARQL queries and an OWL ontology to bash scripts.
Please call it as follows: curl --data-urlencode owl@ontology.owl --data-urlencode sparql@query.sparql --data-urlencode nTriples=/path/to/kb.ntriples https://thomasrebele.org/projects/bashlog/api/sparql where ontology.owl is a file containing the OWL ontology and sparql.query is a file containing the SPARQL query
You can save the script in a file by changing the command as follows: curl ... > query.sh Execute it with the command bash query.sh.

Datalog

An API for transforming datalog to bash scripts. For the syntax of the datalog dialect, see the datalog page

Please call it as follows:
curl --data-binary @example.dlog https://thomasrebele.org/projects/bashlog/api/datalog\?query=predicate where example.dlog contains your datalog program, here an example: facts(S,P,O) :~ cat ~/facts.tsv main(X) :- facts(X, _, "person").
You can save the script in a file by changing the command as follows: curl ... > query.sh Execute it with the command bash query.sh.