Hostname: page-component-74656f9884-c52kr Total loading time: 0 Render date: 2026-11-07T02:12:01.627Z Has data issue: false hasContentIssue false

Pengines: Web Logic Programming Made Easy

Published online by Cambridge University Press:  21 July 2014

TORBJÖRN LAGER
Affiliation:
University of Gothenburg, Sweden (e-mail: Torbjorn.Lager@ling.gu.se)
JAN WIELEMAKER
Affiliation:
VU University Amsterdam, The Netherlands (e-mail: J.Wielemaker@vu.nl)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

When developing a (web) interface for a deductive database, functionality required by the client is provided by means of HTTP handlers that wrap the logical data access predicates. These handlers are responsible for converting between client and server data representations and typically include options for paginating results. Designing the web accessible API is difficult because it is hard to predict the exact requirements of clients. Pengines changes this picture. The client provides a Prolog program that selects the required data by accessing the logical API of the server. The pengine infrastructure provides general mechanisms for converting Prolog data and handling Prolog non-determinism. The Pengines library is small (2000 lines Prolog, 150 lines JavaScript). It greatly simplifies defining an AJAX based client for a Prolog program and provides non-deterministic RPC between Prolog processes as well as interaction with Prolog engines similar to Paul Tarau's engines. Pengines are available as a standard package for SWI-Prolog 7.1

Information

Type
Regular Papers
Copyright
Copyright © Cambridge University Press 2014