|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Query instead
public interface Query
| Method Summary | |
|---|---|
void |
addConstraint(aterm.ATermAppl lit,
Datatype dt)
Deprecated. |
void |
addDistVar(aterm.ATermAppl var)
Deprecated. Add a distinguished variable to the query but not change the result variables. |
void |
addEdgePattern(aterm.ATermAppl s,
aterm.ATermAppl p,
aterm.ATermAppl o)
Deprecated. |
void |
addPattern(QueryPattern pattern)
Deprecated. |
void |
addResultVar(aterm.ATermAppl var)
Deprecated. Add a result variable to the query which makes this variable distinguished and appear in the results. |
void |
addTypePattern(aterm.ATermAppl ind,
aterm.ATermAppl c)
Deprecated. |
Query |
apply(QueryResultBinding binding)
Deprecated. Replace the variables in the query with the values specified in the binding and return a new query instance. |
java.util.List |
findPatterns(aterm.ATermAppl subj,
aterm.ATermAppl pred,
aterm.ATermAppl obj)
Deprecated. Find edges in the query graph that matches the pattern (where null matches anything) |
aterm.ATermList |
getClasses(aterm.ATermAppl objTerm)
Deprecated. |
java.util.Set |
getConstants()
Deprecated. Return all the (individual) constants used in this query. |
Datatype |
getDatatype(aterm.ATermAppl term)
Deprecated. |
java.util.Set |
getDistLitVars()
Deprecated. Return the distinguished literal variables. |
java.util.Set |
getDistObjVars()
Deprecated. Return the distinguished object variables. |
java.util.Set |
getDistVars()
Deprecated. Return all the distinguished variables. |
KnowledgeBase |
getKB()
Deprecated. The KB that will be used to answer this query. |
java.util.Set |
getLitVars()
Deprecated. Return all the literal variables, i.e. |
java.util.Set |
getObjVars()
Deprecated. Return all the object variables, i.e. |
QueryParameters |
getQueryParameters()
Deprecated. Return query parameterization values |
java.util.List |
getQueryPatterns()
Deprecated. Return all the query patterns in this query. |
java.util.List |
getResultVars()
Deprecated. Return all the variables that will be in the results. |
java.util.Set |
getVars()
Deprecated. Return all the variables used in this query. |
boolean |
hasUndefinedPredicate()
Deprecated. |
boolean |
isDistinct()
Deprecated. Returns true if no duplicates are wanted in the results. |
boolean |
isGround()
Deprecated. Returns true if there are not variables in the query (only constants). |
void |
prepare()
Deprecated. |
void |
removePattern(QueryPattern pattern)
Deprecated. |
Query |
reorder(int[] ordering)
Deprecated. Reorder the patterns in the query with respect to given ordering. |
aterm.ATermAppl |
rollUpTo(aterm.ATermAppl term)
Deprecated. |
void |
setDistinct(boolean isDistinct)
Deprecated. |
void |
setKB(KnowledgeBase kb)
Deprecated. |
void |
setQueryParameters(QueryParameters parameters)
Deprecated. Enables query parameterization |
java.lang.String |
toString(boolean multiLine)
Deprecated. |
| Method Detail |
|---|
void addResultVar(aterm.ATermAppl var)
var - Variablevoid addDistVar(aterm.ATermAppl var)
var - Variablejava.util.Set getVars()
java.util.Set getObjVars()
java.util.Set getLitVars()
java.util.Set getConstants()
java.util.List getResultVars()
java.util.Set getDistVars()
java.util.Set getDistObjVars()
java.util.Set getDistLitVars()
boolean isDistinct()
void setDistinct(boolean isDistinct)
boolean isGround()
java.util.List getQueryPatterns()
QueryPatterns
java.util.List findPatterns(aterm.ATermAppl subj,
aterm.ATermAppl pred,
aterm.ATermAppl obj)
subj - pred - obj -
void addPattern(QueryPattern pattern)
void addTypePattern(aterm.ATermAppl ind,
aterm.ATermAppl c)
void addEdgePattern(aterm.ATermAppl s,
aterm.ATermAppl p,
aterm.ATermAppl o)
void addConstraint(aterm.ATermAppl lit,
Datatype dt)
void removePattern(QueryPattern pattern)
aterm.ATermAppl rollUpTo(aterm.ATermAppl term)
aterm.ATermList getClasses(aterm.ATermAppl objTerm)
Datatype getDatatype(aterm.ATermAppl term)
Query apply(QueryResultBinding binding)
binding -
KnowledgeBase getKB()
void setKB(KnowledgeBase kb)
Query reorder(int[] ordering)
i will be the pattern ordering[i]
from the previous query.
ordering -
boolean hasUndefinedPredicate()
void prepare()
java.lang.String toString(boolean multiLine)
void setQueryParameters(QueryParameters parameters)
parameters - QueryParameters getQueryParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||