org.jrdf
Class SortedDiskJRDFFactory

java.lang.Object
  extended by org.jrdf.SortedDiskJRDFFactory
All Implemented Interfaces:
JRDFFactory

public final class SortedDiskJRDFFactory
extends Object
implements JRDFFactory

The optimal version of an on disk JRDF graph. Currently, uses BDB for sorting intermedia results, Sesame for the on disk triple store and db4o for the ValueStore/NodePool/Stringpool.

Version:
$Id: TestJRDFFactory.java 533 2006-06-04 17:50:31 +1000 (Sun, 04 Jun 2006) newmana $
Author:
Andrew Newman

Method Summary
 void close()
          Closes any open resource created by the factory.
 TripleBTree[] getBTrees()
           
static JRDFFactory getFactory()
           
 Graph getNewGraph()
          Create a new JRDF graph depending on the current configuration.
 SparqlConnection getNewSparqlConnection()
          Create a new connection to perform SPARQL operations depending on the current configuration.
 void refresh()
          Reload any configuration files used to create the objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFactory

public static JRDFFactory getFactory()

refresh

public void refresh()
Description copied from interface: JRDFFactory
Reload any configuration files used to create the objects.

Specified by:
refresh in interface JRDFFactory

getBTrees

public TripleBTree[] getBTrees()

getNewGraph

public Graph getNewGraph()
Description copied from interface: JRDFFactory
Create a new JRDF graph depending on the current configuration.

Specified by:
getNewGraph in interface JRDFFactory
Returns:
a new instance of a JRDF graph.

getNewSparqlConnection

public SparqlConnection getNewSparqlConnection()
Description copied from interface: JRDFFactory
Create a new connection to perform SPARQL operations depending on the current configuration.

Specified by:
getNewSparqlConnection in interface JRDFFactory
Returns:
a new instance of a SPARQL connection.

close

public void close()
Description copied from interface: JRDFFactory
Closes any open resource created by the factory.

Specified by:
close in interface JRDFFactory