This class creates the knowledge base for the discount example. To generate the knowledge base, run the main method.
Note that the example works with a relational database. Any database should do as long as aggregation
functions are supported. E.g., the free MySQL database or Oracle8 can be used.
The example uses a SimpleDataSource to connect to the database.
How to configure a particular database is described in the comment of this class.
In a real world scenario a knowledge base is probably created using a GUI and not by the direct execution
of a script as it is done here.
Mandarax uses other (open source) libraries such as JDOM, the apache log4j
logging library and the junit testing framework. The mandarax distribution
contains the respective libraries. Please but these jar files in the classpath
before running the example! In addition, the JDBC driver for the database used must
also be in the classpath.
See Also: SimpleDataSource See Also: CreateDB since: 2.2 author: Jens Dietrich version: 3.4 <7 March 05> |