GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
RDF::Core::Enumerator(3) User Contributed Perl Documentation RDF::Core::Enumerator(3)

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.

  • new

    Constructors differ for different implementations of Enumerator, see RDF::Core::Enumerator::Memory, RDF::Core::Enumerator::DB_File, RDF::Core::Enumerator::Postgres

  • getFirst

    Returns first statement in Enumerator, resets all preceding getNext calls. Returns undef if there is no statement.

  • getNext

    Returns next statement or undef if there are no more statements.

  • close

    Releases memory, disk, database cursor or whatever it used to provide the data.

Ginger Alliance, rdf@gingerall.cz

 RDF::Core::Enumerator::Memory, RDF::Core::Enumerator::DB_File, RDF::Core::Enumerator::Postgres
2001-11-13 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.