{
    "mode": "perldoc",
    "parameter": "RDF::Redland::Iterator",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/RDF%3A%3ARedland%3A%3AIterator/json",
    "generated": "2026-06-13T23:21:58Z",
    "synopsis": "use RDF::Redland;\n...\nmy $iterator=$model->targetsiterator($sourcenode, $arcnode);\nwhile($iterator && !$iterator->end) {\nmy $node=$iterator->current;\n...\n$iterator->next;\n}",
    "sections": {
        "NAME": {
            "content": "RDF::Redland::Iterator - Redland RDF Iterator Class\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use RDF::Redland;\n\n...\nmy $iterator=$model->targetsiterator($sourcenode, $arcnode);\nwhile($iterator && !$iterator->end) {\nmy $node=$iterator->current;\n...\n$iterator->next;\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This class is used to return lists of RDF::Redland::Node objects from a method that returns an\nRDF::Redland::Iterator - commonly one of the getsourcesiterator, gettargetsiterator or\ngetarcsiterator methods of the RDF::Redland::Model class.\n\nThis allows efficient retrieval of long lists of RDF::Redland::Node objects but isn't really\nvery Perl-friendly. The getsources, gettargets or getarcs methods of RDF::Redland::Model\nclass return Perl lists and the getsource, gettarget and getarc methods return single\narbitrary results.\n",
            "subsections": []
        },
        "CONSTRUCTORS": {
            "content": "No public constructors - are created and returned from various methods of classes including\nRDF::Redland::Model\n",
            "subsections": []
        },
        "METHODS": {
            "content": "end Return non 0 if the iterator has finished\n\ncurrent\nReturns the current RDF::Redland::Node object from the iteration or undef if the iteration\nis finished.\n\nnext\nMoves the iterator to the next item, returns undef if the iteration is finished.\n\ncontext\nReturns the context RDF::Redland::Node object from the iteration or undef if the iteration\nis finished.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "RDF::Redland::Model and RDF::Redland::Node\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Dave Beckett - http://www.dajobe.org/\n",
            "subsections": []
        }
    },
    "summary": "RDF::Redland::Iterator - Redland RDF Iterator Class",
    "flags": [],
    "examples": [],
    "see_also": []
}