|
WELCOME TO Quintus Prolog The Industry Standard |
| Quintus Home > ProDBI | Evaluation License | Search |
ProDBIProlog and relational databases have a common heritage in formal logic. Prolog programs are written at a higher level than an RDBMS's SQL programs, because they are not concerned with the details of data representation. The facts and rules in a Prolog system are referred to as the Prolog database. Because Prolog supports both facts and rules, database applications written in Prolog are sometimes referred to as deductive databases. Records in an RDBMS are analogous to facts in a Prolog system. Prolog is more flexible in several ways:
ProDBI allows Prolog programs to access the RDBMS in two ways:
In both cases, multiple records answering a query are returned to Prolog one-at-a-time, on backtracking. A database cursor is automatically opened when a query is initiated, and it is closed as soon as a Prolog cut or failure effectively terminates the query. This is ideal for rapid prototyping. An application is developed with test data stored as Prolog facts. Later, that test data can be replaced with an external RDBMS. The Prolog database also contains rules. These rules may express database integrity constraints, or they may contain domain-specific knowledge, as in an expert system. ProDBI's ability to make an RDBMS's tables appear as Prolog facts allows Prolog rules easy access to data. Benefits of ProDBIProDBI makes all the benefits of Prolog programming available to RDBMS programmers. For Prolog programmers:
For RDBMS programmers:
See also ProDBI version 4.0 user guide. |