public function EasyRdf_Resource::shorten

Get a shortened version of the resources URI.

This method will return the full URI if the resource isn't part of any registered namespace.

Return value

string The shortened URI of this resource (e.g. foaf:name)

File

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

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

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