{
    "content": [
        {
            "type": "text",
            "text": "# RDF::Redland::QueryResults (perldoc)\n\n## NAME\n\nRDF::Redland::QueryResults - Redland RDF Syntax Query Results Class\n\n## SYNOPSIS\n\nuse RDF::Redland;\n...\nmy $query=new RDF::Redland::Query(\"query string\", undef, undef, \"sparql\");\nmy $results=$model->queryexecute($query);\n# or my $results=$query->execute($model);\nwhile(!$results->finished) {\nfor (my $i=0; $i < $results->bindingscount(); $i++) {\nmy $name=$results->bindingname($i);\nmy $value=$results->bindingvalue($i);\n# ... do something with the results\n}\n$results->nextresult;\n}\nThe $results in the example is an object of class RDF::Redland::QueryResults.\n\n## DESCRIPTION\n\nThis class represents queries of various syntaxes over an RDF::Redland::Model returning a\nsequence of results that bind variable names to RDF::Redland::Node values.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **CONSTRUCTOR**\n- **METHODS**\n- **SEE ALSO**\n- **AUTHOR**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "RDF::Redland::QueryResults",
        "section": "",
        "mode": "perldoc",
        "summary": "RDF::Redland::QueryResults - Redland RDF Syntax Query Results Class",
        "synopsis": "use RDF::Redland;\n...\nmy $query=new RDF::Redland::Query(\"query string\", undef, undef, \"sparql\");\nmy $results=$model->queryexecute($query);\n# or my $results=$query->execute($model);\nwhile(!$results->finished) {\nfor (my $i=0; $i < $results->bindingscount(); $i++) {\nmy $name=$results->bindingname($i);\nmy $value=$results->bindingvalue($i);\n# ... do something with the results\n}\n$results->nextresult;\n}\nThe $results in the example is an object of class RDF::Redland::QueryResults.",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 17,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "CONSTRUCTOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 49,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "RDF::Redland::QueryResults - Redland RDF Syntax Query Results Class\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "use RDF::Redland;\n\n...\nmy $query=new RDF::Redland::Query(\"query string\", undef, undef, \"sparql\");\nmy $results=$model->queryexecute($query);\n# or my $results=$query->execute($model);\nwhile(!$results->finished) {\nfor (my $i=0; $i < $results->bindingscount(); $i++) {\nmy $name=$results->bindingname($i);\nmy $value=$results->bindingvalue($i);\n# ... do something with the results\n}\n$results->nextresult;\n}\n\nThe $results in the example is an object of class RDF::Redland::QueryResults.\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This class represents queries of various syntaxes over an RDF::Redland::Model returning a\nsequence of results that bind variable names to RDF::Redland::Node values.\n",
                "subsections": []
            },
            "CONSTRUCTOR": {
                "content": "There are no public constructors.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "count\nReturn the number of current results from the query.\n\nfinished\nReturn non-0 if the results have been exhausted.\n\nbindingname INDEX\nGet the name of variable binding *INDEX* in the array of variable names.\n\nbindingnames\nGet the names all of the variable bindings as an array.\n\nbindingvalue INDEX\nGet the value of the variable binding *INDEX* in the current query result.\n\nbindingvalues\nGet the values of all of the variable bindings in the current query result.\n\nbindingvaluebyname NAME\nGet the value of the variable binding *NAME* in the current query result.\n\nbindings\nGet the variable names and values of the current query result as a hash\n\nbindingscount\nReturn the number of variable bindings.\n\nnextresult\nMove to the next query result.\n\nasstream\nReturn a new RDF::Redland::Stream object representing the query results as an RDF Graph.\n\ntostring [FORMAT-URI [BASE-URI]]\nSerialize to a string syntax in format *FORMAT-URI* using the optional *BASE-URI*. The\ndefault format when none is given is determined by librdfqueryresultstostring.\n\nisbindings\nReturn non-0 if the query results format is variable bindings\n\nisboolean\nReturn non-0 if the query results format is a boolean\n\nisgraph\nReturn non-0 if the query results format is an RDF graph\n\ngetboolean\nGet the boolean query result; non-0 is true.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "RDF::Redland::Query\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Dave Beckett - http://www.dajobe.org/\n",
                "subsections": []
            }
        }
    }
}