{
    "content": [
        {
            "type": "text",
            "text": "# RDF::Redland::Iterator (perldoc)\n\n## NAME\n\nRDF::Redland::Iterator - Redland RDF Iterator Class\n\n## SYNOPSIS\n\nuse RDF::Redland;\n...\nmy $iterator=$model->targetsiterator($sourcenode, $arcnode);\nwhile($iterator && !$iterator->end) {\nmy $node=$iterator->current;\n...\n$iterator->next;\n}\n\n## DESCRIPTION\n\nThis 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\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **CONSTRUCTORS**\n- **METHODS**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "RDF::Redland::Iterator",
        "section": "",
        "mode": "perldoc",
        "summary": "RDF::Redland::Iterator - Redland RDF Iterator Class",
        "synopsis": "use RDF::Redland;\n...\nmy $iterator=$model->targetsiterator($sourcenode, $arcnode);\nwhile($iterator && !$iterator->end) {\nmy $node=$iterator->current;\n...\n$iterator->next;\n}",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "CONSTRUCTORS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 13,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}