org.jrdf
Interface JRDFFactory

All Known Subinterfaces:
GlobalJRDFFactory, PersistentGlobalJRDFFactory, PersistentJRDFFactory
All Known Implementing Classes:
MemoryJRDFFactory, PersistentGlobalJRDFFactoryImpl, PersistentJRDFFactoryImpl, SortedDiskBdbGlobalJRDFFactory, SortedDiskBdbJRDFFactory, SortedDiskGlobalJRDFFactory, SortedDiskJRDFFactory, SortedMemoryGlobalJRDFFactory, SortedMemoryJRDFFactory, SpringJRDFFactory

public interface JRDFFactory

A simple wrapper around Spring wiring to return types objects.

Version:
$Id: JRDFFactory.java 3278 2010-05-25 21:56:50Z newmana $
Author:
Andrew Newman

Method Summary
 Graph 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.
 

Method Detail

refresh

void refresh()
Reload any configuration files used to create the objects.


getGraph

Graph getGraph()
Create a new JRDF graph depending on the current configuration.

Returns:
a new instance of a JRDF graph.

getNewSparqlConnection

SparqlConnection getNewSparqlConnection()
Create a new connection to perform SPARQL operations depending on the current configuration.

Returns:
a new instance of a SPARQL connection.