Dan Pokorny > RDF-Core-0.51 > RDF::Core::Enumerator

Download:
RDF-Core-0.51.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  4
Open  3
View/Report Bugs
Source  

NAME ^

RDF::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;

DESCRIPTION ^

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.

Interface

AUTHOR ^

Ginger Alliance, rdf@gingerall.cz

SEE ALSO ^

 RDF::Core::Enumerator::Memory, RDF::Core::Enumerator::DB_File, RDF::Core::Enumerator::Postgres
syntax highlighting: