1RDF::Trine::Iterator::GUrsaeprh:C:oMnattreirbiuRatDleFid:z:ePTder(ri3ln)eD:o:cIutmeernattaotri:o:nGraph::Materialized(3)
2
3
4

NAME

6       RDF::Trine::Iterator::Graph::Materialized - Materialized graph class
7

VERSION

9       This document describes RDF::Trine::Iterator::Graph::Materialized
10       version 1.019
11

SYNOPSIS

13        use RDF::Trine::Iterator;
14
15        my $iterator = RDF::Trine::Iterator::Graph::Materialized->new( \@data );
16        while (my $statement = $iterator->next) {
17               # do something with $statement
18        }
19
20        my $iterator = RDF::Trine::Iterator::Graph->new( \&code );
21        my $miter = $iterator->materialize;
22        while (my $statement = $miter->next) {
23               # do something with $statement
24        }
25        $miter->reset; # start the iteration again
26        while (my $statement = $miter->next) {
27            # ...
28        }
29

METHODS

31       Beyond the methods documented below, this class inherits methods from
32       the RDF::Trine::Iterator::Graph class.
33
34       "new ( \@results, %args )"
35           Returns a new materialized graph interator. Results must be a
36           reference to an array containing individual results.
37
38       "reset"
39           Returns the iterator to its starting position.
40
41       "next"
42           Returns the next item in the iterator.
43
44       "length"
45           Returns the number of elements in the iterator.
46

BUGS

48       Please report any bugs or feature requests to through the GitHub web
49       interface at <https://github.com/kasei/perlrdf/issues>.
50

AUTHOR

52       Gregory Todd Williams  "<gwilliams@cpan.org>"
53
55       Copyright (c) 2006-2012 Gregory Todd Williams. This program is free
56       software; you can redistribute it and/or modify it under the same terms
57       as Perl itself.
58
59
60
61perl v5.34.0                      2R0D2F2:-:0T1r-i2n1e::Iterator::Graph::Materialized(3)
Impressum