def getAnnotationByUri(ro_config, auri, defaultType="string"):
    """
    Given an attribute URI from the manifest graph, returns an
    attribute name and type tuple for displaying an attribute
    """
    # Look for predefined name
    for atype in ro_config["annotationTypes"]:
        if str(atype["fullUri"]) == str(auri):
            return (atype["name"], atype["type"])
    # Look for CURIE match
    for (pref,puri) in ro_config["annotationPrefixes"].iteritems():
        if auri.startswith(puri):
            return (pref+":"+auri[len(puri):], defaultType)
    # return full URI in angle brackets
    return ("<"+str(auri)+">", defaultType)