Skip to content

PySWIP is a Python - SWI-Prolog bridge enabling to query SWI-Prolog in your Python programs. It features an (incomplete) SWI-Prolog foreign language interface, a utility class that makes it easy querying with Prolog and also a Pythonic interface.

License

ML-KULeuven/pyswip

 
 

Repository files navigation

PySwip

This is a fork for that is used in DeepProbLog to support approximate inference.

SWI-Prolog

The most recent version of SWI-Prolog breaks this version of PySWIP. For Ubuntu, you can install version 8.4 from the official PPA (https://www.swi-prolog.org/build/PPA.html), using the following command:

apt-get install swi-prolog=8.4* swi-prolog-nox=8.4* swi-prolog-x=8.4*

About

PySWIP is a Python - SWI-Prolog bridge enabling to query SWI-Prolog in your Python programs. It features an (incomplete) SWI-Prolog foreign language interface, a utility class that makes it easy querying with Prolog and also a Pythonic interface.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.8%
  • Other 1.2%