eggbird
software development and
knowledge engineering

Mail

ROIS

Testing

This phase will probably be intermingled with the previous phase where you built the NPL tasks. You don't (yet) have your own client, so you will have to test your implementation with the ROIS client Mole, which is especially designed for that purpose. Mole contains a script language which can be used to call tasks in any NPL module.

In most cases, you will need at least two scripts, one to fill the model with some knowledge and the other to test the retrieval tasks. Although you can use Mole to interactively enter knowledge into the model this is not a good idea, because you will have to delete and recreate you model again and again and...

An example of a Mole script that calls the createModel task defined in the Birds module looks like this:

Birds.createModel 'test.mdl';

When Mole interprets this line it will ask ROIS to execute the specified command. Mole knows what kind of information ROIS can return and responds accordingly. When ROIS returns a model identifier, like in this example, Mole opens a browser on the model. The next lines in the script can refer to the model in the browser by using the keyword MODEL.

For example:

Birds.addBird MODEL 'Sparrow';
Birds.addBird MODEL 'Penguin';