access to specific slot

nikos erinis <[email protected]> Mon, 9 May 2011 12:14:23 +0200
Newsgroups gmane.comp.misc.ontology.protege.general,gmane.comp.java.jess
Message-ID <[email protected]>
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

_______________________________________________
protege-discussion mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/protege-discussion

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03