Useful Prolog references

Note: This is a topic for adding links to useful Prolog information for any one to find.
If you have Trust level: Basic you can add to this list by clicking on the edit icon in the lower right. Capture

Note: Do not reply to this topic; questions, concerns, comments, etc. are to be handled in
Wiki Discussion: Useful Prolog references


Coding Guidelines for Prolog

SWISH - A popular playground for learning SWI-Prolog online. Only requires an internet browser. If you know Jupyter for Python, then think SWISH for SWI-Prolog.

StackOverflow Prolog tag contains links to many Prolog implementations and free Prolog books.

Learn Prolog Now is a popular site for learning Prolog.
A test variation of Learn Prolog Now using SWISH.
Notes/Answers created by others using LearnPrologNow on GItHub

The Power of Prolog is a great online book (with some video links) explaining prolog from the ground up, including DCGs and Constraint Logic Programming; it is very good.

Simply Logical: Intelligent Reasoning by Example book.

“The Art of Prolog” By Leon S. Sterlingand Ehud Y. Shapiro (site) (pdf)

Sites hosting research papers for download.


Professional organizations (require membership fee):

Sites hosting bibliography

  • DBLP - The dblp computer science bibliography provides open bibliographic information on major computer science journals and proceedings.

SWI-Prolog predicate documentation

The SWI-Prolog library

Example: append/3

To see the source code for a specific predicate click on image (link)

Books - searching for in libraries.

WorldCat - If you fill in your location on the page, it will show libraries near you where the book can be found, includes university libraries. Also includes places where you can purchase the book if desired, including out of print and used books.


Publications about SWI-Prolog

Unification theory

Intro to Web Prolog for Erlangers

Logical Loops

Use of Prolog for developing a new programming language and A History of the Erlang VM

Negation as failure


The SWI-Prolog library

pengines 0.1.8 - A simple python library for interacting with SWI-Prologs Pengines

Code repositories

Code by Hakan Kjellerstrand - My SWI-Prolog page (GitHub)

GitHub (Prolog)

RosettaCode has examples of lots of simple programming task implemented in many programming languages. If you know one programming language, you can often find the same implementation in another language. Prolog tasks.

Applications making use of Prolog

Pharos Static Binary Analysis Framework (GitHub) (YouTube)

Gerrit Code Review - Uses Prolog for rules


Prolog and Logic Programming Historical Sources Archive - This is a gold mine if you want to see the history of different Prolog implementations with archived code included.


PceEmacs - SWI-Prolog built-in editor


Visual Studio Code


Howto guides written by Robert Laing

The above are notes from developing a chess player at and a draughts player at which are still work in progress, so the guides are also improving gradually.