Quick API Guide for the Top-Down Engine of OO jDREW

Three-Step Guide to Using the Top-Down engine

  1. Loading a File into the Knowledge Base

    The first thing that OO jDREW requires when using the TD engine is a knowledge base file. This file can be stored as RuleML/XML or POSL. To parse a RuleML document, you need to use the RuleML parser class. The calling method to parse a RuleML document can be found here. There are methods that allow both a file name containing the content of the RuleML document and a string containing the RulML document to be parsed.

    To load a knowledge base that is stored as POSL, you must use the POSL parser class. The calling method to parse a POSL file can be found at this location. There are methods that allow both a file name containing the content of the POSL document and a string containing the POSL contents to be parsed.

  2. Loading an RDFS File into the Taxonomy System

    The second step is optional whenever the user needs a user defined taxonomy. If the user requires a taxonomy a RDFS file must be given. To parse this RDFS document, you must use the RDFS parser class. The calling method to parse an RDFS file is located here. It is possible to either parser a file containing the RDFS taxonomy or a string containing the RDFS taxonomy to be parsed.

  3. Executing a Query

    To execute a query for the Top-Down engine the Backward Reasoner class must be used. The calling method used to perform queries can be found here.

Java template Reference

This java template file contains all the steps to get the Top-Down engine up and running.

Last Updated:
   July 25, 2006

By:
   Ben Craig