knowledgewright4/samples/basic/tutorial/diagnose_1.kb
Next we'll build a simple technical support application with a few simple rules. The goal of the system will be to determine what the problem is.
KnowledgeWright groups rules that deduce values for the same fact in rule_sets.
Each rule object in KnowledgeWright Basic contains a number of individual rules, each of which might be used to determine the value of a fact. So in this case, we'll create a rule_set object, named problem, which will have rules that can be used to determine a value for problem.

The status window at the bottom of the screen provides two tools for analyzing the connections between knowledge objects.
In this example we have so far created a knowledgebase main object that has as a goal problem, and a rule_set problem that has conditions that refer to other, as yet undefined facts.
Click on the exclamation mark tab to see any problems in the structure of the knowledgebase, and you will see a screen like the following:

and the other status tab looks like this:

We will get values for the four undefined facts by asking the user. So we need to define question objects for each of them.
Using the Object/New menu, create four questions objects with these attributes:
id symptom path / prompt What symptom are you experiencing? question_type menu_single_choice question_style listboxchoices video screen blank mouse sticky default ask_also
id led_light path / prompt What is the state of the video LED light? question_type menu_single_choice question_style listboxchoices on off default ask_also
id mouse_pad path / prompt Are you using a mouse pad? question_type menu_single_choice question_style listboxchoices yes no default ask_also
id rollers_clean path / prompt Have you recently cleaned the rollers? question_type menu_single_choice question_style listboxchoices yes no default ask_also
|
|
Copyright ©1995-2006 Amzi!
inc. All Rights Reserved. Privacy Policy.
Amzi!, KnowledgeWright and WebLS are registered
trademarks and Adventure in Prolog, Logic Server, Logic Explorer, Adventure
in Prolog and Subscription Plus are trademarks of Amzi! inc.