home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / ai / shells / 399 < prev    next >
Encoding:
Text File  |  1992-08-16  |  1.2 KB  |  47 lines

  1. Newsgroups: comp.ai.shells
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!usc!sol.ctr.columbia.edu!news
  3. From: news@ctr.columbia.edu (The Daily Lose)
  4. Subject: RE: Multiple Knowledge Bases in CLIPS
  5. Organization: Columbia University Center for Telecommunications Research
  6. Message-ID: <1992Aug17.151655.15512@ctr.columbia.edu>
  7. Date: Mon, 17 Aug 1992 15:16:55 GMT
  8. X-Posted-From: dlgeo.cr.usgs.gov
  9. X-Posted-Through: sol.ctr.columbia.edu
  10. Lines: 35
  11.  
  12. I know of no way to do what Scott was inquiring about running mutiltiple
  13. knowledge bases in CLIPS.  It may You could probably do something lito
  14. include a fact in to only match on your Instance 1/Instance 2: . I
  15. am not saying this very well:
  16.  
  17. (defrule rule-1
  18.    (instance 1)
  19.    (whatever other facts apply)
  20. =>
  21.    RHS
  22. )
  23.  
  24. (defrule rule-2
  25.    (instance 2)
  26.    (whatever other facts apply)
  27. =>
  28.    RHS
  29. )
  30.  
  31. Or maybe
  32. (defrule zzz
  33.    (instance 1-1 (fact) fact(fact))
  34. =>
  35.    RHS
  36. )
  37. where you use deftemplate facts (guess I used (fact) incorrectly hereabove).
  38.  
  39. Sorry this is a mess - I have no direct access to news , so am
  40. using a server which means I can't edit a nice sensible message
  41. before I submit it.
  42.  
  43. Pat McCLanahan
  44. EROS Data Center
  45. Sioux Falls, SD
  46. mcclanah@dlgeo.cr.usgs.gov
  47.