edu.lehigh.swat.hawk.storage.simpledb
Class Query

java.lang.Object
  extended by edu.lehigh.swat.hawk.storage.Query
      extended by edu.lehigh.swat.hawk.storage.simpledb.Query
Direct Known Subclasses:
Query

public class Query
extends Query


Constructor Summary
Query()
          Constructor
 
Method Summary
 void addConjunct(Atom atom)
          Adds an additional atom as a conjunct to the existing sentence where the input is the atom to be added.
 java.util.Vector getAtoms()
          Returns the vector of atoms that are conjuncted together in the sentence.
 DocId getPerspective()
          Get the id of the perspective ontology.
 void setPerspective(DocId pid)
          Set the perspective ontology's id.
static Query StringToQuery(java.lang.String s)
          Parse a string to query.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Query

public Query()
Constructor

Method Detail

addConjunct

public void addConjunct(Atom atom)
Adds an additional atom as a conjunct to the existing sentence where the input is the atom to be added.


getAtoms

public java.util.Vector getAtoms()
Returns the vector of atoms that are conjuncted together in the sentence.


setPerspective

public void setPerspective(DocId pid)
Set the perspective ontology's id.


getPerspective

public DocId getPerspective()
Get the id of the perspective ontology.


StringToQuery

public static Query StringToQuery(java.lang.String s)
Parse a string to query.

Parameters:
s -
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object