org.openanzo.glitter.dataset
Interface RDFDataset<GraphRepresentation>

Type Parameters:
GraphRepresentation - The type used to represent the contents of a graph
All Known Subinterfaces:
StreamingDataset
All Known Implementing Classes:
BasicDataset, BasicGlitterDataset, HTTPStreamingDataset

public interface RDFDataset<GraphRepresentation>

An RDFDataset maps URIs to an arbitrary (templated) graph representation.

Author:
Lee

Method Summary
 void addDefaultGraph(java.net.URI name)
          Adds (by RDF merge) the graph represented by name to the default graph for this dataset
 void addNamedGraph(java.net.URI name)
          Adds the graph represented by name to the set of named graphs for this dataset
 GraphRepresentation getDefaultGraph(java.net.URI name)
          Retrieve the representation of the given default graph
 java.util.Iterator<java.net.URI> getDefaultGraphs()
           
 GraphRepresentation getNamedGraph(java.net.URI name)
          Retrieve the representation of the given named graph
 java.util.Iterator<java.net.URI> getNamedGraphs()
           
 void setDefaultGraphs(java.util.Set<java.net.URI> graphs)
          Sets the full set of graphs that are merged to form the default graph for this dataset.
 void setNamedGraphs(java.util.Set<java.net.URI> graphs)
          Sets the full set of graphs that comprise the named graph portion of this dataset
 

Method Detail

addDefaultGraph

void addDefaultGraph(java.net.URI name)
Adds (by RDF merge) the graph represented by name to the default graph for this dataset

Parameters:
name - Identifier of the graph being added

addNamedGraph

void addNamedGraph(java.net.URI name)
Adds the graph represented by name to the set of named graphs for this dataset

Parameters:
name - Identifier of the graph being added

setDefaultGraphs

void setDefaultGraphs(java.util.Set<java.net.URI> graphs)
Sets the full set of graphs that are merged to form the default graph for this dataset.

Parameters:
graphs - The new graphs that form the default graph

setNamedGraphs

void setNamedGraphs(java.util.Set<java.net.URI> graphs)
Sets the full set of graphs that comprise the named graph portion of this dataset

Parameters:
graphs - The new named graphs

getDefaultGraph

GraphRepresentation getDefaultGraph(java.net.URI name)
                                    throws UnknownGraphException
Retrieve the representation of the given default graph

Parameters:
name - Identifies the component of the default graph whose representation should be returned
Returns:
A representation of the given graph
Throws:
UnknownGraphException

getNamedGraph

GraphRepresentation getNamedGraph(java.net.URI name)
                                  throws UnknownGraphException
Retrieve the representation of the given named graph

Parameters:
name - Identifies the named graph whose representation should be returned
Returns:
A representation of the given graph
Throws:
UnknownGraphException

getDefaultGraphs

java.util.Iterator<java.net.URI> getDefaultGraphs()
Returns:
An iterator over the graph identifiers that comprise the default graph

getNamedGraphs

java.util.Iterator<java.net.URI> getNamedGraphs()
Returns:
An iterator over the graph identifiers for the named graphs in this dataset


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.