Returns the properties of the resource as an associative array
For example: array('type' => 'uri', 'value' => 'http://www.example.com/')
array The properties of the resource
public function toArray() {
if ($this
->isBnode()) {
return array(
'type' => 'bnode',
'value' => $this->uri,
);
}
else {
return array(
'type' => 'uri',
'value' => $this->uri,
);
}
}