Interprolog - receiving multiple results from XSB

From: Luis (luizsoarez_at_yahoo.ca)
Date: 07/16/04

  • Next message: Georgios Tagalakis: "Re: Writing Mercury's aggregate/4 in prolog"
    Date: 15 Jul 2004 15:59:51 -0700
    
    

    Hi all.

    I've been trying to do some programming with Interprolog but I find
    the documentation somewhat brief in some aspects; and this is one of
    them.

    If I got it well, PrologEngine.deterministicGoal() only returns one
    solution. So in my case, with the following knowledge base

    band(bush).
    band('system of a down').

    sings('gavin rossdale').
    sings('serj tankian').

    (...)

    and the Java instruction

    Object[] guren = engine.deterministicGoal("sings(X)","[string(X)]");

    guren[0] will have "gavin rossdale".

    So far so good.
    Now my question is how do I get the other results?

    >From the Interprolog API documentation I got the feeling I should use
    PrologEngine.handleCallback() but this function's comments don't say
    too much... "Handling of javaMessages and deterministicGoals. This is
    where most things happen."

    I also saw several references to JavaMessage and in this article
    (http://www.cs.ucy.ac.cy/compulog/dec98update/projects/interprolog.htm)
    there's the suggestion of using ipObjectSpec. However, not only the
    example is somewhat old, as it doesn't work...

    Any ideas or anyone has some other (better :)) reference to
    Interprolog documentation?

    Tnx,
    Luis


  • Next message: Georgios Tagalakis: "Re: Writing Mercury's aggregate/4 in prolog"

    Relevant Pages

    • Re: Annedoti, Anon (Re: A China-Sumer connection)
      ... >> not familiar with any of them wearing fish costumes. ... > I don't have references on hand - and even if I found some by digging thru ... >> they displayed your level of erudition and documentation, ... Sumerian site. ...
      (sci.archaeology)
    • Re: Annedoti, Anon (Re: A China-Sumer connection)
      ... >> not familiar with any of them wearing fish costumes. ... > I don't have references on hand - and even if I found some by digging thru ... >> they displayed your level of erudition and documentation, ... Sumerian site. ...
      (sci.anthropology)
    • Re: Annedoti, Anon (Re: A China-Sumer connection)
      ... >> not familiar with any of them wearing fish costumes. ... > I don't have references on hand - and even if I found some by digging thru ... >> they displayed your level of erudition and documentation, ... Sumerian site. ...
      (sci.lang)
    • Fixing 2.6.0s broken documentation references
      ... I've noted that 2.6.0 contains broken references to documentation. ... I got sufficiently annoyed chasing doc files in the wrong place ... that I wrote a script to check the references to documentation ...
      (Linux-Kernel)
    • Re: String in VB
      ... | Any references to documentation where this is written? ... Yes, Armin told you where: ... |> function be the destination of an assignment? ...
      (microsoft.public.dotnet.languages.vb)