Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-discussion] access to specific slot

nikos erinis n.erinis at googlemail.com
Mon May 9 03:14:23 PDT 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-discussion/attachments/20110509/4e9b008c/attachment.html>


More information about the protege-discussion mailing list