/** 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 string The namespace prefix of the resource (e.g. foaf) */ public function prefix() { return RdfNamespace::prefixOfUri($this->uri); }