from typing import Tuple


def parse_namespace_uri(uri: str) -> Tuple[str, str, str]:
    """Get the prefix and namespace of a given URI (without identifier, only with a namspace at last position).

    :param uri: URI
    :returns: prefix (ex: http://purl.org/dc/terms/...)
    :returns: namespace (ex: .../isPartOf)
    """
    # Split the uri str by '/'.
    splited_uri = uri.split('/')

    # Get the uri prefix and namespace into different variables.
    prefix = '/'.join(splited_uri[0:-1])
    namespace = splited_uri[-1]
    vocabulary = namespace.split('#')[-1]

    return prefix, namespace, vocabulary