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/or rules:

    “It is of the highest importance in the art of detection to be able to recognise out of a number of facts which are incidental and which are vital.... I would call your attention to the curious incident of the dog in the night-time.”
    “The dog did nothing in the night-time.”
    “That was the curious incident.”
    Sir Arthur Conan Doyle (1859–1930)

    Can rules or tutors educate
    The semigod whom we await?
    He must be musical,
    Tremulous, impressional,
    Alive to gentle influence
    Of landscape and of sky
    And tender to the spirit-touch
    Of man’s or maiden’s eye.
    Ralph Waldo Emerson (1803–1882)