public function EasyRdf_Resource::localName

Gets the local name of the URI of this resource

The local name is defined as the part of the URI string after the last occurrence of the '#', ':' or '/' character.

Return value

string The local name

File

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

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

public function localName() {
  if (preg_match("|([^#:/]+)\$|", $this->uri, $matches)) {
    return $matches[1];
  }
}