public function EasyRdf_Resource::shorten in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \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
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Resource.php, line 148
Class
- EasyRdf_Resource
- Class that represents an RDF resource
Code
public function shorten() {
return EasyRdf_Namespace::shorten($this->uri);
}