Re: [opencog-dev] Calling forward/backward chainer

2017-04-03 Thread 'Nil Geisweiller' via opencog
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

Re: [opencog-dev] Calling forward/backward chainer

2017-04-02 Thread 'Nil Geisweiller' via opencog
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

Re: [opencog-dev] Calling forward/backward chainer

2017-04-02 Thread Misgana Bayetta
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

Re: [opencog-dev] Calling forward/backward chainer

2017-04-02 Thread Alex
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

Re: [opencog-dev] Calling forward/backward chainer

2017-02-10 Thread Linas Vepstas
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,

Re: [opencog-dev] Calling forward/backward chainer

2017-02-10 Thread Linas Vepstas
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 > >

Re: [opencog-dev] Calling forward/backward chainer

2017-02-10 Thread 'Nil Geisweiller' via opencog
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

Re: [opencog-dev] Calling forward/backward chainer

2016-12-05 Thread 'Nil Geisweiller' via opencog
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