public class AGVirtualRepository extends org.openrdf.repository.base.RepositoryBase implements AGAbstractRepository
Virtual repositories don't reside on disk (their component stores do); they don't have a catalog.
Applications normally create a virtual repository via an AGServer instance.
Constructor and Description |
---|
AGVirtualRepository(AGServer server,
String spec,
AGRepository wrapped)
Applications normally create a virtual repository via an AGServer instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Calls Sesame method
RepositoryBase.shutDown() . |
static String |
federatedSpec(String[] repoSpecs) |
static String |
filteredSpec(AGAbstractRepository repo,
org.openrdf.model.Resource[] contexts) |
static String |
filteredSpec(String repoSpec,
String[] graphs) |
AGCatalog |
getCatalog()
Virtual repositories don't reside on disk (their component stores do);
they don't have a catalog.
|
AGRepositoryConnection |
getConnection() |
AGRepositoryConnection |
getConnection(ScheduledExecutorService executor) |
File |
getDataDir()
Deprecated.
not applicable to AllegroGraph
|
AGServer |
getServer() |
String |
getSpec()
Gets the store specification used to create this virtual repository.
|
AGValueFactory |
getValueFactory() |
boolean |
isWritable() |
static String |
reasoningSpec(String repoSpec,
String reasoner) |
static String |
reasoningSpec(String repoSpec,
String reasoner,
org.openrdf.model.Resource inferredGraph) |
void |
setDataDir(File dataDir)
Deprecated.
not applicable to AllegroGraph
|
initialize, isInitialized, shutDown
public AGVirtualRepository(AGServer server, String spec, AGRepository wrapped)
public AGServer getServer()
public AGCatalog getCatalog()
getCatalog
in interface AGAbstractRepository
public String getSpec()
getSpec
in interface AGAbstractRepository
AGServer.virtualRepository(String)
public boolean isWritable()
isWritable
in interface org.openrdf.repository.Repository
public AGValueFactory getValueFactory()
getValueFactory
in interface AGAbstractRepository
getValueFactory
in interface org.openrdf.repository.Repository
public AGRepositoryConnection getConnection(ScheduledExecutorService executor) throws org.openrdf.repository.RepositoryException
getConnection
in interface AGAbstractRepository
org.openrdf.repository.RepositoryException
public AGRepositoryConnection getConnection() throws org.openrdf.repository.RepositoryException
getConnection
in interface AGAbstractRepository
getConnection
in interface org.openrdf.repository.Repository
org.openrdf.repository.RepositoryException
public void close() throws org.openrdf.repository.RepositoryException
RepositoryBase.shutDown()
.close
in interface Closeable
org.openrdf.repository.RepositoryException
Closeable.close()
public void setDataDir(File dataDir)
setDataDir
in interface org.openrdf.repository.Repository
UnsupportedOperationException
public File getDataDir()
getDataDir
in interface org.openrdf.repository.Repository
UnsupportedOperationException
public static String reasoningSpec(String repoSpec, String reasoner, org.openrdf.model.Resource inferredGraph)
public static String filteredSpec(AGAbstractRepository repo, org.openrdf.model.Resource[] contexts)