eu.larkc.core.data
Class RdfGraphDataSet

java.lang.Object
  extended by eu.larkc.core.data.RdfGraphBase
      extended by eu.larkc.core.data.RdfGraphDataSet
All Implemented Interfaces:
InformationSet, RdfGraph, SetOfStatements, java.io.Serializable

public class RdfGraphDataSet
extends RdfGraphBase

Author:
vassil
See Also:
Serialized Form

Nested Class Summary
 class RdfGraphDataSet.GraphCloseableIterator
           
 
Constructor Summary
RdfGraphDataSet(org.openrdf.model.URI graph, SPARQLEndpoint endpoint)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object o)
           
 CloseableIterator<org.openrdf.model.Statement> getStatements()
          Iterates the statements.
 int hashCode()
           
 SetOfStatements toRDF(SetOfStatements data)
          Serializes this object to SetOfStatements.
 
Methods inherited from class eu.larkc.core.data.RdfGraphBase
getName, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RdfGraphDataSet

public RdfGraphDataSet(org.openrdf.model.URI graph,
                       SPARQLEndpoint endpoint)
Constructor

Parameters:
graph - is the named of the named graph
endpoint - is endpoint which serves this named graph
Method Detail

getStatements

public CloseableIterator<org.openrdf.model.Statement> getStatements()
Description copied from interface: SetOfStatements
Iterates the statements.

Returns:
closeableiterator over the statements.s

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toRDF

public SetOfStatements toRDF(SetOfStatements data)
Description copied from interface: InformationSet
Serializes this object to SetOfStatements.

Parameters:
data - is stream to serialize this object to.
Returns:
reference to the set of statements that contains the serialized data.