JESS: access to specific slots

"nikos erinis" <[email protected]> Wed, 4 May 2011 16:42:23 +0200
Newsgroups gmane.comp.java.jess
Message-ID <26916_1304524388_p44FHZPb026892_BANLkTinFdbLadLKY3Cb1LcWH2Zxfzc9L3g@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