/** * Compare this statement with another statement. * * Two statements are equal if each of the three nodes in a statement * are equal to the corresponding nodes in the other statement. * * @param LibRDF_Statement $statement The statement against which to compare * @return boolean Whether the statements are equal * @access public */ public function isEqual(LibRDF_Statement $statement) { return (bool) librdf_statement_equals($this->statement, $statement->getStatement()); }
/** * Test whether the model contains a statement. * * @param LibRDF_Statement $statement The statement for which to search * @return boolean Whether such a statement exists in the graph * @access public */ public function hasStatement(LibRDF_Statement $statement) { if (librdf_model_contains_statement($this->model, $statement->getStatement())) { return true; } else { return false; } }