org.jrdf
Class SortedMemoryGlobalJRDFFactory

java.lang.Object
  extended by org.jrdf.SortedMemoryGlobalJRDFFactory
All Implemented Interfaces:
GlobalJRDFFactory, JRDFFactory

public final class SortedMemoryGlobalJRDFFactory
extends Object
implements GlobalJRDFFactory

Uses default in memory constructors to create JRDF entry points. Returns sorted results.

Version:
$Id: SortedMemoryGlobalJRDFFactory.java 3312 2010-08-08 22:09:32Z newmana $
Author:
Andrew Newman

Method Summary
 void close()
           
static GlobalJRDFFactory getFactory()
           
 MoleculeGraph getGraph()
          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 GlobalJRDFFactory 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

getGraph

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

Specified by:
getGraph in interface GlobalJRDFFactory
Specified by:
getGraph 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()