deduction_rule = BindLink( VariableList( TypedVariableLink( VariableNode('$A'), TypeNode('ConceptNode')), TypedVariableLink( VariableNode('$B'), TypeNode('ConceptNode')), TypedVariableLink( VariableNode('$C'), TypeNode('ConceptNode'))), AndLink( ImplicationLink( VariableNode('$A'), VariableNode('$B')), ImplicationLink( VariableNode('$B'), VariableNode('$C')), NotLink( EqualLink( VariableNode('$A'), VariableNode('$C')))), ExecutionOutputLink( GroundedSchemaNode('py: deduction_formula'), ListLink( ImplicationLink( VariableNode('$A'), VariableNode('$C')), ImplicationLink( VariableNode('$A'), VariableNode('$B')), ImplicationLink( VariableNode('$B'), VariableNode('$C')))))
--
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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/8078db0b-aee3-4d57-8319-50e76ad60003%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/8078db0b-aee3-4d57-8319-50e76ad60003%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to opencog+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/dd68bda3-746f-4206-a740-ba39f0f4058c%40googlegroups.com.
[2020-01-20 17:45:13:345] [ERROR] Python function 'deduction_formula' not found in module '__main__'! (/home/rasberry/git/atomspace/opencog/cython/PythonEval.cc:1003)
To view this discussion on the web visit https://groups.google.com/d/msgid/opencog/dd68bda3-746f-4206-a740-ba39f0f4058c%40googlegroups.com.
deduction_formula
= deduction_formula
deduction_formula should be imported before.
The more accurate way is using name of the module as a prefix in GroundedSchemaNode name. To do this your function should be a member of the some Python module:GroundedSchemaNode('py: mymodule.deduction_formula'),
```
You can look at examples at: https://github.com/opencog/atomspace/blob/master/examples/python/ground/ground.py