RDF::Core::Enumerator - an object that provides access to a set of statements
#print content of a model my $enumerator = $model->getStmts; my $statement = $enumerator->getFirst; while (defined $statement) { print $statement->getLabel."\n"; $statement = $enumerator->getNext } $enumerator->close;
A set of statements (such as returned by $model->getStmts) is represented by some descendant of RDF::Core::Enumerator. Statements can be accessed by calling getNext method repeatedly until it returns undef, which means there are no more statements to get.
Ginger Alliance, rdf@gingerall.cz
RDF::Core::Enumerator::Memory, RDF::Core::Enumerator::DB_File, RDF::Core::Enumerator::Postgres