Tests and Samples

by

Adil KABBAJ

 

Introduction

Samples (ontologies)

Tests

 

 

Introduction

In the current release, we provide five sample ontologies plus the ontology top-level proposed by John Sowa, and a set of tests.

 

Samples (ontologies)

The six samples (including ontology TopLevel) concern Java classes that create and save (in an internal representation and in XML) different ontologies:

The above ontologies, except OntologyTopLevel, have been reviewed and enhanced by Karim Bouzoubaa.

To run one of these samples, three ways are possible:

a) activate AmineSuite GUI. It provides the menu Ontologies for this purpose.

b) activate directly the Java class. All the above classes have the main method and they are integrated in AminePlatform; they are contained in the buildOntology package which is contained itself in the samples package. The complete path to these classes is: aminePlatform.samples.buildOntology

c) The buildOntology package contains a Java class, called createOntology, which has the main method that can accept one argument: the name of the ontology-to-create. According to the given name, createOntology will activate the proper class to build the required ontology. For instance:

 > java  createOntology  ManOntology

will involve the creation of the ontology "ManOntology".

 

Tests

We provide also a set of java classes to enable users to test the main parts of Amine Platform:

 

Tests on Ontology and Lexicon:

The complete path, in AminePlatform, for the following three tests classes is: aminePlatform.test.kernel

OntologyTest (Java Source): This test illustrates the use of several methods provided by Lexicons and Ontology APIs.

LexiconTest (Java Source): This test illustrates more specifically the Lexicons API.

SynonymsLexiconTest (Java Source): This test illustrates more specifically the treatment of synonymy, using the Lexicons API.

 

Tests on Concept, Relation and CG:

The complete path, in AminePlatform, for the following three tests classes is: aminePlatform.test.util.cg

ConceptTest (Java Source): This test illustrates methods provided by Concept API.

RelationTest (Java Source): This test illustrates methods provided by Relation API.

CGTest (Java Source): This test illustrates methods provided by CG API.

 

Tests on other Amine structures:

The complete path, in AminePlatform, for the following tests classes is: aminePlatform.test.util

AmineListTest (Java Source): This test illustrates methods provided by AmineList API.

AmineSetTest (Java Source): This test illustrates methods provided by AmineSet API.

TermTest (Java Source): This test illustrates methods provided by Term API.

BindingContextTest (Java Source): This test illustrates the importance, use, and implication of Binding Context. It makes use of SimpleBindingContext which defines a simple binding context.

AmineObjects (Java Source): This test illustrates methods provided by the AmineObjects class.

 

To run one of these tests, two ways are possible:

a) activate AmineSuite GUI. It provides the menu tests for this purpose.

b) activate directly the Java class. All the tests classes have the main method and they are integrated in AminePlatform. The complete path to these classes is: aminePlatform.test