Search Mailing List Archives
[protege-discussion] Algernon - :count
Robert Dave
twisterstormm at hotmail.com
Tue Mar 27 02:54:55 PDT 2007
Hi,
I would like to use in Algernon a rule which counts the number of items in a
multiple slot and them write the number in a integer slot. I tried the following
code, but it doesn't work :
(tell ((:add-rule Box
((:Name ?c ?f)(:count ?num ?p (Items ?c ?p))
-> (Number_of_Items ?c ?num)
)
)))
Box has two slots : Item (multiple) and Number_of_Items (single)
Thx in advance,
Robert.
More information about the protege-discussion
mailing list