|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.repository.sparql.SPARQLRepository
public class SPARQLRepository
Implement the Repository interface to any SPARQl endpoint.
| Constructor Summary | |
|---|---|
SPARQLRepository(String queryEndpointUrl)
|
|
SPARQLRepository(String queryEndpointUrl,
String updateEndpointUrl)
|
|
| Method Summary | |
|---|---|
Map<String,String> |
getAdditionalHttpHeaders()
|
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 |
isWritable()
Checks whether this repository is writable, i.e. |
void |
setAdditionalHttpHeaders(Map<String,String> additionalHttpHeaders)
|
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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SPARQLRepository(String queryEndpointUrl)
public SPARQLRepository(String queryEndpointUrl,
String updateEndpointUrl)
| Method Detail |
|---|
public RepositoryConnection getConnection()
throws RepositoryException
Repository
Connection con = repository.getConnection();
try {
// perform operations on the connection
}
finally {
con.close();
}
getConnection in interface RepositoryRepositoryException - If something went wrong during the creation of the Connection.public File getDataDir()
Repository
getDataDir in interface Repositorypublic ValueFactory getValueFactory()
Repository
getValueFactory in interface Repository
public void initialize()
throws RepositoryException
Repository
initialize in interface RepositoryRepositoryException - If the initialization failed.
public boolean isWritable()
throws RepositoryException
Repository
isWritable in interface RepositoryRepositoryExceptionpublic void setDataDir(File dataDir)
Repository
setDataDir in interface RepositorydataDir - the directory where data for this repository is stored
public void shutDown()
throws RepositoryException
Repository
shutDown in interface RepositoryRepositoryExceptionpublic String toString()
toString in class Objectpublic Map<String,String> getAdditionalHttpHeaders()
public void setAdditionalHttpHeaders(Map<String,String> additionalHttpHeaders)
additionalHttpHeaders - The additionalHttpHeaders to set as key value pairs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||