Get the primary topic of the graph
EasyRdf_Resource The primary topic of the document.
public function primaryTopic($resource = null) {
$this
->checkResourceParam($resource, true);
if ($resource) {
return $this
->get($resource, 'foaf:primaryTopic|^foaf:isPrimaryTopicOf', 'resource');
}
else {
return null;
}
}