CLIPS - Facts and Rules

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:

    The sway of alcohol over mankind is unquestionably due to its power to stimulate the mystical faculties of human nature, usually crushed to earth by the cold facts and dry criticisms of the sober hour. Sobriety diminishes, discriminates, and says no; drunkenness expands, unites, and says yes.
    William James (1842–1910)

    Obviously the facts are never just coming at you but are incorporated by an imagination that is formed by your previous experience. Memories of the past are not memories of facts but memories of your imaginings of the facts.
    Philip Roth (b. 1933)

    However diligent she may be, however dedicated, no mother can escape the larger influences of culture, biology, fate . . . until we can actually live in a society where mothers and children genuinely matter, ours is an essentially powerless responsibility. Mothers carry out most of the work orders, but most of the rules governing our lives are shaped by outside influences.
    Mary Kay Blakely (20th century)