eu.larkc.core.data
Class RdfGraphInMemory
java.lang.Object
eu.larkc.core.data.RdfGraphBase
eu.larkc.core.data.RdfGraphInMemory
- All Implemented Interfaces:
- InformationSet, RdfGraph, SetOfStatements, java.io.Serializable
public class RdfGraphInMemory
- extends RdfGraphBase
- Author:
- vassil
- See Also:
- Serialized Form
Constructor Summary |
RdfGraphInMemory(org.openrdf.model.URI graph,
java.util.Collection<org.openrdf.model.Statement> data)
Constructor |
RdfGraphInMemory(org.openrdf.model.URI graph,
java.lang.Iterable<org.openrdf.model.Statement> data)
Constructor |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
RdfGraphInMemory
public RdfGraphInMemory(org.openrdf.model.URI graph,
java.lang.Iterable<org.openrdf.model.Statement> data)
- Constructor
- Parameters:
graph
- is the named of the graphdata
- are the statements to associated
RdfGraphInMemory
public RdfGraphInMemory(org.openrdf.model.URI graph,
java.util.Collection<org.openrdf.model.Statement> data)
- Constructor
- Parameters:
graph
- is the named of the graphdata
- are the statements to associated
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.