Pengines:Web逻辑编程变得简单
Pengines: Web Logic Programming Made Easy
摘要:
当为演绎数据库开发(Web)接口时,客户端所需的功能是通过包装逻辑数据访问谓词的HTTP处理程序提供的。这些处理程序负责在客户端和服务器数据表示之间进行转换,并且通常包括用于对结果进行分页的选项。设计Web可访问的API是困难的,因为很难预测客户端的确切需求。Pengines改变了这一局面。客户端提供一个Prolog程序,通过访问服务器的逻辑API来选择所需的数据。pengine基础设施提供了转换Prolog数据和处理Prolog非确定性的通用机制。Pengines库很小(2000行Prolog,150行JavaScript)。它大大简化了为Prolog程序定义基于AJAX的客户端,并提供Prolog进程之间的非确定性RPC以及与类似于Paul Tarau引擎的Prolog引擎的交互。Pengines作为SWI-Prolog 7的标准包提供。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。