Step 2 is used by step 4 (it is a bit obfuscated by the helper
ure-add-rules, which creates a MemberLink between the rule name and the
rule base).
In practice, the only reason we need is to store the rule name in the
AtomSpace (the scheme rule name alone isn't loaded in the atomspace).
And
There were some errors in the readme, now corrected.
Nil
On 04/02/2017 11:22 PM, Alex wrote:
I am also trying to run
this
https://github.com/opencog/atomspace/tree/master/examples/rule-engine/chaining
example and I enter SCM commands one by one and I am also stopped at
lines DefineLink
Hi, here are the steps to take in order to define rules and a rule base for
the chainer:
step 1. Define the rules
eg. (define Rule_A (BindLink) )
Step 2. Create a DefineLink
eg. (DefineLink (DefinedSchemaNode "Rule_A") Rule_A)
Step 3. Define a rulebase
eg. (define RuleBase_X
I am also trying to run
this
https://github.com/opencog/atomspace/tree/master/examples/rule-engine/chaining
example and I enter SCM commands one by one and I am also stopped at lines
DefineLink
(define rule1-name (Node "rule1")
*(DefineLink rule1-name rule1)*
DefineLinke requires as the
However, that example should be changed to load all modules that it
needs, instead of leaving the user to guess what needs to be done.
Its not a very user-friendly example.
Perhaps you could try to do this?
Ideally, one should be able to just run "guile -l someexample.scm" and
have it just work,
It looks like you did not actually define node1 before using it.
--linas
On Fri, Feb 10, 2017 at 7:18 AM, Vishnu Priya wrote:
>
> Hi Nil,
> Thanks.
> I also got an exception when i typed the following line in scheme as in
>
>
Hi, it looks like you didn't import the rule-engine modules, see for
instance
https://github.com/opencog/atomspace/blob/master/examples/rule-engine/crisp.scm#L16
Nil
On 02/10/2017 12:26 PM, Vishnu Priya wrote:
Hi,
I tried forward chaining as in
Hi,
the backward chainer is not mature yet, it may or not work for you, I
think it will be mature enough after 2 week.
The forward chainer should work as expected. See
http://wiki.opencog.org/w/URE_Configuration_Format to define a rule base.
See also