I would like to solve the following very basic problem with CLIPS:
Given a list of restaurants and types of food served by those restaurants and also given a food craving, give me a suggestion on what restaurant to visit.
What I have so far is pretty basic. I can create a template for a restaurant with the different food possibilities:
;;;*************
;;;* EATERIES *
;;;*************
(deftemplate restaurant
(slot name
(type SYMBOL)
(default ?NONE))
(slot food-served
(type SYMBOL)
(allowed-symbols salad coffee vegan breakfast burgers)
(default blank)))
How would I then define specific restaurants with their food choices?
How would I specify the food I am craving?
How would I define rules, for example:
IF craving-salad THEN go-to-salad-bar