This page (revision-22) was last changed on 09-May-2015 00:33 by Albrecht Striffler

This page was created on 09-May-2015 00:06 by unknown

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
22 09-May-2015 00:33 1 KB Albrecht Striffler to previous
21 09-May-2015 00:32 1 KB Albrecht Striffler to previous | to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 1 changed one line
This is a basic demo about how to use and compile multiple packages into the same knowledge base. The basic scenario is described [here|Doc Package#Using multiple Packages for the same knowledge base or ontology]. The common package and more specifics for this demo are described [here|Multi-Package Demo].
This is a basic demo about how to use and compile multiple packages into the same knowledge base. The basic scenario is described [here|Doc Package#Using multiple Packages for the same knowledge base or ontology]. The common package {{lifeExpectancy}} and more specifics for this demo are described [here|Multi-Package Demo].
\\
\\
To see the source code of this page, go to the drop down "''More...''" and select "''View Page Source''".
At line 6 added one line
At line 5 changed one line
As before, we add this page to the package {{japan}}
As mentioned, we add this page to the package {{japan}}
At line 13 added one line
At line 16 added 13 lines
First we define the current life expectancy in japan using the {{~%~%Constant}} markup.
%%Constant
"Life expectancy in Japan" = 87
%
Let's calculate our remaining life expectancy based on our age using the {{~%~%Variable}} markup.
%%Variable
"Years to life according to life expectancy" = "Life expectancy in Japan" - Age
%
At line 13 changed 2 lines
%%Knowledge
@uses: lif
Here we define the knowledge base using/compiling two of our three packages:
%%KnowledgeBase
Life expectancy calculator (Japan)
@uses: lifeExpectancy
@uses: japan
At line 39 added 9 lines
!Quick Interview
If not specified otherwise (by using the @package annotation), the {{ ~%~%QuickInterview }} markup will show the content of the first knowledge base, which uses/compiles the package of this page, in this case package {{japan}}.
%%QuickInterview
%