org.activemath.content.mediator.rewriter
Class QueryRewriter
java.lang.Object
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
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
protected static final boolean DEBUG
QueryRewriter
public QueryRewriter()
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