开发者

OWL2 RL via RETE algorithm

开发者 https://www.devze.com 2023-03-27 04:08 出处:网络
I am currently trying to implement OWL2 RL via Rete algorithm. I have run into the following issue: How to imple开发者_JS百科ment lists needed for example in this rule: eq-diff2 (W3C reccomendation)?

I am currently trying to implement OWL2 RL via Rete algorithm. I have run into the following issue: How to imple开发者_JS百科ment lists needed for example in this rule: eq-diff2 (W3C reccomendation)?

Thanks.


I have developed this solution.

  1. Before inference construct the lists in memory. It is simple, because the elements can be easily identified.
  2. Construct RETE nodes for first m rules, which don't need "loop" construct
  3. Put an action in the last node:

    1. Add new Rete (alpha+beta) nodes for the corresponding list (you will always know which, because it's one of the "static" rules)
    2. Put corresponding WMEs into newly created alpha memories
    3. Activate Beta nodes
  4. It is probably possible to remove the whole "dynamic" branch after the final action is performed.

0

精彩评论

暂无评论...
验证码 换一张
取 消