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

java.lang.Object
  extended by edu.lehigh.swat.hawk.storage.Query
      extended by edu.lehigh.swat.hawk.storage.simpledb.SparqlQuery

public class SparqlQuery
extends Query


Constructor Summary
SparqlQuery()
          Constructor
SparqlQuery(java.lang.String sparqlQry)
           
 
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.
 void addToSql(java.lang.String str)
           
 java.util.Vector getAtoms()
          Returns the vector of atoms that are conjuncted together in the sentence.
 java.util.Map getDBTables()
           
 java.lang.String[] getHeaders()
           
 java.lang.String getOrigSparql()
           
 DocId getPerspective()
          Get the id of the perspective ontology.
 java.lang.String getSql()
           
 void setDBTables(java.util.Map tb)
           
 void setHeaders(java.lang.String[] arrayHeaders)
           
 void setOrigSparql(java.lang.String sparqlQry)
           
 void setPerspective(DocId pid)
          Set the perspective ontology's id.
static SparqlQuery 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

SparqlQuery

public SparqlQuery()
Constructor


SparqlQuery

public SparqlQuery(java.lang.String sparqlQry)
Method Detail

setOrigSparql

public void setOrigSparql(java.lang.String sparqlQry)

getOrigSparql

public java.lang.String getOrigSparql()

getHeaders

public java.lang.String[] getHeaders()

setHeaders

public void setHeaders(java.lang.String[] arrayHeaders)

addToSql

public void addToSql(java.lang.String str)

getSql

public java.lang.String getSql()

getDBTables

public java.util.Map getDBTables()

setDBTables

public void setDBTables(java.util.Map tb)

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 SparqlQuery 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