Something strange with JavaAPI

Help
2008-12-23
2013-05-28
  • Ivan Sysoev
    Ivan Sysoev
    2008-12-23

    Good day!
    I encountered a problem with JavaAPI when I tried to run this simple program:

       CycAccess cycAccess=new CycAccess();
       CycList gaf = cycAccess.makeCycList("(#$implies (#$isa ?X #$Dog) (#$not (#$isa ?X #$Cat)))");
       CycFort mt = cycAccess.getKnownConstantByName("#$UniversalVocabularyMt");
       HashMap queryProperties = new HashMap();
       boolean isQueryTrue = cycAccess.isQueryTrue(gaf, mt, queryProperties);
       System.out.println(isQueryTrue);

    It printed "false".
    But when I ask the same question using Web Interface, the return was "true".

    What is the problem?