| 1 |
<?xml version="1.0" encoding="iso-8859-1"?> |
| 2 |
<?xml version="1.0"?> |
| 3 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 4 |
<head> |
| 5 |
<title>Redland RDF Application Framework - Perl RDF::Redland::Iterator Class</title> |
| 6 |
</head> |
| 7 |
<body> |
| 8 |
|
| 9 |
<h1 style="text-align:center">Redland RDF Application Framework - Perl RDF::Redland::Iterator Class</h1> |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
<div name="index"> |
| 14 |
<p><a name="__index__"></a></p> |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
</div> |
| 29 |
|
| 30 |
|
| 31 |
<h2><a name="name">NAME</a></h2> |
| 32 |
<p>RDF::Redland::Iterator - Redland RDF Iterator Class</p> |
| 33 |
|
| 34 |
<h2><a name="synopsis">SYNOPSIS</a></h2> |
| 35 |
<pre> |
| 36 |
use RDF::Redland; |
| 37 |
</pre> |
| 38 |
<pre> |
| 39 |
... |
| 40 |
my $iterator=$model->targets_iterator($source_node, $arc_node); |
| 41 |
while($iterator && !$iterator->end) { |
| 42 |
my $node=$iterator->current; |
| 43 |
... |
| 44 |
$iterator->next; |
| 45 |
} |
| 46 |
</pre> |
| 47 |
|
| 48 |
<h2><a name="description">DESCRIPTION</a></h2> |
| 49 |
<p>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.</p> |
| 50 |
<p>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.</p> |
| 51 |
|
| 52 |
<h2><a name="constructors">CONSTRUCTORS</a></h2> |
| 53 |
<p>No public constructors - are created and returned from various methods of classes including RDF::Redland::Model</p> |
| 54 |
|
| 55 |
<h2><a name="methods">METHODS</a></h2> |
| 56 |
<dl> |
| 57 |
<dt><strong><a name="end" class="item">end</a></strong></dt> |
| 58 |
<dd> |
| 59 |
<p>Return non 0 if the iterator has finished</p> |
| 60 |
</dd> |
| 61 |
<dt><strong><a name="current" class="item">current</a></strong></dt> |
| 62 |
<dd> |
| 63 |
<p>Returns the current RDF::Redland::Node object from the iteration or undef if the iteration is finished.</p> |
| 64 |
</dd> |
| 65 |
<dt><strong><a name="next" class="item">next</a></strong></dt> |
| 66 |
<dd> |
| 67 |
<p>Moves the iterator to the next item, returns undef if the iteration is finished.</p> |
| 68 |
</dd> |
| 69 |
<dt><strong><a name="context" class="item">context</a></strong></dt> |
| 70 |
<dd> |
| 71 |
<p>Returns the context RDF::Redland::Node object from the iteration or undef if the iteration is finished.</p> |
| 72 |
</dd> |
| 73 |
</dl> |
| 74 |
|
| 75 |
<h2><a name="see_also">SEE ALSO</a></h2> |
| 76 |
<p><a href="Model.html">the RDF::Redland::Model manpage</a> and <a href="Node.html">the RDF::Redland::Node manpage</a></p> |
| 77 |
|
| 78 |
<h2><a name="author">AUTHOR</a></h2> |
| 79 |
<p>Dave Beckett - <a href="http://www.dajobe.org/">http://www.dajobe.org/</a></p> |
| 80 |
<hr /> |
| 81 |
|
| 82 |
<p>(C) Copyright 2000-2011 <a href="http://www.dajobe.org/">Dave Beckett</a>, (C) Copyright 2000-2005 <a href="http://www.bristol.ac.uk/">University of Bristol</a></p> |
| 83 |
|
| 84 |
</body> |
| 85 |
</html> |