def get_term_name_from_rdf(class_, data):
    """Looks for label for class in the rdf graph"""
    name = None
    try:
        name = data.rdfGraph.label(class_).__str__()
    except AttributeError:
        pass
    return name