|
NAMERDF::Core::Enumerator - an object that provides access to a set of statements
SYNOPSIS#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;
DESCRIPTIONA 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.
Interface
AUTHORGinger Alliance, rdf@gingerall.cz
SEE ALSORDF::Core::Enumerator::Memory, RDF::Core::Enumerator::DB_File, RDF::Core::Enumerator::Postgres |