edu.lehigh.swat.bench.ubt.api
Interface Repository


public interface Repository


Method Summary
 void clear()
          Clears the current repository.
 void close()
          Closes the current repository.
 QueryResult issueQuery(Query query)
          Issues a query to the current repository.
 boolean load(java.lang.String dataDir)
          Loads the specified data to the current repository.
 void open(java.lang.String database)
          Opens the repository.
 void setOntology(java.lang.String ontology)
          Specifies the url of the univ-bench ontology.
 

Method Detail

open

public void open(java.lang.String database)
Opens the repository.
Parameters:
database - Path of the back-end database. Specified as null for memory-based systems.

close

public void close()
Closes the current repository.

load

public boolean load(java.lang.String dataDir)
Loads the specified data to the current repository.
Parameters:
dataDir - Directory where the data reside.
Returns:
True on success, otherwise false.

setOntology

public void setOntology(java.lang.String ontology)
Specifies the url of the univ-bench ontology.
Parameters:
ontology - Url of the univ-bench ontology.

issueQuery

public QueryResult issueQuery(Query query)
Issues a query to the current repository.
Parameters:
query - The query.
Returns:
The result.

clear

public void clear()
Clears the current repository.