Tests and Samples
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:
BuildManOntology (Java Source): builds a simple Ontology that is used to illustrate Lexicons and Ontology APIs and it is used by the tests classes.
BuildOntologyTopLevel (Java Source): builds the Ontology TopLevel proposed by John Sowa in his website and in his book Knowledge Representation, 2000.
BuildDictionnaryOntology (Java Source): builds an ontology where dictionnary terms are specified in terms of a semantic definition and associated with some semantic situations. The languages used in this ontology are English, French and Spanish. This ontology has been developed by DANGUIR Abdessamad, AZWAOU Med and MANSOUR Taha (December 2003),
BuildFinanceOntology (Java Source): builds a financial ontology corresponding to a subset of the ontology proposed at the ICCS 2001 conference. This ontology has been developed by Karim Bouzoubaa,
BuildKMOntology (Java Source): builds an ontology inspired from an ontology built by the KM Knowledge Machine group. This ontology has been developed by Elalami Sanae and Chiadmi Fadwa (December 2003),
BuildPathologieAviaireOntology (Java Source): builds a poultry pathology ontology in French. This ontology has been developed by SLIM Badreddine (December 2003), from a CD that covers this topic.
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".
We provide also a set of java classes to enable users to test the main parts of Amine Platform:
For the package aminePlatform.src.kernel there is a corresponding test package aminePlatform.test.kernel that contains the following Java Test Classes : LexiconSynonymsTest, LexiconTest and OntologyTest
For the package aminePlatform.src.util there is a corresponding test package aminePlatform.test.util that contains the following Java Test Classes : AmineObjectsTest, AmineListTest, AmineSetTest, TermTest, and BindingContextTest
For the package aminePlatform.src.util.cg there is a corresponding test package aminePlatform.test.util.cg that contains the following Java Test Classes : cgTest, ConceptTest and RelationTest.
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