JESS: access to specific slot
"nikos erinis" <[email protected]> Mon, 9 May 2011 12:14:23 +0200
| Newsgroups | gmane.comp.java.jess,gmane.comp.misc.ontology.protege.general |
|---|---|
| Message-ID | <8802_1304939044_p49B3mHC011484_BANLkTikZkn2PpnBHopS9G6ptpcmeXUhdkw@mail.gmail.com> |
hi guys, can anyone tell me how to access a specific slot in the jesstab in protege 3.4.6 ? i.e. -------------------------------------------------------------------------------------------------------------------------------- (defrule find-something "finds something" ?p <- (object (is-a class-name) (slot-name ?s) (slot-name ?v)) => (printout t "bla bla " (instance-name ?p) " bla bla " (instance-name ?v) " bla. "crlf) ) -------------------------------------------------------------------------------------------------------------------------------- the rule above works fine but when i try to do the following, then it doesnt work anymore -------------------------------------------------------------------------------------------------------------------------------- (defrule find-something "finds something" ?p <- (object (is-a class-name) (slot-name specific-instance-of-a-class) (slot-name ?v)) => (printout t "bla bla " (instance-name ?p) " bla bla " (instance-name ?v) " bla. "crlf) ) -------------------------------------------------------------------------------------------------------------------------------- thank you for your time