{
    "mode": "perldoc",
    "parameter": "RDF::Redland::Statement",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/RDF%3A%3ARedland%3A%3AStatement/json",
    "generated": "2026-10-06T18:03:17Z",
    "synopsis": "use RDF::Redland;\nmy $statement1=new RDF::Redland::Statement($statement);\nmy $statement2=new RDF::Redland::Statement($subject,$predicate,$object);\n...\nif($statement->subject->equals($node)) {\n...\n}",
    "sections": {
        "NAME": {
            "content": "RDF::Redland::Statement - Redland RDF Statement Class\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use RDF::Redland;\nmy $statement1=new RDF::Redland::Statement($statement);\nmy $statement2=new RDF::Redland::Statement($subject,$predicate,$object);\n...\n\nif($statement->subject->equals($node)) {\n...\n}\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Manipulate RDF statements which comprise three RDF::Redland::Node objects. Also used for\n*partial* statements which can have empty parts and are used for matching statements in\nstatement queries of the model - see the RDF::Redland::Model.\n",
            "subsections": []
        },
        "CONSTRUCTORS": {
            "content": "new NODE NODE NODE|STATEMENT\nCreate a new statement from nodes or copy an existing statement.\n\nIf three *NODE*s are given, make a new statement from them. Each Node can be a\nRedland::RDF:Node, a Redland::RDF::URI, a perl URI or a string literal. Otherwise\n*STATEMENT* must be an existing statement to copy.\n\nclone\nCopy a RDF::Redland::Statement.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "subject [SUBJECT]\nGet/set the statement subject. When a RDF::Redland::Node *SUBJECT* is given, sets the\nsubject of the statement, otherwise returns a reference to the statement RDF::Redland::Node\nsubject.\n\npredicate [PREDICATE]\nGet/set the statement predicate. When RDF::Redland::Node *PREDICATE* is given, sets the\npredicate of the statement, otherwise returns a reference to the statement\nRDF::Redland::Node predicate.\n\nobject [OBJECT]\nGet/set the statement object. When RDF::Redland::Node *OBJECT* is given, sets the object of\nthe statement, otherwise returns a reference to the statement RDF::Redland::Node object.\n\nasstring\nReturn the statement formatted as a string (UTF-8 encoded).\n\nequals STATEMENT\nReturn non zero if this statement is equal to STATEMENT\n",
            "subsections": []
        },
        "OLD METHODS": {
            "content": "newfromnodes SUBJECT PREDICATE OBJECT\nCreate a new RDF::Redland::Statement with the given RDF::Redland::Node objects as parts (or\nundef when empty for a *partial* statement). Use instead:\n\n$a=new RDF::Redland::Statement($subject, $predicate, $object);\n\nnewfromstatement STATEMENT\nCreate a new RDF::Redland::Statement object from RDF::Redland::Statement *STATEMENT* (copy\nconstructor). Use instead:\n\n$s=$oldstatement->clone;\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "RDF::Redland::Node\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Dave Beckett - http://www.dajobe.org/\n",
            "subsections": []
        }
    },
    "summary": "RDF::Redland::Statement - Redland RDF Statement Class",
    "flags": [],
    "examples": [],
    "see_also": []
}