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] Algernon - :count

Robert Dave twisterstormm at
Tue Mar 27 02:54:55 PDT 2007


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,

More information about the protege-discussion mailing list