public function EasyRdf_Resource::toRdfPhp in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \EasyRdf_Resource::toRdfPhp()
Returns the properties of the resource as an RDF/PHP associative array
For example: array('type' => 'uri', 'value' => 'http://www.example.com/')
Return value
array The properties of the resource
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Resource.php, line 214
Class
- EasyRdf_Resource
- Class that represents an RDF resource
Code
public function toRdfPhp() {
if ($this
->isBNode()) {
return array(
'type' => 'bnode',
'value' => $this->uri,
);
}
else {
return array(
'type' => 'uri',
'value' => $this->uri,
);
}
}