Get an EasyRdf_Resource or EasyRdf_Literal object from an associative array. @ignore
protected function arrayToObject($data) {
if ($data) {
if ($data['type'] == 'uri' or $data['type'] == 'bnode') {
return $this
->resource($data['value']);
}
else {
return EasyRdf_Literal::create($data);
}
}
else {
return null;
}
}