|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Repository
A Sesame repository that contains RDF data that can be queried and updated. Access to the repository can be acquired by openening a connection to it. This connection can then be used to query and/or update the contents of the repository. Depending on the implementation of the repository, it may or may not support multiple concurrent connections.
Please note that a repository needs to be initialized before it can be used and that it should be shut down before it is discarded/garbage collected. Forgetting the latter can result in loss of data (depending on the Repository implementation)!
| Method Summary | |
|---|---|
RepositoryConnection |
getConnection()
Opens a connection to this repository that can be used for querying and updating the contents of the repository. |
File |
getDataDir()
Get the directory where data and logging for this repository is stored. |
ValueFactory |
getValueFactory()
Gets a ValueFactory for this Repository. |
void |
initialize()
Initializes this repository. |
boolean |
isInitialized()
Indicates if the Repository has been initialized. |
boolean |
isWritable()
Checks whether this repository is writable, i.e. |
void |
setDataDir(File dataDir)
Set the directory where data and logging for this repository is stored. |
void |
shutDown()
Shuts the repository down, releasing any resources that it keeps hold of. |
| Method Detail |
|---|
void setDataDir(File dataDir)
dataDir - the directory where data for this repository is storedFile getDataDir()
void initialize()
throws RepositoryException
RepositoryException - If the initialization failed.boolean isInitialized()
void shutDown()
throws RepositoryException
RepositoryException
boolean isWritable()
throws RepositoryException
RepositoryException
RepositoryConnection getConnection()
throws RepositoryException
Connection con = repository.getConnection();
try {
// perform operations on the connection
}
finally {
con.close();
}
RepositoryException - If something went wrong during the creation of the Connection.ValueFactory getValueFactory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||