org.mindswap.pellet.query
Interface Query

All Known Implementing Classes:
QueryImpl

Deprecated. Use Query instead

public interface Query

Author:
Evren Sirin

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

addResultVar

void addResultVar(aterm.ATermAppl var)
Deprecated. 
Add a result variable to the query which makes this variable distinguished and appear in the results.

Parameters:
var - Variable

addDistVar

void addDistVar(aterm.ATermAppl var)
Deprecated. 
Add a distinguished variable to the query but not change the result variables.

Parameters:
var - Variable

getVars

java.util.Set getVars()
Deprecated. 
Return all the variables used in this query.

Returns:
Set of variables

getObjVars

java.util.Set getObjVars()
Deprecated. 
Return all the object variables, i.e. variables that will be replaced with individual names.

Returns:
Set of variables

getLitVars

java.util.Set getLitVars()
Deprecated. 
Return all the literal variables, i.e. variables that will be replaced with data values.

Returns:
Set of variables

getConstants

java.util.Set getConstants()
Deprecated. 
Return all the (individual) constants used in this query.

Returns:

getResultVars

java.util.List getResultVars()
Deprecated. 
Return all the variables that will be in the results. For SPARQL, these are the variables in the SELECT clause.

Returns:
Set of variables

getDistVars

java.util.Set getDistVars()
Deprecated. 
Return all the distinguished variables. These are variables that will be bound to individuals (or data values) existing in the KB.

Returns:
Set of variables

getDistObjVars

java.util.Set getDistObjVars()
Deprecated. 
Return the distinguished object variables.

Returns:
Set of variables

getDistLitVars

java.util.Set getDistLitVars()
Deprecated. 
Return the distinguished literal variables.

Returns:
Set of variables

isDistinct

boolean isDistinct()
Deprecated. 
Returns true if no duplicates are wanted in the results.

Returns:

setDistinct

void setDistinct(boolean isDistinct)
Deprecated. 

isGround

boolean isGround()
Deprecated. 
Returns true if there are not variables in the query (only constants).

Returns:

getQueryPatterns

java.util.List getQueryPatterns()
Deprecated. 
Return all the query patterns in this query.

Returns:
List of QueryPatterns

findPatterns

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)

Parameters:
subj -
pred -
obj -
Returns:

addPattern

void addPattern(QueryPattern pattern)
Deprecated. 

addTypePattern

void addTypePattern(aterm.ATermAppl ind,
                    aterm.ATermAppl c)
Deprecated. 

addEdgePattern

void addEdgePattern(aterm.ATermAppl s,
                    aterm.ATermAppl p,
                    aterm.ATermAppl o)
Deprecated. 

addConstraint

void addConstraint(aterm.ATermAppl lit,
                   Datatype dt)
Deprecated. 

removePattern

void removePattern(QueryPattern pattern)
Deprecated. 

rollUpTo

aterm.ATermAppl rollUpTo(aterm.ATermAppl term)
Deprecated. 

getClasses

aterm.ATermList getClasses(aterm.ATermAppl objTerm)
Deprecated. 

getDatatype

Datatype getDatatype(aterm.ATermAppl term)
Deprecated. 

apply

Query apply(QueryResultBinding binding)
Deprecated. 
Replace the variables in the query with the values specified in the binding and return a new query instance.

Parameters:
binding -
Returns:

getKB

KnowledgeBase getKB()
Deprecated. 
The KB that will be used to answer this query.

Returns:

setKB

void setKB(KnowledgeBase kb)
Deprecated. 

reorder

Query reorder(int[] ordering)
Deprecated. 
Reorder the patterns in the query with respect to given ordering. In the new query, the pattern at position i will be the pattern ordering[i] from the previous query.

Parameters:
ordering -
Returns:

hasUndefinedPredicate

boolean hasUndefinedPredicate()
Deprecated. 

prepare

void prepare()
Deprecated. 

toString

java.lang.String toString(boolean multiLine)
Deprecated. 

setQueryParameters

void setQueryParameters(QueryParameters parameters)
Deprecated. 
Enables query parameterization

Parameters:
parameters -

getQueryParameters

QueryParameters getQueryParameters()
Deprecated. 
Return query parameterization values

Returns:
QueryParameters


Copyright © 2004 Evren Sirin. All Rights Reserved.