1RDF::Redland::Iterator(U3s)er Contributed Perl DocumentatRiDoFn::Redland::Iterator(3)
2
3
4

NAME

6       RDF::Redland::Iterator - Redland RDF Iterator Class
7

SYNOPSIS

9         use RDF::Redland;
10
11         ...
12         my $iterator=$model->targets_iterator($source_node, $arc_node);
13         while($iterator && !$iterator->end) {
14           my $node=$iterator->current;
15           ...
16           $iterator->next;
17         }
18

DESCRIPTION

20       This class is used to return lists of RDF::Redland::Node objects from a
21       method that returns an RDF::Redland::Iterator - commonly one of the
22       get_sources_iterator, get_targets_iterator or get_arcs_iterator methods
23       of the RDF::Redland::Model class.
24
25       This allows efficient retrieval of long lists of RDF::Redland::Node
26       objects but isn't really very Perl-friendly.  The get_sources,
27       get_targets or get_arcs methods of RDF::Redland::Model class return
28       Perl lists and the get_source, get_target and get_arc methods return
29       single arbitrary results.
30

CONSTRUCTORS

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

METHODS

36       end Return non 0 if the iterator has finished
37
38       current
39           Returns the current RDF::Redland::Node object from the iteration or
40           undef if the iteration is finished.
41
42       next
43           Moves the iterator to the next item, returns undef if the iteration
44           is finished.
45
46       context
47           Returns the context RDF::Redland::Node object from the iteration or
48           undef if the iteration is finished.
49

SEE ALSO

51       RDF::Redland::Model and RDF::Redland::Node
52

AUTHOR

54       Dave Beckett - http://www.dajobe.org/
55
56
57
58perl v5.32.1                      2021-01-27         RDF::Redland::Iterator(3)
Impressum