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, shutDown
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, isInitialized, shutDown
public 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 AGAbstractRepository
public AGCatalog getCatalog()
getCatalog
in interface AGAbstractRepository
public String getSpec()
getSpec
in interface AGAbstractRepository
AGServer.virtualRepository(String)
public boolean isWritable()
isWritable
in interface Repository
public AGValueFactory getValueFactory()
getValueFactory
in interface AGAbstractRepository
getValueFactory
in interface Repository
public AGRepositoryConnection getConnection(ScheduledExecutorService executor) throws RepositoryException
getConnection
in interface AGAbstractRepository
RepositoryException
public AGRepositoryConnection getConnection() throws RepositoryException
getConnection
in interface AGAbstractRepository
getConnection
in interface Repository
RepositoryException
public void close() throws RepositoryException
AbstractRepository.shutDown()
.close
in interface Closeable
close
in interface AutoCloseable
RepositoryException
public File getDataDir()
getDataDir
in interface Repository
UnsupportedOperationException
- this operation is unsupportedpublic void setDataDir(File dataDir)
setDataDir
in interface Repository
UnsupportedOperationException
- this operation is unsupportedCopyright © 2024 Franz Inc.. All rights reserved.