You are here

public function EasyRdf_Resource::prefix in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \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

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

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

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