edu.lehigh.swat.vpi
Class VPI

public class VPI
Constructor Detail

VPI

public VPI()
Constructor

Method Detail

loadDocument

public void loadDocument(String uri)
Load a document into the VPI.
Parameters:
uri -

issueQuery

public ResultSet issueQuery(Query q)
Submit a query to the VPI, using the default perspective.
Parameters:
q -
Returns:

issueQueryWithoutVP

public ResultSet issueQueryWithoutVP(Query q)
Submit a query to the VPI, using the default perspective.
Parameters:
q -
Returns:

issueQuery

public ResultSet issueQuery(Query q,
                            String perspect)
Submit a query to the VPI, specifing the perspective.
Parameters:
q -
perspect -
Returns:

setDefaultPerspective

public void setDefaultPerspective(String uri)
Set the default perspective ontology of queries.
Parameters:
uri -

getDefaultperspective

public String getDefaultperspective()
Get the default perspective ontology of queries.
Returns:

alterNode

private Node alterNode(Node n)
Alter the node to VP's uri if it has a VP.
Parameters:
n -
Returns:

getLoadedDocuments

public Object[] getLoadedDocuments()
Get the urls of the loadedDocuments
Returns: