def base(property):
    """ Return the base part of a URI, `property` is a string denoting a URI.

    .. code-block:: python

        >>> print ns.base('http://sometest.ns/ns#symbol')
        http://sometest.ns/ns#

    """
    if '#' in property:
        return '%s#' % property.rsplit('#', 1)[0]
    return '%s/' % property.rsplit('/', 1)[0]
