I use AllegroGraph to store instructions as follows:
<newsid1 hasAnnotation Gamma>
<newsid1 hasAnnotation Beta>
I would like to define a rule on these lines that states: if the subject is newsid1 hasAnnotationeither Gamma, or Beta, add a new expression to the tripestor, which says that the subject hasAnnotation Theta, i.e. expression
<newsid1 hasAnnotation Theta>
My questions are as follows:
- How can I define such a rule for Allegro?
- How can I apply these rules to operators?
source
share