|
Franz Inc, AllegroGraph | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.franz.agraph.repository.AGRepository
public class AGRepository
Implements the Sesame Repository interface for AllegroGraph, representing
triple-stores
on the server.
In AllegroGraph, a AGCatalog contains multiple repositories.
With the Sesame API, most data operations on a repository are done through
the AGRepositoryConnection returned by getConnection().
| Constructor Summary | |
|---|---|
AGRepository(AGCatalog catalog,
String repositoryID)
Creates an AGRepository instance for a repository having the given repository id in the given catalog. |
|
| Method Summary | |
|---|---|
void |
close()
Calls Sesame method shutDown(). |
void |
ensureDBIdle()
Waits until background db processes have gone idle. |
void |
forceCheckpoint()
Forces a checkpoint for this repository. |
AGCatalog |
getCatalog()
Gets the catalog to which this repository belongs. |
String |
getCatalogPrefixedRepositoryID()
|
AGRepositoryConnection |
getConnection()
Create a connection to the repository. |
File |
getDataDir()
Deprecated. not applicable to AllegroGraph |
com.franz.agraph.http.AGHTTPClient |
getHTTPClient()
The http connection to AllegroGraph server. |
String |
getRepositoryID()
Gets the repository id for this repository. |
String |
getRepositoryURL()
The AllegroGraph URL of this repository. |
String |
getSpec()
|
AGValueFactory |
getValueFactory()
|
void |
initialize()
Required by OpenRDF/Sesame, a repository must be initialized before use. |
boolean |
isBulkMode()
Returns the repository's bulkMode setting. |
boolean |
isWritable()
Returns true iff this repository is writable. |
void |
setBulkMode(boolean bulkMode)
Sets the repository's bulkMode (defaults to false). |
void |
setDataDir(File dataDir)
Deprecated. not applicable to AllegroGraph |
void |
shutDown()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AGRepository(AGCatalog catalog,
String repositoryID)
Preferred access is from AGCatalog methods
such as AGCatalog.createRepository(String, boolean)
or AGCatalog.openRepository(String).
| Method Detail |
|---|
public AGCatalog getCatalog()
getCatalog in interface AGAbstractRepositorypublic String getRepositoryID()
public String getCatalogPrefixedRepositoryID()
public String getRepositoryURL()
public AGValueFactory getValueFactory()
getValueFactory in interface AGAbstractRepositorygetValueFactory in interface Repositorypublic com.franz.agraph.http.AGHTTPClient getHTTPClient()
public void initialize()
throws RepositoryException
initialize in interface RepositoryRepositoryException
public AGRepositoryConnection getConnection()
throws RepositoryException
getConnection in interface AGAbstractRepositorygetConnection in interface RepositoryRepositoryException
public boolean isWritable()
throws RepositoryException
isWritable in interface RepositoryRepositoryExceptionpublic String getSpec()
getSpec in interface AGAbstractRepositorypublic File getDataDir()
getDataDir in interface Repositorypublic void setDataDir(File dataDir)
setDataDir in interface Repository
public void shutDown()
throws RepositoryException
shutDown in interface RepositoryRepositoryException
public void close()
throws RepositoryException
shutDown().
close in interface CloseableRepositoryExceptionCloseable.close()
public void setBulkMode(boolean bulkMode)
throws RepositoryException
RepositoryExceptionisBulkMode()
public boolean isBulkMode()
throws RepositoryException
RepositoryExceptionsetBulkMode(boolean)
public void forceCheckpoint()
throws RepositoryException
RepositoryException
public void ensureDBIdle()
throws RepositoryException
RepositoryException
|
Copyright © 2008-2012 Franz Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||