ML-KULeuven / pyswip

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:Python 98.8%Language:Prolog 0.8%Language:Makefile 0.2%Language:TeX 0.2%