Hostname: page-component-77c78cf97d-lmk9j Total loading time: 0 Render date: 2026-04-24T13:11:47.329Z 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)

Abstract

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 

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Article purchase

Temporarily unavailable