public function EasyRdf_Resource::prefix

Get a the prefix of the namespace that this resource is part of

This method will return null the resource isn't part of any registered namespace.

Return value

string The namespace prefix of the resource (e.g. foaf)

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php, line 127

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

public function prefix() {
  return EasyRdf_Namespace::prefixOfUri($this->uri);
}