You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This does not works as both p and q are not fact-identifier but come as entire fact-template.
How to change only one slot of the template keeping other intact.
The text was updated successfully, but these errors were encountered:
As I already mention in issue #11, GitHub is not the right place for general questions. For that, please use the official CLIPS forum and stackoverflow. Please limit the usage of GitHub issues for bugs or feature requests which are strictly related to the clipspy Python bindings.
This said, before deep diving into integrating CLIPS into any platform I'd recommend you to first get familiar with the CLIPS language itself. You can refer to its Basic Programming Guide and to help yourself you can either use the CLIPS native console or its Jupyter counterpart.
Once you are familiar with the CLIPS language and its quirks, you can refer to the Advanced Programming Guide to better understand how to integrate it into your software. You will then realize that clipspy is just a thin wrapper of CLIPS C programming interface. You can also refer to clipspy documentation at the following link.
The code you are posting is incorrect. (fact_template (slot_1 ?s1) is broken as the number of parenthesis do not match. (fact_template (slot_1 ?s1)) is not going to do what you think. It's going to call a function fact_template which does not exists and therefore the rule execution will stop.
$ clips
CLIPS (6.30 3/17/15)
CLIPS> (deftemplate foo)
CLIPS> (foo 1)
[EXPRNPSR3] Missing function declaration for foo.
This does not works as both p and q are not fact-identifier but come as entire fact-template.
How to change only one slot of the template keeping other intact.
The text was updated successfully, but these errors were encountered: