org.jrdf
Interface JRDFFactory

All Known Implementing Classes:
SortedMemoryJRDFFactoryImpl, SpringJRDFFactoryImpl

public interface JRDFFactory

A simple wrapper around Spring wiring to return types objects.

Version:
$Revision:$
Author:
Andrew Newman

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

Method Detail

refresh

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


getNewGraph

Graph getNewGraph()
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.