org.omwg.ordi.rdf
Interface TripleIterator


public interface TripleIterator

an interface representing an RDF triple iterator

Version:
$Revision: 1.1 $ $Date: 2006/02/01 14:19:21 $
Author:
Damyan

Method Summary
 void close()
          when the iterator is exhauted, invoke this method for cleanup
 boolean hasNext()
          checks wheter the iterator has more triples
 Triple next()
          retrieves the current Triple and advances the itreator
 

Method Detail

hasNext

boolean hasNext()
checks wheter the iterator has more triples

Returns:
true, if there are more triples, false otherwise

next

Triple next()
retrieves the current Triple and advances the itreator

Returns:
current Triple

close

void close()
when the iterator is exhauted, invoke this method for cleanup



Copyright © 2005-2006 Ontotext Lab., GNU LGPL License applies.