Package com.complexible.common.rdf

# Interface StatementIterator

All Superinterfaces:
  `AutoCloseable`, `CloseableIterator<Statement>`, `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

  Modifier and Type
  Method
  Description
  `default Namespaces`
  `namespaces()`
  Returns namespaces associated with this statement iteration if any.
  `default void`
  `process(RDFHandler handler)`
  `default Set<Statement>`
  `toGraph()`
  Transform the contents of the iterator into a graph.

  ### Methods inherited from interface com.complexible.common.base.CloseableIterator

  `close`

  ### Methods inherited from interface java.util.Iterator

  `forEachRemaining, hasNext, next, remove`

- ## Method Details

  - ### 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 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)