public function EasyRdf_Resource::getResource in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \EasyRdf_Resource::getResource()
Get a single resource value for a property of the resource
If multiple values are set for a property then the value returned may be arbitrary.
This method will return null if there is not resource for the property.
Parameters
string|array $property The name of the property (e.g. foaf:name):
Return value
object EasyRdf_Resource Resource associated with the property
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Resource.php, line 397
Class
- EasyRdf_Resource
- Class that represents an RDF resource
Code
public function getResource($property) {
$this
->checkHasGraph();
return $this->graph
->get($this->uri, $property, 'resource');
}