public class SPARQLRepository extends RepositoryBase
| Constructor and Description |
|---|
SPARQLRepository(String endpointUrl)
Create a new SPARQLRepository using the supplied endpoint URL for queries
and updates.
|
SPARQLRepository(String queryEndpointUrl,
String updateEndpointUrl)
Create a new SPARQLREpository using the supplied query endpoint URL for
queries, and the supplied update endpoint URL for updates.
|
| Modifier and Type | Method and Description |
|---|---|
protected HTTPClient |
createHTTPClient()
Creates a new HTTPClient object.
|
Map<String,String> |
getAdditionalHttpHeaders() |
RepositoryConnection |
getConnection() |
File |
getDataDir() |
protected HTTPClient |
getHTTPClient() |
ValueFactory |
getValueFactory() |
protected void |
initializeInternal() |
boolean |
isWritable() |
void |
setAdditionalHttpHeaders(Map<String,String> additionalHttpHeaders) |
void |
setDataDir(File dataDir) |
void |
setUsernameAndPassword(String username,
String password)
Set the username and password to use for authenticating with the remote
repository.
|
protected void |
shutDownInternal() |
String |
toString() |
initialize, isInitialized, shutDownpublic SPARQLRepository(String endpointUrl)
endpointUrl - a SPARQL endpoint URL. May not be null.public SPARQLRepository(String queryEndpointUrl, String updateEndpointUrl)
queryEndpointUrl - a SPARQL endpoint URL for queries. May not be null.updateEndpointUrl - a SPARQL endpoint URL for updates. May not be null.IllegalArgumentException - if one of the supplied endpoint URLs is null.protected HTTPClient createHTTPClient()
public RepositoryConnection getConnection() throws RepositoryException
RepositoryExceptionpublic File getDataDir()
public ValueFactory getValueFactory()
protected void initializeInternal()
throws RepositoryException
initializeInternal in class RepositoryBaseRepositoryExceptionpublic boolean isWritable()
throws RepositoryException
RepositoryExceptionpublic void setDataDir(File dataDir)
protected HTTPClient getHTTPClient()
public void setUsernameAndPassword(String username, String password)
username - the username. Setting this to null will disable authentication.password - the password. Setting this to null will disable authentication.protected void shutDownInternal()
throws RepositoryException
shutDownInternal in class RepositoryBaseRepositoryExceptionpublic Map<String,String> getAdditionalHttpHeaders()
Copyright © 2001-2014 Aduna. All Rights Reserved.