def htlm_link_if_uri(value):
    try:
        uri = value.uri
        return '<a href="%s">%s</a>' % (uri, six.text_type(value))
    except __HOLE__:
        return six.text_type(value)
dataset/ETHPy150Open trungdong/prov/prov/dot.py/htlm_link_if_uri