Constructing a JIPCons

2/8/2013 8:24:56 AM
Gravatar
Total Posts 1

Constructing a JIPCons

What is the proper way to construct a JIPCons from a list of JIPTerms? 

Will this work?

JIPCons cons = JIPCons.NIL;

for (JIPTerm t : terms) {

   cons = JIPCons.create(cons, t);

}

 

5/2/2013 12:15:46 AM
Gravatar
Total Posts 4

Re: Constructing a JIPCons

Hi:

I find it easier to just construct a prolog model as a long string, and then load the string into a JIPEngine.  You can then solve queries against that JIPEngine afterward.  I think there are examples of this usage in the manual.  Have a look there.  If you do not understand what I am describing, I can give you some examples...

Cheers.

wing