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 (InheritanceLink (ConceptNode "RuleBase_X")
 (ConceptNode "URE")) )

Step 4. Add rules to rule base
eg. (ure-add-rules Rule_A RuleBase_X)

You might use this
<https://github.com/opencog/atomspace/blob/master/examples/rule-engine/crisp-config.scm>
file
as a template to write your custom rulebase configuration.

On Mon, Apr 3, 2017 at 4:22 AM, Alex <alexander153...@gmail.com> 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
>
> (define rule1-name (Node "rule1")
> *(DefineLink rule1-name rule1)*
>
> DefineLinke requires as the first argument not the BindLink/rule node and
> it requires Defined(Schema/Predicate/Type) Node. So - at present I don't
> understant how to proceed. As far as I understandt then these two lines
> prepare the BindLink for the addition to the rule base, but why should we
> use DefineLink? I guess these are some idiomatic lines with no clear
> prupose but Rule Engine requires them...
>
> --
> You received this message because you are subscribed to the Google Groups
> "opencog" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to opencog+unsubscr...@googlegroups.com.
> To post to this group, send email to opencog@googlegroups.com.
> Visit this group at https://groups.google.com/group/opencog.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/opencog/604300d3-214b-4948-b2b7-c86b2cdbdc1f%40googlegroups.com
> <https://groups.google.com/d/msgid/opencog/604300d3-214b-4948-b2b7-c86b2cdbdc1f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Belachew Misgana Bayetta
'For everyone who asks receives, and the one who seeks finds, and to the
one who knocks it will be opened ' --Jesus
'The future belongs to those who believe in the beauty of their dreams'
--Eleanor Rusvelt

-- 
You received this message because you are subscribed to the Google Groups 
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to opencog+unsubscr...@googlegroups.com.
To post to this group, send email to opencog@googlegroups.com.
Visit this group at https://groups.google.com/group/opencog.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/opencog/CAOgrVvV%3Dv%2BuEcQw-Cp%3DCBcgjVjHzsK9krr669X%3Df0iZF3gT%2BBQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to