Advertisement
logicmoo

Untitled

Jun 13th, 2015
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [16:33] <dmiles_afk> ?- ace_to_pkif('All persons have a heart.',X),kif_to_boxlog(X,_BOX),portray_clause((fol:-_BOX)).
  2. [16:33] <PrologMUD> kif :-
  3. [16:33] <PrologMUD>     all(PERSON_OBJ,
  4. [16:33] <PrologMUD>         exists(HEART_OBJ,
  5. [16:33] <PrologMUD>            v(NOT(tPerson(PERSON_OBJ)),
  6. [16:33] <PrologMUD>              &(tHeart(HEART_OBJ),
  7. [16:33] <PrologMUD>                mudHave(PERSON_OBJ, HEART_OBJ))))).
  8. [16:33] <PrologMUD> freev(skIsHeartInPersonArg2ofHaveFn(PERSON_OBJ),[PERSON_OBJ])fol :-
  9. [16:33] <PrologMUD>    
  10. [16:33] <PrologMUD>     [ (NOT(tPerson(PERSON_OBJ)):-{constraintExists(HEART_OBJ, skIsHeartInPersonArg2ofHaveFn(PERSON_OBJ))}, NOT(tHeart(HEART_OBJ))),
  11. [16:33] <PrologMUD>       (tHeart(HEART_OBJ):-{constraintExists(HEART_OBJ, skIsHeartInPersonArg2ofHaveFn(PERSON_OBJ))}, tPerson(PERSON_OBJ)),
  12. [16:33] <PrologMUD>       (NOT(tPerson(PERSON_OBJ)):-{constraintExists(HEART_OBJ, skIsHeartInPersonArg2ofHaveFn(PERSON_OBJ))}, NOT(mudHave(PERSON_OBJ, HEART_OBJ))),
  13. [16:33] <PrologMUD>       (mudHave(PERSON_OBJ, HEART_OBJ):-{constraintExists(HEART_OBJ, skIsHeartInPersonArg2ofHaveFn(PERSON_OBJ))}, tPerson(PERSON_OBJ))
  14. [16:33] <PrologMUD>     ].
  15. [16:33] <PrologMUD> X=all(PERSON_OBJ,exists(HEART_OBJ,exists(HAVE_EVENT, (-(tPerson(PERSON_OBJ));tHeart(HEART_OBJ),mudHave(PERSON_OBJ,HEART_OBJ))))).  det(Yes,1)
  16.  
  17.  
  18.  
  19. [23:35] <dmiles_afk> ace_to_pkif('The animal turned.',_G11439153),kif_to_boxlog(_G11439153,_G11439177),portray_clause(user_error, (fol:-_G11439177)),!.
  20. [23:35] <dmiles_afk> ?- ace_to_pkif('The animal turned.',_G11439153),kif_to_boxlog(_G11439153,_G11439177),portray_clause(user_error, (fol:-_G11439177)),!.
  21. [23:35] <PrologMUD> kif :-
  22. [23:35] <PrologMUD>     exists(TURNED_FRAME,
  23. [23:35] <PrologMUD>            exists(ANIMAL_OBJ,
  24. [23:35] <PrologMUD>               &(tAnimal(ANIMAL_OBJ),
  25. [23:35] <PrologMUD>             t(TURNED_FRAME, turned, ANIMAL_OBJ)))).
  26. [23:35] <PrologMUD> conj :-
  27. [23:35] <PrologMUD>    
  28. [23:35] <PrologMUD>     [ v(NOT({constraintExists(TURNED_FRAME, skArg1ofTFn)}),
  29. [23:35] <PrologMUD>         v(NOT({constraintExists(ANIMAL_OBJ, skIsAnimalInArgnofTFn)}),
  30. [23:35] <PrologMUD>           tAnimal(ANIMAL_OBJ))),
  31. [23:35] <PrologMUD>       v(NOT({constraintExists(TURNED_FRAME, skArg1ofTFn)}),
  32. [23:36] <PrologMUD>         v(NOT({constraintExists(ANIMAL_OBJ, skIsAnimalInArgnofTFn)}),
  33. [23:36] <PrologMUD>           t(TURNED_FRAME, turned, ANIMAL_OBJ)))
  34. [23:36] <PrologMUD>     ].
  35. [23:36] <PrologMUD> cf :-
  36. [23:36] <PrologMUD>     cl([tAnimal(ANIMAL_OBJ)],
  37. [23:36] <PrologMUD>        
  38. [23:36] <PrologMUD>        [ { constraintExists(TURNED_FRAME, skArg1ofTFn)
  39. [23:36] <PrologMUD>          },
  40. [23:36] <PrologMUD>          { constraintExists(ANIMAL_OBJ, skIsAnimalInArgnofTFn)
  41. [23:36] <PrologMUD>          }
  42. [23:36] <PrologMUD>        ]).
  43. [23:36] <PrologMUD> cf :-
  44. [23:36] <PrologMUD>     cl([t(TURNED_FRAME, turned, ANIMAL_OBJ)],
  45. [23:36] <PrologMUD>        
  46. [23:36] <PrologMUD>        [ { constraintExists(TURNED_FRAME, skArg1ofTFn)
  47. [23:36] <PrologMUD>          },
  48. [23:36] <PrologMUD>          { constraintExists(ANIMAL_OBJ, skIsAnimalInArgnofTFn)
  49. [23:36] <PrologMUD>          }
  50. [23:36] <PrologMUD>        ]).
  51. [23:36] <PrologMUD>  det(Yes,1)
  52. Session Time: Thu Jun 11 00:00:00 2015
  53. [15:27] <dmiles_afk> ?- ace_to_pkif('The animal turned.',_G11439153),kif_to_boxlog(_G11439153,_G11439177),portray_clause((fol:-_G11439177)),
  54.  
  55. [15:28] <dmiles_afk> ?- ace_to_pkif('A person who loves all animals is loved by someone.',_X),kif_to_boxlog(_X,_BOX),portray_clause((fol:-_BOX)).
  56. [15:28] <PrologMUD> kif :-
  57. [15:28] <PrologMUD>     exists(PERSON_OBJ,
  58. [15:28] <PrologMUD>            exists(SOMEBODY_OBJ,
  59. [15:28] <PrologMUD>               &(tPerson(PERSON_OBJ),
  60. [15:28] <PrologMUD>             &(=>(exists(ANIMAL_OBJ,
  61. [15:28] <PrologMUD>                     tAnimal(ANIMAL_OBJ)),
  62. [15:28] <PrologMUD>                  mudLove(PERSON_OBJ, ANIMAL_OBJ)),
  63. [15:28] <PrologMUD>               &(tSomebody(SOMEBODY_OBJ),
  64. [15:28] <PrologMUD>                 mudLove(SOMEBODY_OBJ, PERSON_OBJ)))))).
  65. [15:28] <PrologMUD> fol :-
  66. [15:29] <PrologMUD>    
  67. [15:29] <PrologMUD>     [ (tPerson(PERSON_OBJ):-{constraintExists(PERSON_OBJ, skIsPersonInArg1ofLoveSomebodyArg2ofFn)}, {constraintExists(SOMEBODY_OBJ, skIsSomebodyInArg1ofLoveFn)}),
  68. [15:29] <PrologMUD>       (tSomebody(SOMEBODY_OBJ):-{constraintExists(PERSON_OBJ, skIsPersonInArg1ofLoveSomebodyArg2ofFn)}, {constraintExists(SOMEBODY_OBJ, skIsSomebodyInArg1ofLoveFn)}),
  69. [15:29] <PrologMUD>       (mudLove(SOMEBODY_OBJ, PERSON_OBJ):-{constraintExists(PERSON_OBJ, skIsPersonInArg1ofLoveSomebodyArg2ofFn)}, {constraintExists(SOMEBODY_OBJ, skIsSomebodyInArg1ofLoveFn)}),
  70. [15:29] <PrologMUD>       (not_tAnimal(ANIMAL_OBJ):-{constraintExists(PERSON_OBJ, skIsPersonInArg1ofLoveSomebodyArg2ofFn)}, {constraintExists(SOMEBODY_OBJ, skIsSomebodyInArg1ofLoveFn)}, NOT(mudLove(PERSON_OBJ, ANIMAL_OBJ))),
  71. [15:29] <PrologMUD>       (mudLove(PERSON_OBJ, ANIMAL_OBJ):-{constraintExists(PERSON_OBJ, skIsPersonInArg1ofLoveSomebodyArg2ofFn)}, {constraintExists(SOMEBODY_OBJ, skIsSomebodyInArg1ofLoveFn)}, tAnimal(ANIMAL_OBJ))
  72. [15:29] <PrologMUD>     ].
  73. [15:29] <PrologMUD>  det(Yes,1)
  74. -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement