Package com.complexible.common.rdf
Interface StatementIterator
-
- All Superinterfaces:
java.lang.AutoCloseable
,CloseableIterator<Statement>
,java.util.Iterator<Statement>
- All Known Implementing Classes:
GraphQueryResultIterator
,MultiStatementIterator
public interface StatementIterator extends CloseableIterator<Statement>
Interface which will iterate over a source of Statements.
- Since:
- 0.3
- Version:
- 6.0
- Author:
- Michael Grove, Evren Sirin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.complexible.common.base.CloseableIterator
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T>
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Namespaces
namespaces()
Returns namespaces associated with this statement iteration if any.default void
process(RDFHandler handler)
default java.util.Set<Statement>
toGraph()
Transform the contents of the iterator into a graph.-
Methods inherited from interface com.complexible.common.base.CloseableIterator
close
-
-
-
-
Method Detail
-
namespaces
default Namespaces namespaces()
Returns namespaces associated with this statement iteration if any.- Returns:
- possibly empty namespaces but never
null
- Since:
- 1.0.6
-
toGraph
default java.util.Set<Statement> toGraph()
Transform the contents of the iterator into a graph.- Returns:
- the iterator contents as a graph
- Implementation Notes:
- This iterator set is closed as a side effect of the call.
-
process
default void process(RDFHandler handler)
-
-