public class AGVirtualRepository extends AbstractRepository 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
AbstractRepository.shutDown(). |
static String |
federatedSpec(String[] repoSpecs) |
static String |
filteredSpec(AGAbstractRepository repo,
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,
Resource inferredGraph) |
void |
setDataDir(File dataDir)
Deprecated.
not applicable to AllegroGraph
|
initialize, isInitialized, shutDownequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized, shutDownpublic AGVirtualRepository(AGServer server, String spec, AGRepository wrapped)
server - the server hosting this virtual repositoryspec - the store specification for this repositorywrapped - the component repository of this virtual repositoryAGServer.virtualRepository(String),
AGServer.federate(AGAbstractRepository...)public static String reasoningSpec(String repoSpec, String reasoner, Resource inferredGraph)
public static String filteredSpec(AGAbstractRepository repo, Resource[] contexts)
public AGServer getServer()
getServer in interface AGAbstractRepositorypublic AGCatalog getCatalog()
getCatalog in interface AGAbstractRepositorypublic String getSpec()
getSpec in interface AGAbstractRepositoryAGServer.virtualRepository(String)public boolean isWritable()
isWritable in interface Repositorypublic AGValueFactory getValueFactory()
getValueFactory in interface AGAbstractRepositorygetValueFactory in interface Repositorypublic AGRepositoryConnection getConnection(ScheduledExecutorService executor) throws RepositoryException
getConnection in interface AGAbstractRepositoryRepositoryExceptionpublic AGRepositoryConnection getConnection() throws RepositoryException
getConnection in interface AGAbstractRepositorygetConnection in interface RepositoryRepositoryExceptionpublic void close()
throws RepositoryException
AbstractRepository.shutDown().close in interface Closeableclose in interface AutoCloseableRepositoryExceptionpublic File getDataDir()
getDataDir in interface RepositoryUnsupportedOperationException - this operation is unsupportedpublic void setDataDir(File dataDir)
setDataDir in interface RepositoryUnsupportedOperationException - this operation is unsupportedCopyright © 2024 Franz Inc.. All rights reserved.