Constructor for creating a new boolean literal
If the value is not a string, then it will be converted to 'true' or 'false'.
mixed $value The value of the literal:
string $lang Should be null (literals with a datatype can't have a language):
string $datatype Optional datatype (default 'xsd:boolean'):
object EasyRdf_Literal_Boolean
Overrides EasyRdf_Literal::__construct
public function __construct($value, $lang = null, $datatype = null) {
if (!is_string($value)) {
$value = $value ? 'true' : 'false';
}
parent::__construct($value, null, $datatype);
}