Multi-Package Demo Japan
Back to current version Restore this version

This is a basic demo about how to use and compile multiple packages into the same knowledge base. The basic scenario is described here. The common package lifeExpectancy and more specifics for this demo are described here.

To see the source code of this page, go to the drop down More... and select View Page Source.

Defining the package#

As before, we add this page to the package japan

japan

Adding knowledge#

First we define the current life expectancy in japan.

Constant
"Life expectancy"
= 87
Lets calculate our remaining life expectancy based on our age.

Variable
"Years to life according to life expectancy"
=
"Life expectancy"
-
Age

Compiling and testing the resulting knowledge base#

Here defining a knowledge base using/compiling our two packages:

Life expectancy calculator (Japan)
lifeExpectancy
japan

Quick Interview#

If not specified otherwise (by using the @package annotation), the ~ markup will show the content of the knowledge base, which uses/compiled the package of this page, in this case package japan.

No knowledge base found for this interview.