RDF::Redland::Iterator(3pm)

RDF::Redland::Iterator3pm

Redland rdf iterator class

Usage

  use RDF::Redland;
  ...
  my $iterator=$model->targets_iterator($source_node, $arc_node);
  while($iterator && !$iterator->end) {
    my $node=$iterator->current;
    ...
    $iterator->next;
  }

Overview

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.

Constructors

No public constructors - are created and returned from various methods of classes including RDF::Redland::Model

Methods

end

Return non 0 if the iterator has finished

current

Returns the current RDF::Redland::Node object from the iteration or undef if the iteration is finished.

next

Moves the iterator to the next item, returns undef if the iteration is finished.

context

Returns the context RDF::Redland::Node object from the iteration or undef if the iteration is finished.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 10 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 8
  7. 9
  8. 10
  9. 11
  10. 12
  11. 13

Author

Dave Beckett - http://www.dajobe.org/

From librdf-perl 1.0.17.1+dfsg-6+b6 in Debian 13 (Trixie). Parsed by carta from the page's man source.