RedlandDave Beckett |
|||||
|
Redland BindingsLanguagesDemonstrationsDownloadsData |
Redland RDF Language Bindings - Perl RDF::Redland::Statement ClassNAMERDF::Redland::Statement - Redland RDF Statement Class SYNOPSISuse RDF::Redland; my $statement1=new RDF::Redland::Statement($statement); my $statement2=new RDF::Redland::Statement($subject,$predicate,$object); ...
if($statement->subject->equals($node)) {
...
}
DESCRIPTIONManipulate RDF statements which comprise three RDF::Redland::Node objects. Also used for partial statements which can have empty parts and are used for matching statements in statement queries of the model - see the the RDF::Redland::Model manpage. CONSTRUCTORS
Copy a RDF::Redland::Statement. METHODS
Get/set the statement predicate. When RDF::Redland::Node PREDICATE is given, sets the predicate of the statement, otherwise returns a reference to the statement RDF::Redland::Node predicate. Get/set the statement object. When RDF::Redland::Node OBJECT is given, sets the object of the statement, otherwise returns a reference to the statement RDF::Redland::Node object. Return the statement formatted as a string (UTF-8 encoded). Return non zero if this statement is equal to STATEMENT OLD METHODS
Create a new RDF::Redland::Statement object from RDF::Redland::Statement STATEMENT (copy constructor). Use instead: $s=$old_statement->clone; SEE ALSOthe RDF::Redland::Node manpage AUTHORDave Beckett - http://www.dajobe.org/ (C) Copyright (C) 2000-2007 Dave Beckett, (C) Copyright (C) 2000-2005 University of Bristol |