Re: Prolog in a Java Tomcat environnement

From: Paul Singleton (
Date: 11/15/04

  • Next message: Djamé Seddah: "Re: Prolog in a Java Tomcat environnement"
    Date: Mon, 15 Nov 2004 13:50:48 +0000

    The JPL which is bundled with current (5.4.x) SWI-Prologs supports
    embedding SWI-Prolog in servlets, and I'll email you a sample web
    app which demonstrates this. There's some newish API, not yet
    finalised, which would simplify passing (references to) Java objects
    into Prolog, and you're welcome to try this out and comment on it.

    At this stage, it's all about enabling Prolog to respond to HTTP
    requests while getting the container (Tomcat or whatever) to do
    as much of the work as possible and factoring out other common stuff
    into a reusable interface. Not all design decisions are obvious
    (to me) and some fresh inupt and experience would be good.

    Responding with HTML content is a separate issue (the HTTP interface
    is MIME-type neutral) and you have various options...

    Paul Singleton

    Jan Wielemaker wrote:

    > In article <4194e1d8$0$15270$>, Djamé Seddah wrote:

    >>I plan to switch a treatment of ontology from JENA api to swi prolog
    >>based one.... but, all the programs are to be used under tomcat
    >>environnement so I was wondering :
    >>1) should I write wrapper classes in java and use the JPL environnement
    >>to run my prolog code
    >>2) should I use the Prolog server page system described here
    >>) but the system they describe doesn't seem to be available
    >>3° should I keep digging in google in order to look after some obscure
    >>system well integrated to tomcat ????
    >>Seriously, i'll be glad to discuss with people really invoveld on any
    >>work on ontologies with prolog or jena in order to confront our experience.
    >>In a second point, I really want to know if someone has ever integrated
    >>prolog code in a tomcat environnement.

    > Paul Singleton, one of the authors of JPL, actively uses SWI-Prolog/JPL
    > to embed SWI-Prolog in servlets. I think (not sure) the JPL
    > documentation explicitly addresses this issue. Most likely he'll be
    > willing to help.
    > ...

    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==---- The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= East/West-Coast Server Farms - Total Privacy via Encryption =---

  • Next message: Djamé Seddah: "Re: Prolog in a Java Tomcat environnement"

    Relevant Pages

    • Re: How to combine JAVA and SWI-PROLOG
      ... How to Embed Prolog in Java on Windows ... The Prolog side uses SWI-Prolog, ... side uses the JPL version 1.01. ...
    • Re: fyi Computer Language Benchmarks Game
      ... We have SWI-Prolog and YAP installed, the problem with Prolog on the ... Here are the programs contributed for SWI-Prolog ... energy(Bodies, EnergyStart), ... forall(member(E, Bodies), ...
    • Re: CLP(FD) team for the ASP solver competition
      ... Extensions for Prolog Courses. ... nicer with B-Prolog is that no licence is required for evaluation. ... I do not know why you call SWI-Prolog "unreasonably slow". ...
    • Re: Prolog in a Java Tomcat environnement
      ... >>1) should I write wrapper classes in java and use the JPL environnement ... >>prolog code in a tomcat environnement. ... I think the JPL ... your Java web app. ...
    • Re: SWIPL + JPL multiple databases
      ... My small prolog example (using Family example from jpl swi + the ... But using the java example: ... Query q3 = new Query; ... JPL demo: Family ...