def get_property_in_hierarchy(sdo_props, mapping_property, prop_type='new_sdo'
    ):
    """if a mapping property (indexed by its name, which is key "property")
       if found as a key in sdo_props at a particular entity (e.g., Thing)
       then we've found it in the sdo, and grab it's description for use from
       the sdo. If we don't find it, we return the type as a "new_sdo"
    """
    for entity in sdo_props:
        if mapping_property['property'] in sdo_props[entity]:
            prop_type = entity
            name = mapping_property['property']
            desc = sdo_props[entity][name]['description']
            mapping_property['description'] = desc
            break
    return {'type': prop_type, 'property': mapping_property}
