Questions tagged [clips]

CLIPS is an acronym for C Language Integrated Production System, rules-based programming framework designed for building expert systems.

CLIPS is an acronym for C Language Integrated Production System.

It is a rules-based programming framework designed for building expert systems. Its programming language COOL is similar to LISP and allows object-oriented as well as procedural programming. CLIPS itself is written in C and can be embedded in programs of other languages.

CLIPS core is a forward-chaining inference engine based on the Rete algorithm designed by Dr. Charles L. Forgy of Carnegie Mellon University.

It was developed starting 1985 at NASA to replace the existing LISP based expert system building tool ART*Inference and released into the public domain in the 1990s.

The original name of CLIPS was NASA's AI Language(NAIL).
Links:
CLIPS Web Site
CLIPS source forge

733 questions
34
votes
2 answers

Datalog vs CLIPS vs Prolog

As many programmers I studied Prolog in university, but only very little. I understand that Prolog and Datalog are closely related, but Datalog is simpler? Also, I believe that I read that Datalog does not depend on ordering of the logic clauses,…
Eli Schneider
  • 4,903
  • 3
  • 28
  • 50
8
votes
1 answer

CLIPS load and run program from file

I'm using CLIPS (http://clipsrules.sourceforge.net/) for a university project, but I cannot run program directly from files, in this case I don't want to use the prompt to insert FACTS and RULES. right now I'm doing this. I open CLIPS ... CLIPS> …
7
votes
1 answer

Fuzzy facts in clips

I made a fuzzy template that will represent a student's knowledge in a certain domain. Problem is that upon declaring a student John as low, he will also be declared as med because low students are also med between 30 and 40. How can I declare a…
George Irimiciuc
  • 4,573
  • 8
  • 44
  • 88
7
votes
2 answers

Clips- small routine program

I have 10 sensor that watch an environment. The sensor is 1 if OK and 0 if not. I need to create a functional that will print out a Warning message to the terminal if there are at least 3 sensor that are on 0, and the message warning to be showed…
lusian_andrei
  • 117
  • 1
  • 8
6
votes
0 answers

Rules Engine: Best fit for an embedded system

I have been doing some research on the rules engines that would be more appropriate run on a embedded system. The system will collect information from sensors and according to that information, make specific C/C++ calls. An example would be: IF…
FCR
  • 1,103
  • 10
  • 25
5
votes
1 answer

How to get a rule activation to call a python function, using PyClips

I am experimenting with PyClips and I want to integrate it tightly with Python, so that when a rule is activated, it calls a python function. Here is what I have so far: import clips def addf(a, b): return a +…
Homunculus Reticulli
  • 65,167
  • 81
  • 216
  • 341
5
votes
1 answer

CLIPS LHS binding variables

I'm trying to write a CLIPS program which use the Iterative Deepening algorithm to solve a planning problem. For this same reason I would like to keep a low branching factor. In the following code ?s is the variable which represent the level of the…
beppe95
  • 151
  • 6
5
votes
2 answers

Choice of architecture for exposing CLIPS expert system as web application

I am relative new to developing web applications. I would like your comments and suggestions of improvement for the following architectural considerations. I have developed an expert system ES using CLIPS. Now I am planning to provide this to…
5
votes
4 answers

How to use CLIPS rule based engine in a linux environment

I am new to computer science. My project requires to use CLIPS rule based engine and it runs in a RHEL box. Looking at the download link for clips (http://sourceforge.net/projects/clipsrules/files/CLIPS/6.30/) there is no linux package available. I…
mariner
  • 930
  • 3
  • 16
  • 25
5
votes
1 answer

CLIPS "Expected the beginning of a construct"

I have this homework(I'm a student), in CLIPS, however I can't make any progress, despite searching on google, and spending some time on it. (clear) (deftemplate book (multislot surname)(slot name)(multislot title) ) (book (surname J.P.)(name…
Iacob Eduard
  • 71
  • 1
  • 2
5
votes
1 answer

CLIPS and integration with C++

I am in the process of developing a fairly complex rules engine. So I decided to take help of any GNU rules engine and get it integrated with my application. I came across CLIPS as a good rules engine. Now, My application is in C++ and I want a…
kumar_m_kiran
  • 3,982
  • 4
  • 47
  • 72
4
votes
2 answers

CLIPS runtime crash

I wrote a program which asserts the facts in the LHS of this rule: (defrule check-open-better (declare (salience 50)) ?f1 <- (newnode (ident ?id) (gcost ?g) (fcost ?f) (father ?anc)) (status (ident ?id) (subject ?subject) (data $?eqL)) …
beppe95
  • 151
  • 6
4
votes
1 answer

Prolog/ASP(Clingo) to CLIPS translater

Is there any easy way to translate a Prolog/ASP code into CLIPS? Something like this one, but with CLIPS instead of Prover9: https://github.com/potassco/anthem/tree/master/examples
ciurlaro
  • 742
  • 10
  • 22
4
votes
2 answers

Using Python Functions From the Clips Expert System

Using PyClips, I'm trying to build rules in Clips that dynamically retrieve data from the Python interpreter. To do this, I register an external function as outlined in the manual. The code below is a toy example of the problem. I'm doing this…
Cerin
  • 60,957
  • 96
  • 316
  • 522
3
votes
1 answer

How to route I/O to console AND logfile using clipspy

I am using clipspy v1.0.0 and Python 3.10 on Ubuntu 22.0.4 LTS. I am trying to get commands from CLIPS rules (e.g. print t 'WARN: Listen up, maggots...') to print to the console by calling my registered function, which will then parse the message…
Homunculus Reticulli
  • 65,167
  • 81
  • 216
  • 341
1
2 3
48 49