de.fuberlin.wiwiss.ng4j.semwebclient
Class SemWebIterator

java.lang.Object
  extended by 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ß

Constructor Summary
SemWebIterator(FindQuery observer, Triple pattern)
           
 
Method Summary
 void close()
           
 Triple getTriple()
           
 boolean hasNext()
           
 Object next()
           
 void noMoreGraphs()
           
 void queueNamedGraphs(Iterator graphs)
           
 void remove()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SemWebIterator

public SemWebIterator(FindQuery observer,
                      Triple pattern)
Method Detail

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