eu.larkc.core.data
Class HTTPRemoteGraph

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

public class HTTPRemoteGraph
extends RdfGraphBase

HTTPRemoteGraph is RDF named graph passed by reference. The class could be used to access RDF data published in the web and access via HTTP protocol. The implementation supports a 303 URL redirection.

Author:
vassil
See Also:
Serialized Form

Constructor Summary
HTTPRemoteGraph(org.openrdf.model.URI uri)
          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

HTTPRemoteGraph

public HTTPRemoteGraph(org.openrdf.model.URI uri)
Constructor

Parameters:
uri - is resolveable address that contains the data.
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.