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,org.eclipse.rdf4j.repository.Repository
public class AGVirtualRepository
extends org.eclipse.rdf4j.repository.base.AbstractRepository
implements AGAbstractRepository
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.
- See Also:
-
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, org.eclipse.rdf4j.model.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, org.eclipse.rdf4j.model.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
public static String filteredSpec(AGAbstractRepository repo, org.eclipse.rdf4j.model.Resource[] contexts) -
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 interfaceorg.eclipse.rdf4j.repository.Repository
-
getValueFactory
- Specified by:
getValueFactoryin interfaceAGAbstractRepository- Specified by:
getValueFactoryin interfaceorg.eclipse.rdf4j.repository.Repository
-
getConnection
public AGRepositoryConnection getConnection(ScheduledExecutorService executor) throws org.eclipse.rdf4j.repository.RepositoryException - Specified by:
getConnectionin interfaceAGAbstractRepository- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
getConnection
public AGRepositoryConnection getConnection() throws org.eclipse.rdf4j.repository.RepositoryException- Specified by:
getConnectionin interfaceAGAbstractRepository- Specified by:
getConnectionin interfaceorg.eclipse.rdf4j.repository.Repository- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
close
public void close() throws org.eclipse.rdf4j.repository.RepositoryExceptionCalls Sesame methodAbstractRepository.shutDown().- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
org.eclipse.rdf4j.repository.RepositoryException
-
getDataDir
Deprecated.not applicable to AllegroGraphThe dataDir is not currently applicable to AllegroGraph.- Specified by:
getDataDirin interfaceorg.eclipse.rdf4j.repository.Repository- Throws:
UnsupportedOperationException- this operation is unsupported
-
setDataDir
Deprecated.not applicable to AllegroGraphThe dataDir is not currently applicable to AllegroGraph.- Specified by:
setDataDirin interfaceorg.eclipse.rdf4j.repository.Repository- Throws:
UnsupportedOperationException- this operation is unsupported
-