Franz Inc, AllegroGraph

com.franz.agraph.repository
Class AGVirtualRepository

java.lang.Object
  extended by org.openrdf.repository.base.RepositoryBase
      extended by com.franz.agraph.repository.AGVirtualRepository
All Implemented Interfaces:
AGAbstractRepository, Closeable, org.openrdf.repository.Repository

public class AGVirtualRepository
extends org.openrdf.repository.base.RepositoryBase
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:
AGServer.virtualRepository(String), AGServer.federate(AGAbstractRepository...)

Constructor Summary
AGVirtualRepository(AGServer server, String spec, AGRepository wrapped)
          Applications normally create a virtual repository via an AGServer instance.
 
Method Summary
 void close()
          Calls Sesame method RepositoryBase.shutDown().
static String federatedSpec(String[] repoSpecs)
           
static String filteredSpec(AGAbstractRepository repo, org.openrdf.model.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()
           
 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, org.openrdf.model.Resource inferredGraph)
           
 void setDataDir(File dataDir)
          Deprecated. not applicable to AllegroGraph
 
Methods inherited from class org.openrdf.repository.base.RepositoryBase
initialize, isInitialized, shutDown
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.repository.Repository
initialize, isInitialized, shutDown
 

Constructor Detail

AGVirtualRepository

public AGVirtualRepository(AGServer server,
                           String spec,
                           AGRepository wrapped)
Applications normally create a virtual repository via an AGServer instance.

See Also:
AGServer.virtualRepository(String), AGServer.federate(AGAbstractRepository...)
Method Detail

getServer

public AGServer getServer()

getCatalog

public AGCatalog getCatalog()
Virtual repositories don't reside on disk (their component stores do); they don't have a catalog.

Specified by:
getCatalog in interface AGAbstractRepository
Returns:
null

getSpec

public String getSpec()
Gets the store specification used to create this virtual repository.

Specified by:
getSpec in interface AGAbstractRepository
See Also:
AGServer.virtualRepository(String)

isWritable

public boolean isWritable()
Specified by:
isWritable in interface org.openrdf.repository.Repository

getValueFactory

public AGValueFactory getValueFactory()
Specified by:
getValueFactory in interface AGAbstractRepository
Specified by:
getValueFactory in interface org.openrdf.repository.Repository

getConnection

public AGRepositoryConnection getConnection()
                                     throws org.openrdf.repository.RepositoryException
Specified by:
getConnection in interface AGAbstractRepository
Specified by:
getConnection in interface org.openrdf.repository.Repository
Throws:
org.openrdf.repository.RepositoryException

close

public void close()
           throws org.openrdf.repository.RepositoryException
Calls Sesame method RepositoryBase.shutDown().

Specified by:
close in interface Closeable
Throws:
org.openrdf.repository.RepositoryException
See Also:
Closeable.close()

setDataDir

public void setDataDir(File dataDir)
Deprecated. not applicable to AllegroGraph

The dataDir is not currently applicable to AllegroGraph.

Specified by:
setDataDir in interface org.openrdf.repository.Repository
Throws:
UnsupportedOperationException

getDataDir

public File getDataDir()
Deprecated. not applicable to AllegroGraph

The dataDir is not currently applicable to AllegroGraph.

Specified by:
getDataDir in interface org.openrdf.repository.Repository
Throws:
UnsupportedOperationException

federatedSpec

public static String federatedSpec(String[] repoSpecs)

reasoningSpec

public static String reasoningSpec(String repoSpec,
                                   String reasoner)

reasoningSpec

public static String reasoningSpec(String repoSpec,
                                   String reasoner,
                                   org.openrdf.model.Resource inferredGraph)

filteredSpec

public static String filteredSpec(AGAbstractRepository repo,
                                  org.openrdf.model.Resource[] contexts)

filteredSpec

public static String filteredSpec(String repoSpec,
                                  String[] graphs)

Copyright © 2008-2016 Franz Inc.