de.fuberlin.wiwiss.ng4j.semwebclient
Class SemWebIterator
java.lang.Object
de.fuberlin.wiwiss.ng4j.semwebclient.SemWebIterator
- All Implemented Interfaces:
- Iterator
public class SemWebIterator
- extends Object
- implements Iterator
A Semantic Web Client Iterator which is returned from the find(TripleMatch
pattern) method of the SemWebClientImpl. If the hasNext() method is called
and there are no matching triples the Interator waits until new graphs are
retrieved. If the retrieval is finished and there are no more matching
triples the hasNext() method returns false.
- Author:
- Tobias Gauß
SemWebIterator
public SemWebIterator(FindQuery observer,
Triple pattern)
queueNamedGraphs
public void queueNamedGraphs(Iterator graphs)
noMoreGraphs
public void noMoreGraphs()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
- Specified by:
next
in interface Iterator
remove
public void remove()
- Specified by:
remove
in interface Iterator
getTriple
public Triple getTriple()
close
public void close()
toString
public String toString()
- Overrides:
toString
in class Object