Facts and Rules
Like other expert system languages, CLIPS deals with rules and facts. Various facts can make a rule applicable. An applicable rule is then asserted. Facts and rules are created by first defining them, as shown below:
(deftemplate car_problem (slot name) (slot status) ) (deffacts trouble_shooting (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))) )In CLIPS, salience allows a user to assign priority (or weight) to a rule.
Read more about this topic: CLIPS
Famous quotes containing the words facts and, facts and/or rules:
“It is part of the educators responsibility to see equally to two things: First, that the problem grows out of the conditions of the experience being had in the present, and that it is within the range of the capacity of students; and, secondly, that it is such that it arouses in the learner an active quest for information and for production of new ideas. The new facts and new ideas thus obtained become the ground for further experiences in which new problems are presented.”
—John Dewey (18591952)
“One would appear ridiculous who would say, that it is only probable the sun will rise to-morrow, or that all men must die; though it is plain we have no further assurance of these facts than what experience affords us.”
—David Hume (17111776)
“Today the tyrant rules not by club or fist, but, disguised as a market researcher, he shepherds his flocks in the ways of utility and comfort.”
—Marshall McLuhan (19111980)