/bashlog

Answering Datalog Queries with Unix Shell Commands

Primary LanguageJavaGNU Affero General Public License v3.0AGPL-3.0

bashlog

This tool translates datalog programs to Unix bash scripts. It can be used to preprocess large tabular datasets. Please have a look at the technical report if you are interested how it works. You can also try it online.

How to run it locally

  1. Download bashlog-datalog.jar from the releases
  2. Write a datalog program (examples).
  3. Generate the script with java -jar bashlog-datalog.jar --query-file <datalog-program> --query-pred <predicate> > query.sh
  4. Execute it with bash query.sh > result.txt

References

If you use bashlog in your research, please cite:

@inproceedings{bashlog,
  author    = {Thomas Rebele and Thomas Pellissier Tanon and Fabian M. Suchanek},
  title     = {Bash Datalog: Answering Datalog Queries with Unix Shell Commands},
  booktitle = {International Semantic Web Conference},
  pages     = {566--582},
  year      = {2018}
}