A proof-of-concept SWI-Prolog implementation of Web Prolog
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
book
erlang
examples
old_tests
web-client
LICENSE
README.md
TODO.md
actors.pl
distribution.pl
dollar_expansion.pl
format.old.pl
format.pl
io.pl
isolation.pl
node.pl
pengines2.pl
pengines_io.pl
resident.pl
restful_api.pl
rpc.pl
test_actors.pl
web_prolog.pl

README.md

Web Prolog

Elevator pitch:

Imagine a dialect of Prolog with processes and mailboxes and send and receive – all the means necessary for powerful concurrent and distributed programming. Alternatively, think of it as a dialect of Erlang with logic variables, backtracking search and a built-in database of facts and rules – the means for logic programming, knowledge representation and reasoning. Also, think of it as a web logic programming language. This is what Web Prolog is all about.

This is a proof-of-concept demonstration/tutorial only. The system is not yet ready for online deployment. But you can install it locally, work through the tutorial, and play with lots of code examples.

Design and implementation by Torbjörn Lager, with a lot of help from Jan Wielemaker.

You may also want to have a look at SWISH (https://swish.swi-prolog.org/) which is a stable online IDE for Prolog, running 24/7 and having lots of users, especially among students taking CS courses involving logic programming and Prolog.

One of my long term goals is to replace the SWISH back-end with a Web Prolog node.

Installation

Get the latest SWI-Prolog

Install the latest SWI-Prolog development version.

Clone or download the repo

Running Web Prolog

From the web-prolog directory, do:

$ cd web-client
$ swipl run.pl

Now direct your browser to http://localhost:3060/apps/swish/index.html .

A book manuscript describing the approach is available at

https://github.com/Web-Prolog/swi-web-prolog/raw/master/book/web-prolog.pdf

It is very much a draft lacking some of the planned chapters, but should be readable enough for those who want to know more about the ideas behind Web Prolog.

Success!