CLIPS

Tool for building expert systems


title: "CLIPS" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["expert-systems", "public-domain-software-with-source-code", "domain-specific-programming-languages", "knowledge-representation-languages"] description: "Tool for building expert systems" topic_path: "technology/programming-languages" source: "https://en.wikipedia.org/wiki/CLIPS" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::summary Tool for building expert systems ::

::data[format=table title="Infobox programming language"]

FieldValue
nameCLIPS
paradigmobject-oriented, expert system
developerNASA Johnson Space Center
released
latest release version6.4.1
latest release date
memory managementgarbage collected
programming languageC
licensepublic domain
website
influenced byOPS5
::

| name = CLIPS | logo = | paradigm = object-oriented, expert system | designer = | developer = NASA Johnson Space Center | released = | latest release version = 6.4.1 | latest release date = | typing = | memory management = garbage collected | programming language = C | license = public domain | file ext = | website = | wikibooks = | implementations = | dialects = | influenced by = OPS5 | influenced = CLIPS (C Language Integrated Production System) is a public-domain software tool for building expert systems. The syntax and name were inspired by Charles Forgy's OPS5. The first versions of CLIPS were developed starting in 1985 at the NASA Johnson Space Center (as an alternative for existing system ART*Inference) until 1996, when the development group's responsibilities ceased to focus on expert system technology. The original name of the project was NASA's AI Language (NAIL).

As of 2005, CLIPS was probably the most widely used expert system tool. CLIPS is written in C, extensions can be written in C, and CLIPS can be called from C. Its syntax resembles that of the programming language Lisp.

CLIPS incorporates a complete object-oriented programming language for writing expert systems. COOL combines the programming paradigms of procedural, object oriented, and logic programming (automated theorem proving) languages.

Facts and rules

CLIPS uses forward chaining. Like other expert system languages, CLIPS deals with rules and facts. Various facts can make a rule applicable. An applicable rule is then fired. Facts and rules are created by first defining them, as shown below:

(deftemplate car_problem (slot name) (slot status))

(deffacts (car_problem (name ignition_key) (status on)) (car_problem (name engine) (status wont_start)) (car_problem (name headlights) (status work)))

(defrule rule1 (car_problem (name ignition_key) (status on)) (car_problem (name engine) (status wont_start))

(assert (car_problem (name starter) (status faulty))))

Having set this up, the (reset) command causes CLIPS to read the facts and rules. In this case, that would lead to the three "" facts being asserted. Then the (run) command is used. Given that the two facts listed in rule1 have both been asserted, the conditions for doing its action have been met so the additional fact is asserted as a result of the run. CLIPS (reset) CLIPS (agenda) 0 rule1: f-1,f-2 For a total of 1 activation. CLIPS (facts) f-0 (initial-fact) f-1 (car_problem (name ignition_key) (status on)) f-2 (car_problem (name engine) (status wont_start)) f-3 (car_problem (name headlights) (status work)) For a total of 4 facts. CLIPS (run) CLIPS (facts) f-0 (initial-fact) f-1 (car_problem (name ignition_key) (status on)) f-2 (car_problem (name engine) (status wont_start)) f-3 (car_problem (name headlights) (status work)) f-4 (car_problem (name starter) (status faulty)) For a total of 5 facts. CLIPS (assert +) (Assert (object (name "chair") (Material wood) (height 3feet) (Color brown)) CLIPS(retract (retract 0) for a color

In CLIPS, salience allows a user to assign priority (or weight) to a rule.

Descendants

Descendants of the CLIPS language include Jess (rule-based portion of CLIPS rewritten in Java, it later grew in a different direction), and FuzzyCLIPS (which adds concept of relevancy into the language).

References

References

  1. (2005). "ERESYE: artificial intelligence in Erlang programs". ACM.
  2. (2005). "Expert Systems: Principles and Programming". Thomson.
  3. (30 November 2017). "CLIPS Reference Manual: Volume 1 – Basic Programming Guide".
  4. (2011). "CLIPS based decision support system for water distribution networks". Drinking Water Engineering and Science.
  5. (2014). "Knowledge based system for Satellite data product selection". The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences.

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

expert-systemspublic-domain-software-with-source-codedomain-specific-programming-languagesknowledge-representation-languages