slib.sglib.model.repo
Interface GraphRepository


public interface GraphRepository

Interface defining a repository for the graphs.

Author:
Harispe Sébastien

Method Summary
 G getGraph(org.openrdf.model.URI uri)
          Retrieve a graph according to its URI.
 boolean isGraphRegistred(org.openrdf.model.URI uri)
          Check if a graph is registred to the given URI.
 void registerGraph(G graph)
          Register the graph into the repository.
 void unregisterGraph(org.openrdf.model.URI uri)
          Unregister the graph associated to the given URI
 

Method Detail

registerGraph

void registerGraph(G graph)
Register the graph into the repository.

Parameters:
graph - the graph to register.

getGraph

G getGraph(org.openrdf.model.URI uri)
Retrieve a graph according to its URI.

Parameters:
uri - the URI of the graph.
Returns:
the graph associated to the given URI, none if no graph can be found.

isGraphRegistred

boolean isGraphRegistred(org.openrdf.model.URI uri)
Check if a graph is registred to the given URI.

Parameters:
uri - the URI
Returns:
true if a graph is associated to the given URI.

unregisterGraph

void unregisterGraph(org.openrdf.model.URI uri)
Unregister the graph associated to the given URI

Parameters:
uri - the URI of the graph.


Copyright © 2013. All Rights Reserved.