value) === 'true' or $this->value === '1'; } /** Return true if the value of the literal is 'true' or '1' * * @return bool */ public function isTrue() { return strtolower($this->value) === 'true' or $this->value === '1'; } /** Return true if the value of the literal is 'false' or '0' * * @return bool */ public function isFalse() { return strtolower($this->value) === 'false' or $this->value === '0'; } } EasyRdf_Literal::setDatatypeMapping('xsd:boolean', 'EasyRdf_Literal_Boolean');