|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.deri.iris.querycontainment.QueryContainment
public class QueryContainment
Checks two queries for query containment, based on a given knowledge base.
| Constructor Summary | |
|---|---|
QueryContainment(IKnowledgeBase kb)
|
|
QueryContainment(List<IRule> rules)
Creates a new query containment checker with a given knowledge base. |
|
| Method Summary | |
|---|---|
boolean |
checkQueryContainment(IQuery query1,
IQuery query2)
Checks whether query1 is contained within query2. |
IRelation |
getContainmentMappings()
Return the containment mappings that result from the containment check. |
List<IVariable> |
getVariableBindings()
Return the variables from the query in 'execution' order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryContainment(List<IRule> rules)
Creates a new query containment checker with a given knowledge base.
program - The program
IllegalArgumentException - If the program or the evaluator is null, or
If the program contains queriespublic QueryContainment(IKnowledgeBase kb)
| Method Detail |
|---|
public boolean checkQueryContainment(IQuery query1,
IQuery query2)
throws EvaluationException
IQueryContainmentChecks whether query1 is contained within query2.
checkQueryContainment in interface IQueryContainmentquery1 - The query for which to check whether it is contained
within query2.query2 - The query for which to check whether it contains query1.
EvaluationExceptionpublic IRelation getContainmentMappings()
IQueryContainmentReturn the containment mappings that result from the containment check.
getContainmentMappings in interface IQueryContainmentpublic List<IVariable> getVariableBindings()
IQueryContainment
getVariableBindings in interface IQueryContainment
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||