[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Info-gnuprologjava] problem creating queries with NOT (negation as
From: |
SUZUKI Hisao |
Subject: |
Re: [Info-gnuprologjava] problem creating queries with NOT (negation as failure) |
Date: |
Sun, 29 Apr 2012 18:51:32 +0900 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120420 Thunderbird/12.0 |
On 26 Apr 2012, I wrote:
> You can use \+ as a "not" predicate in ISO Prolog.
Thus simply you can write it as follows:
Term[] t1 = { AtomTerm.get("cat") };
Term ct1 = new CompoundTerm ("bird", t1);
Term goalTerm = new CompoundTerm (CompoundTermTag.get("\\+", 1), ct1);
int rc = interp.runOnce(goalTerm);
I hope you understand it now.
suzuki (at home)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Info-gnuprologjava] problem creating queries with NOT (negation as failure),
SUZUKI Hisao <=