1 Dec 2005 02:57
Re: forward-chaining issue
Hans Chalupsky <hans <at> ISI.EDU>
2005-12-01 01:57:33 GMT
2005-12-01 01:57:33 GMT
Dear Pan Xingzhi,
yes, the PowerLoom forward chainer only considers rules with simple
antecedents and rules with complex antecedents that are marked as
`:forward-only? TRUE'. You can of course get the answer you are
looking for by using backward inference via `ask':
STELLA(163): (all-facts-of com1)
(|P|(COMPANY COM1) |P|(NUMBER-OF-MANAGERS COM1 10) |P|(NUMBER-OF-EMPLOYEES COM1 50))
STELLA(164): (ask (small-company com1))
TRUE
STELLA(165):
The division of labor between forward and backward chaining is
primarily a performance issue, since depending on fanout, some rules
are much more efficiently run forward than backward and vice versa.
You can help PowerLoom by annotating which rules you want to run
forward and which ones backwards only.
For example, if you want this to be added with the forward-chainer,
you can mark the rule as "forward-only" with the `=>>' notation:
STELLA(165): (assert
(forall ?c
(=>> (and (number-of-employees ?c 50)
(number-of-managers ?c 10))
(small-company ?c))))
|P|(FORALL (?c)
(=>> (AND (NUMBER-OF-EMPLOYEES ?c 50) (NUMBER-OF-MANAGERS ?c 10))
(SMALL-COMPANY ?c)))
(Continue reading)
Hans
>>>>> Xingzhi Pan <vengeance.storm <at> gmail.com> writes:
> I'm doing a little work with PowerLoom-OWL conversion, and may have a
> series of questions in a few days :)
> Some parts of them are easy, but when I was going to export the data
> in PL into an OWL KB, I can't find a way to do things like "acquire
> all the concepts from the PL KB". At present I'm using
> Module.allSymbols, however it's still hard to tell what the returned
> Stella_Object is (concept, relation, etc).
RSS Feed