The PiLLoW Web programming library
Author(s): Daniel Cabeza, Manuel Hermenegildo.This package implements the PiLLoW library [CHV96a]. The following three chapters document, respectively, the predicates for HTML/XML/CGI programming, the predicate for HTTP conectivity, and the types used in the definition of the predicates (key for fully understanding the other predicates). You can find a paper and some additional information in the library/pillow/doc directory of the distribution, and in the WWW at http://clip.dia.fi.upm.es/Software/pillow/pillow.html. There is also a PiLLoW on-line tutorial (slides) at http://clip.dia.fi.upm.es/logalg/slides/C_pillow/C_pillow.html which illustrates the basic features and provides a number of examples of PiLLoW use.
Installing PiLLoW
To correctly install PiLLoW, first, make sure you downloaded the right version of PiLLoW (there are different versions for different LP/CLP systems; the version that comes with Ciao is of course the right one for Ciao). Then, please follow these steps:- Copy the files in the images directory to a WWW accessible directory in your server.
- Edit the file icon_address.pl and change the fact to point to the URL to be used to access the images above.
- In the Ciao system the files are in the correct place, in other systems copy the files pillow.pl and icon_address.pl to a suitable directory so that your Prolog system will find them.
Usage and interface
- Library usage:
:- use_package(pillow). or :- module(...,...,[pillow]). - New operators defined:
$/2 [150,xfx], $/1 [150,fx]. - Imports:
- System library modules:
pillow/http, pillow/html. - Packages:
prelude, nonpure, assertions.
- System library modules: