This page (revision-39) was last changed on 01-Apr-2020 01:46 by albrecht.striffler

This page was created on 31-Oct-2012 12:40 by Joachim Baumeister

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
39 01-Apr-2020 01:46 4 KB albrecht.striffler to previous
38 22-Feb-2017 17:52 4 KB Albrecht Striffler to previous | to last
37 29-Apr-2016 15:52 4 KB Albrecht Striffler to previous | to last
36 29-Apr-2016 15:52 4 KB Albrecht Striffler to previous | to last
35 29-Apr-2016 15:51 4 KB Albrecht Striffler to previous | to last
34 29-Apr-2016 15:47 4 KB Albrecht Striffler to previous | to last
33 29-Apr-2016 15:44 4 KB Albrecht Striffler to previous | to last
32 29-Apr-2016 15:42 4 KB Albrecht Striffler to previous | to last
31 29-Apr-2016 15:40 4 KB Albrecht Striffler to previous | to last
30 29-Apr-2016 15:30 3 KB Volker Belli to previous | to last
29 17-Sep-2015 15:50 3 KB Albrecht Striffler to previous | to last
28 17-Sep-2015 15:50 3 KB Albrecht Striffler to previous | to last
27 17-Sep-2015 15:50 3 KB Albrecht Striffler to previous | to last
26 17-Sep-2015 15:49 3 KB Albrecht Striffler to previous | to last
25 17-Sep-2015 15:49 3 KB Albrecht Striffler to previous | to last
24 17-Sep-2015 15:47 3 KB Albrecht Striffler to previous | to last
23 17-Sep-2015 15:47 3 KB Albrecht Striffler to previous | to last
22 17-Sep-2015 15:46 3 KB Albrecht Striffler to previous | to last
21 19-Jun-2015 13:31 3 KB Albrecht Striffler to previous | to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 removed 5 lines
%%KnowledgeBase
BMI Demo
@uses: BMI Demo
%
At line 3 added 2 lines
\\
To test it, add some values in the interview questionnaire below.
At line 9 removed 3 lines
The BMI is calculated using DiaFlux models, where first the "Height" and "Weight" is asked to the user.
Then, the value of the abstraction "bmi" is derived, when values for the aforementioned questions are known.
Final solutions are derived depending on the result of the calculated value of "bmi".
At line 13 changed one line
!!! Interview and Solutions
!! Interview
At line 9 added 6 lines
%%QuickInterview
%
!! Solutions
At line 16 changed 3 lines
@master: Body-Mass-Index
@show_abstractions: true
@show_digits: 2
@show_abstractions: true
At line 21 removed one line
[{KnowWEPlugin quickInterview}]
At line 20 added one line
!! The Knowledge Base
At line 24 changed one line
!!! The Knowledge Base
In this part of the article, the knowledge base for this demo is defined.
At line 24 added 46 lines
!Terminology
We first define __what__ questions can be asked and solutions can be derived in this demo.
%%Question
Start questionaire #1
- Height [num] (0.1 3) {m}
- Weight [num] (1 300) {kg}
- bmi [num] <abstract>
%
%%Solution
Weight Assessment
- Underweight
- Normal weight
- Overweight
- Severe overweight
%
We also define german question and solution texts. This is optional. If no texts are given for a certain language, the original name is shown.
%%Property
Height.prompt.de = Wie groß sind Sie?
Weight.prompt.de = Wie schwer sind Sie?
bmi.prompt.de = Ihr Body Mass Index
Underweight.prompt.de = Untergewicht
Normal weight.prompt.de = Normalgewicht
Overweight.prompt.de = Übergewicht
Severe overweight.prompt.de = Starkes Übergewicht
Severe overweight.description.de = Ihr BMI ist größer 35. Sie sollten dringend abnehmen.
%
!Knowledge
Here we define __how__ the BMI is calculated and the solutions are derived.\\
\\
The BMI is calculated using DiaFlux models, where first the "Height" and "Weight" is asked to the user.
Then, the value of the abstraction "bmi" is derived, when values for the aforementioned questions are known.
Final solutions are derived depending on the result of the calculated value of "bmi".
At line 27 changed one line
<flowchart fcid="flow_26ef012e" name="Main" icon="sanduhr.gif" width="623" height="397" autostart="true" idCounter="19">
<flowchart fcid="flow_26ef012e" name="Main" icon="sanduhr.gif" width="789" height="262" autostart="true" idCounter="21">
At line 31 changed 2 lines
<position left="35" top="150"></position>
<action markup="KnOffice">Height</action>
<position left="20" top="89"></position>
<action markup="KnOffice"><![CDATA[Height]]></action>
At line 36 changed 2 lines
<position left="190" top="150"></position>
<action markup="KnOffice">Weight</action>
<position left="175" top="89"></position>
<action markup="KnOffice"><![CDATA[Weight]]></action>
At line 41 changed one line
<position left="47" top="81"></position>
<position left="32" top="20"></position>
At line 46 changed 2 lines
<position left="322" top="150"></position>
<action markup="KnOffice">"bmi" = ((Weight / (Height*Height)))</action>
<position left="327" top="89"></position>
<action markup="KnOffice"><![CDATA["bmi" = ((Weight / (Height*Height)))]]></action>
At line 51 changed 2 lines
<position left="168" top="272"></position>
<action markup="KnOffice">"Underweight" = P7</action>
<position left="173" top="211"></position>
<action markup="KnOffice"><![CDATA["Underweight" = P7]]></action>
At line 56 changed 2 lines
<position left="326" top="272"></position>
<action markup="KnOffice">"Normal weight" = P7</action>
<position left="331" top="211"></position>
<action markup="KnOffice"><![CDATA["Normal weight" = P7]]></action>
At line 61 changed 2 lines
<position left="475" top="272"></position>
<action markup="KnOffice">"Overweight" = P7</action>
<position left="480" top="211"></position>
<action markup="KnOffice"><![CDATA["Overweight" = P7]]></action>
At line 109 added 4 lines
<node fcid="#node_20">
<position left="635" top="211"></position>
<action markup="KnOffice"><![CDATA["Severe overweight" = P7]]></action>
</node>
At line 114 added one line
At line 70 changed one line
<guard markup="KnOffice">"Height" > 0</guard>
<guard markup="KnOffice"><![CDATA["Height" > 0]]></guard>
At line 81 changed one line
<guard markup="KnOffice">KNOWN["Weight"]</guard>
<guard markup="KnOffice"><![CDATA[KNOWN["Weight"]]]></guard>
At line 87 changed one line
<guard markup="KnOffice">"bmi" < 18.5</guard>
<guard markup="KnOffice"><![CDATA["bmi" < 18.5]]></guard>
At line 93 changed one line
<guard markup="KnOffice">"bmi" >= 18.5 AND "bmi" <= 25</guard>
<guard markup="KnOffice"><![CDATA["bmi" >= 18.5 AND "bmi" <= 25]]></guard>
At line 99 changed one line
<guard markup="KnOffice">"bmi" > 25</guard>
<guard markup="KnOffice"><![CDATA["bmi" > 25 AND "bmi" <= 35]]></guard>
At line 150 added 7 lines
<edge fcid="#rule_21">
<origin>#node_7</origin>
<target>#node_20</target>
<guard markup="KnOffice"><![CDATA["bmi" > 35]]></guard>
</edge>
At line 159 added one line
At line 105 removed one line
__Terminology Definitions:__
At line 107 changed 6 lines
%%Question
Startquestionaire #1
- Height [num] (0.1 3) {m}
- Weight [num] (1 300) {kg}
- bmi [num] <abstract>
%
!Definition of Knowledge Base
At line 114 changed 6 lines
%%Solution
Weight Assessment
- Underweight
- Normal weight
- Overweight
- Heavy overweight
Here we follow with some basic stuff that is needed to tell the system, that we have a knowledge base here. Using the menu that expands when hovering over the small book icon on the right, you can also export the knowledge base as a .d3web-file to load and run it in your own application (click ''Download''), or start a one-choice-dialog for this demo (click ''Run Interview'').
%%KnowledgeBase
BMI Demo
At line 171 added 3 lines
!Package