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


Manual Reference Pages  -  RDF::CORE::ENUMERATOR (3)

.ds Aq ’

NAME

RDF::Core::Enumerator - an object that provides access to a set of statements

CONTENTS

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

o new

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

o getFirst

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

o getNext

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

o close

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

AUTHOR

Ginger Alliance, rdf@gingerall.cz

SEE ALSO



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



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


perl v5.20.3 RDF::CORE::ENUMERATOR (3) 2001-11-13

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