def URITail(URI):
    """
    Returns the last bit of a URI.
    Useful for pulling out datatype from long namespaces , e.g. http://purl.org/nidash/fsl#fsl_000032
    :param URI: string
    :return: string
    """
    tail = URI.split('/')[-1]
    tail = tail.split('#')[-1]
    return tail
