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
ConstructorDescriptionAGVirtualRepository
(AGServer server, String spec, AGRepository wrapped) Applications normally create a virtual repository via an AGServer instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Calls Sesame methodAbstractRepository.shutDown()
.static String
federatedSpec
(String[] repoSpecs) static String
filteredSpec
(AGAbstractRepository repo, Resource[] contexts) static String
filteredSpec
(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.boolean
static String
reasoningSpec
(String repoSpec, String reasoner) static String
reasoningSpec
(String repoSpec, String reasoner, Resource inferredGraph) void
setDataDir
(File dataDir) Deprecated.not applicable to AllegroGraphMethods inherited from class org.eclipse.rdf4j.repository.base.AbstractRepository
init, isInitialized, shutDown
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getServer
in interfaceAGAbstractRepository
-
getCatalog
Virtual repositories don't reside on disk (their component stores do); they don't have a catalog.- Specified by:
getCatalog
in interfaceAGAbstractRepository
- Returns:
- always returns null
-
getSpec
Gets the store specification used to create this virtual repository.- Specified by:
getSpec
in interfaceAGAbstractRepository
- See Also:
-
isWritable
public boolean isWritable()- Specified by:
isWritable
in interfaceRepository
-
getValueFactory
- Specified by:
getValueFactory
in interfaceAGAbstractRepository
- Specified by:
getValueFactory
in interfaceRepository
-
getConnection
public AGRepositoryConnection getConnection(ScheduledExecutorService executor) throws RepositoryException - Specified by:
getConnection
in interfaceAGAbstractRepository
- Throws:
RepositoryException
-
getConnection
- Specified by:
getConnection
in interfaceAGAbstractRepository
- Specified by:
getConnection
in interfaceRepository
- Throws:
RepositoryException
-
close
Calls Sesame methodAbstractRepository.shutDown()
.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
RepositoryException
-
getDataDir
Deprecated.not applicable to AllegroGraphThe dataDir is not currently applicable to AllegroGraph.- Specified by:
getDataDir
in interfaceRepository
- Throws:
UnsupportedOperationException
- this operation is unsupported
-
setDataDir
Deprecated.not applicable to AllegroGraphThe dataDir is not currently applicable to AllegroGraph.- Specified by:
setDataDir
in interfaceRepository
- Throws:
UnsupportedOperationException
- this operation is unsupported
-