{
    "mode": "perldoc",
    "parameter": "RDF::Redland::QueryResults",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/RDF%3A%3ARedland%3A%3AQueryResults/json",
    "generated": "2026-06-14T05:42:18Z",
    "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.",
    "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": []
        }
    },
    "summary": "RDF::Redland::QueryResults - Redland RDF Syntax Query Results Class",
    "flags": [],
    "examples": [],
    "see_also": []
}