Package com.franz.agraph.repository
Class AGVirtualRepository
java.lang.Object
org.eclipse.rdf4j.repository.base.AbstractRepository
com.franz.agraph.repository.AGVirtualRepository
- All Implemented Interfaces:
AGAbstractRepository,Closeable,AutoCloseable,Repository
A class for virtual repositories, used for working with federations,
graph-filtered stores, reasoning stores, and compositions thereof.
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 Summary
ConstructorsConstructorDescriptionAGVirtualRepository(AGServer server, String spec, AGRepository wrapped) Applications normally create a virtual repository via an AGServer instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Calls Sesame methodAbstractRepository.shutDown().static StringfederatedSpec(String[] repoSpecs) static StringfilteredSpec(AGAbstractRepository repo, Resource[] contexts) static StringfilteredSpec(String repoSpec, String[] graphs) Virtual repositories don't reside on disk (their component stores do); they don't have a catalog.getConnection(ScheduledExecutorService executor) Deprecated.not applicable to AllegroGraphgetSpec()Gets the store specification used to create this virtual repository.booleanstatic StringreasoningSpec(String repoSpec, String reasoner) static StringreasoningSpec(String repoSpec, String reasoner, Resource inferredGraph) voidsetDataDir(File dataDir) Deprecated.not applicable to AllegroGraphMethods inherited from class org.eclipse.rdf4j.repository.base.AbstractRepository
init, isInitialized, shutDownMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.rdf4j.repository.Repository
init, isInitialized, shutDown
-
Constructor Details
-
AGVirtualRepository
Applications normally create a virtual repository via an AGServer instance.- Parameters:
server- the server hosting this virtual repositoryspec- the store specification for this repositorywrapped- the component repository of this virtual repository- See Also:
-
-
Method Details
-
federatedSpec
-
reasoningSpec
-
reasoningSpec
-
filteredSpec
-
filteredSpec
-
getServer
- Specified by:
getServerin interfaceAGAbstractRepository
-
getCatalog
Virtual repositories don't reside on disk (their component stores do); they don't have a catalog.- Specified by:
getCatalogin interfaceAGAbstractRepository- Returns:
- always returns null
-
getSpec
Gets the store specification used to create this virtual repository.- Specified by:
getSpecin interfaceAGAbstractRepository- See Also:
-
isWritable
public boolean isWritable()- Specified by:
isWritablein interfaceRepository
-
getValueFactory
- Specified by:
getValueFactoryin interfaceAGAbstractRepository- Specified by:
getValueFactoryin interfaceRepository
-
getConnection
public AGRepositoryConnection getConnection(ScheduledExecutorService executor) throws RepositoryException - Specified by:
getConnectionin interfaceAGAbstractRepository- Throws:
RepositoryException
-
getConnection
- Specified by:
getConnectionin interfaceAGAbstractRepository- Specified by:
getConnectionin interfaceRepository- Throws:
RepositoryException
-
close
Calls Sesame methodAbstractRepository.shutDown().- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
RepositoryException
-
getDataDir
Deprecated.not applicable to AllegroGraphThe dataDir is not currently applicable to AllegroGraph.- Specified by:
getDataDirin interfaceRepository- Throws:
UnsupportedOperationException- this operation is unsupported
-
setDataDir
Deprecated.not applicable to AllegroGraphThe dataDir is not currently applicable to AllegroGraph.- Specified by:
setDataDirin interfaceRepository- Throws:
UnsupportedOperationException- this operation is unsupported
-