Franz Inc, AllegroGraph

com.franz.agraph.repository
Class AGVirtualRepository

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

public class AGVirtualRepository
extends Object
implements AGAbstractRepository, Closeable


Constructor Summary
AGVirtualRepository(AGServer server, String spec, AGRepository wrapped)
           
 
Method Summary
 void close()
          Calls Sesame method shutDown().
static String federatedSpec(String[] repoSpecs)
           
static String filteredSpec(AGAbstractRepository repo, Resource[] contexts)
           
static String filteredSpec(String repoSpec, String[] graphs)
           
 AGCatalog getCatalog()
           
 AGRepositoryConnection getConnection()
           
 File getDataDir()
          Deprecated. not applicable to AllegroGraph
 AGServer getServer()
           
 String getSpec()
           
 AGValueFactory getValueFactory()
           
 void initialize()
          Required by OpenRDF/Sesame, a repository must be initialized before use.
 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
 void shutDown()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AGVirtualRepository

public AGVirtualRepository(AGServer server,
                           String spec,
                           AGRepository wrapped)
Method Detail

getServer

public AGServer getServer()

getCatalog

public AGCatalog getCatalog()
Specified by:
getCatalog in interface AGAbstractRepository

getSpec

public String getSpec()
Specified by:
getSpec in interface AGAbstractRepository

isWritable

public boolean isWritable()
Specified by:
isWritable in interface Repository

getValueFactory

public AGValueFactory getValueFactory()
Specified by:
getValueFactory in interface AGAbstractRepository
Specified by:
getValueFactory in interface Repository

getConnection

public AGRepositoryConnection getConnection()
                                     throws RepositoryException
Specified by:
getConnection in interface AGAbstractRepository
Specified by:
getConnection in interface Repository
Throws:
RepositoryException

close

public void close()
           throws RepositoryException
Calls Sesame method shutDown().

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

initialize

public void initialize()
Required by OpenRDF/Sesame, a repository must be initialized before use.

Specified by:
initialize in interface Repository

shutDown

public void shutDown()
              throws RepositoryException
Specified by:
shutDown in interface Repository
Throws:
RepositoryException

setDataDir

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

The dataDir is not currently applicable to AllegroGraph.

Specified by:
setDataDir in interface 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 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,
                                   Resource inferredGraph)

filteredSpec

public static String filteredSpec(AGAbstractRepository repo,
                                  Resource[] contexts)

filteredSpec

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

Copyright © 2008-2011 Franz Inc.