Re: odbc or other database-like interface TO Prolog



On 27 Nov 2006 12:28:30 -0800, "Weston"
<notsew-reversePreceedingAndRemoveThis@xxxxxxxxxxxxxxx> wrote:

13 years after doing some academic stuff in Turbo Prolog, I'm looking
at a potential project and realizing some aspects of it might be
simplified by using Prolog as a database and query mechanism rather
than a traditional SQL. However, I'm really not interested in writing
the entire app in Prolog. What I'd rather do is pick a scripting
language, and then make queries to a Prolog-server with an interface
much like one frequently sees to the commonly used SQL databases. To
use a perl/php-esque example, something that would enable a sequence
like this if I were trying to find a car that were red in a db of
prolog facts:

$prolog_query = "car(X,'red')";

$rsrc = odbc_connect("DRIVER={Prolog ODBC Driver};
CommLinks=tcpip(Host=$db_host);
DatabaseName=$db_name;",$db_user,$db_pass);

Check PrologBeans in SICStus Prolog

A.L.
.



Relevant Pages

  • Re: Prolog on a web server
    ... thrilled if you wanted to load it all into server VM:-/ ... rapidly build yourself a desktop app (Delphi? ... As for Prolog, it could surely be the basis of a decent ... grown-up database query language (an open standard dialect ...
    (comp.lang.prolog)
  • Re: Prolog on a web server
    ... >And I guess you want your current database state to survive ... >Prolog to support transactions, persistence and concurrency ... is in Prolog predicates, I can do this easily, without feeling guilty ... upload it, and then type in the data to the form I have created. ...
    (comp.lang.prolog)
  • Re: Prolog on a web server
    ... > And that you want a scalable solution, ... > And I guess you want your current database state to survive ... > Prolog to support transactions, ... it easily serves quite sizeable web-based applications. ...
    (comp.lang.prolog)
  • Re: odbc or other database-like interface TO Prolog
    ... simplified by using Prolog as a database and query mechanism rather ... than a traditional SQL. ... the entire app in Prolog. ... Why not manage your data in a regular database like MS Access. ...
    (comp.lang.prolog)
  • Re: database: prolog and relational
    ... I have on occasion seen Prolog referred to as "relational". ... A Prolog system effectively consists of a database ... of facts, a collection of predicates which tie the facts together (and ...
    (comp.lang.prolog)