Interprolog - receiving multiple results from XSB
From: Luis (luizsoarez_at_yahoo.ca)
Date: 07/16/04
- Previous message: vannoord_at_let.rug.nl: "Re: Writing Mercury's aggregate/4 in prolog"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: vannoord_at_let.rug.nl: "Re: Writing Mercury's aggregate/4 in prolog"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|