org.jrdf
Interface JRDFFactory

All Known Implementing Classes:
SortedBdbJRDFFactory, SortedDiskJRDFFactory, SortedMemoryJRDFFactory, SpringJRDFFactory

public interface JRDFFactory

A simple wrapper around Spring wiring to return types objects.

Version:
$Revision:$
Author:
Andrew Newman

Method Summary
 void close()
          Closes any open resource created by the factory.
 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.

close

void close()
Closes any open resource created by the factory.