|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.franz.ag.repository.AGRepository
public class AGRepository
An implementation of the Repository interface that stores triples in an AllegroGraph triple store. The Java application communicates with the AllegroGraph server through a socket.
Nested Class Summary | |
---|---|
static class |
AGRepository.V3_2Jan27
The name of this class identifies the version of the AllegroGraph Java implementation. |
Constructor Summary | |
---|---|
AGRepository(AllegroGraph ts)
Create a new Repository instance to access an AllegroGraph triple store. |
Method Summary | |
---|---|
AllegroGraph |
getAllegroGraph()
|
org.openrdf.repository.RepositoryConnection |
getConnection()
Opens a connection to this repository that can be used for querying and updating the contents of the repository. |
java.io.File |
getDataDir()
|
org.openrdf.model.ValueFactory |
getValueFactory()
|
void |
initialize()
|
boolean |
isWritable()
|
void |
setBackgroundIndexing(boolean bi)
Control the indexing mode of this access to the store. |
void |
setDataDir(java.io.File arg0)
|
void |
setIndexAllOnCommit(boolean roc)
Control the indexing strategy of this access to the store. |
void |
setReindexOnCommit(boolean roc)
Specify whether indexing should be done at each commit. |
void |
shutDown()
|
static java.lang.String |
version()
Query the current AGRepository version. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AGRepository(AllegroGraph ts)
ts
- An AllegroGraph
instance created by the application.
The application code is responsible for closing the store instance and
disconnecting from the server.Method Detail |
---|
public static java.lang.String version()
public void setReindexOnCommit(boolean roc)
roc
- When true, index the triples added up to the commit call.public void setIndexAllOnCommit(boolean roc)
roc
- When true, reindex the entire store at each commit.
Otherwise, index only the new triples.public void setBackgroundIndexing(boolean bi)
bi
- When true, index triples asynchronously.public AllegroGraph getAllegroGraph()
public org.openrdf.repository.RepositoryConnection getConnection() throws org.openrdf.repository.RepositoryException
RepositoryConnection con = repository.getConnection(); try { // perform operations on the connection } finally { con.close(); }
getConnection
in interface org.openrdf.repository.Repository
org.openrdf.repository.RepositoryException
- - If something went wrong during the creation of the Connection.public java.io.File getDataDir()
getDataDir
in interface org.openrdf.repository.Repository
public org.openrdf.model.ValueFactory getValueFactory()
getValueFactory
in interface org.openrdf.repository.Repository
public void initialize() throws org.openrdf.repository.RepositoryException
initialize
in interface org.openrdf.repository.Repository
org.openrdf.repository.RepositoryException
public boolean isWritable() throws org.openrdf.repository.RepositoryException
isWritable
in interface org.openrdf.repository.Repository
org.openrdf.repository.RepositoryException
public void setDataDir(java.io.File arg0)
setDataDir
in interface org.openrdf.repository.Repository
public void shutDown() throws org.openrdf.repository.RepositoryException
shutDown
in interface org.openrdf.repository.Repository
org.openrdf.repository.RepositoryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |