de.fuberlin.wiwiss.ng4j.impl
Class NamedGraphStatementIterator
java.lang.Object
com.hp.hpl.jena.util.iterator.NiceIterator
com.hp.hpl.jena.util.iterator.WrappedIterator
com.hp.hpl.jena.rdf.model.impl.StmtIteratorImpl
de.fuberlin.wiwiss.ng4j.impl.NamedGraphStatementIterator
- All Implemented Interfaces:
- StmtIterator, ClosableIterator, ExtendedIterator, Iterator
public class NamedGraphStatementIterator
- extends com.hp.hpl.jena.rdf.model.impl.StmtIteratorImpl
Helper implementation of StmtIterator
that wraps a
StmtIterator and returns all of its elements as
NamedGraphStatement
s instead of simple Jena Statements.
This is somewhat hackish, but I couldn't figure out another way
to make sure that NamedGraphModel always returns NamedGraphStatements.
- Author:
- Richard Cyganiak (richard@cyganiak.de)
Methods inherited from class com.hp.hpl.jena.rdf.model.impl.StmtIteratorImpl |
nextStatement, remove |
Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator |
andThen, andThen, asList, asSet, emptyIterator, ensureHasNext, filterDrop, filterKeep, mapWith, noElements, removeNext, toList, toSet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedGraphStatementIterator
public NamedGraphStatementIterator(StmtIterator source,
NamedGraphModel model)
next
public Object next()
- Specified by:
next
in interface Iterator
- Overrides:
next
in class com.hp.hpl.jena.rdf.model.impl.StmtIteratorImpl