Return the prefix namespace that a URI belongs to.
string $uri A full URI (eg 'http://xmlns.com/foaf/0.1/name'):
string The prefix namespace that it is a part of(eg 'foaf')
public static function prefixOfUri($uri) {
if ($parts = self::splitUri($uri)) {
return $parts[0];
}
}