You are here

public function EasyRdf_Resource::primaryTopic in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \EasyRdf_Resource::primaryTopic()

Get the primary topic of this resource.

Returns null if no primary topic is available.

Return value

EasyRdf_Resource The primary topic of this resource.

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php, line 624

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

public function primaryTopic() {
  $this
    ->checkHasGraph();
  return $this->graph
    ->primaryTopic($this->uri);
}