org.activemath.content.mediator.rewriter
Class QueryRewriter

java.lang.Object
  extended by org.activemath.content.mediator.rewriter.QueryRewriter

public class QueryRewriter
extends Object

A QueryRewriter maps a Query in terms of the OIO to a target ontology by creating a Set of queries in terms of the target ontology.


Field Summary
protected static boolean DEBUG
           
 
Constructor Summary
QueryRewriter()
           
 
Method Summary
 Set rewrite(KBQuery oioQuery, KBCaller kbCaller)
          Creates new KBQueries out of the given query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG

protected static final boolean DEBUG
Constructor Detail

QueryRewriter

public QueryRewriter()
Method Detail

rewrite

public Set rewrite(KBQuery oioQuery,
                   KBCaller kbCaller)
Creates new KBQueries out of the given query. The new KBQueries are in terms of the target Ontology of the given KBCallers KB. The Rewriter uses the well defined ontology mapping between the oio and the target ontology. This method iterates over all matching mappings it finds.

Parameters:
query -
kbCaller -
Returns:
List of KBQueries in terms of the target ontology