RDF::Redland::Iterator - Redland RDF Iterator Class
use RDF::Redland; ... my $iterator=$model->targets_iterator($source_node, $arc_node); while($iterator && !$iterator->end) { my $node=$iterator->current; ... $iterator->next; }
This class is used to return lists of RDF::Redland::Node objects from a method that returns an RDF::Redland::Iterator - commonly one of the get_sources_iterator, get_targets_iterator or get_arcs_iterator methods of the RDF::Redland::Model class.
This allows efficient retrieval of long lists of RDF::Redland::Node objects but isn't really very Perl-friendly. The get_sources, get_targets or get_arcs methods of RDF::Redland::Model class return Perl lists and the get_source, get_target and get_arc methods return single arbitrary results.
No public constructors - are created and returned from various methods of classes including RDF::Redland::Model
Return non 0 if the iterator has finished
Returns the current RDF::Redland::Node object from the iteration or undef if the iteration is finished.
Moves the iterator to the next item, returns undef if the iteration is finished.
Returns the context RDF::Redland::Node object from the iteration or undef if the iteration is finished.
RDF::Redland::Model and RDF::Redland::Node
Dave Beckett - http://purl.org/net/dajobe/
To install RDF::Redland::World, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::Redland::World
CPAN shell
perl -MCPAN -e shell install RDF::Redland::World
For more information on module installation, please visit the detailed CPAN module installation guide.