(path_to_property_labels)
return return_map
:param path_to_property_labels: 
    :return:
    >>> load_property_labels("../resources/properties_with_labels.txt")["P106"]
    {'type': 'wikibase-item', 'altlabel': ['employment', 'craft', 'profession', 'job', 'work', 'career'], 'freq': 2290043, 'label': 'occupation'}
:param path_to_property_labels: 
    :return:
    >>> load_property_labels("../resources/properties_with_labels.txt")["P106"]
    {'type': 'wikibase-item', 'altlabel': ['employment', 'craft', 'profession', 'job', 'work', 'career'], 'freq': 2290043, 'label': 'occupation'}
: param path_to_property_labels : : return : >>> load_property_labels ( .. / resources / properties_with_labels . txt ) [ P106 ] { type : wikibase - item altlabel : [ employment craft profession job work career ] freq : 2290043 label : occupation }
def load_property_labels(path_to_property_labels):
    """
    
    :param path_to_property_labels: 
    :return:
    >>> load_property_labels("../resources/properties_with_labels.txt")["P106"]
    {'type': 'wikibase-item', 'altlabel': ['employment', 'craft', 'profession', 'job', 'work', 'career'], 'freq': 2290043, 'label': 'occupation'}
    """
    with open(path_to_property_labels) as infile:
        return_map = {}
        for l in infile.readlines():
            if not l.startswith("#"):
                columns = l.split("\t")
                return_map[columns[0].strip()] = {"label": columns[1].strip().lower(),
                                                  "altlabel": list(set(columns[3].strip().lower().split(", "))),
                                                  "type":  columns[4].strip().lower(),
                                                  "freq": int(columns[5].strip().replace(",",""))}
    return return_map
def load_property_labels ( path_to_property_labels ) : with open ( path_to_property_labels ) as infile : return_map = { } for l in infile . readlines ( ) : if not l . startswith ( "#" ) : columns = l . split ( "\t" ) return_map [ columns [ 0 ] . strip ( ) ] = { "label" : columns [ 1 ] . strip ( ) . lower ( ) , "altlabel" : list ( set ( columns [ 3 ] . strip ( ) . lower ( ) . split ( ", " ) ) ) , "type" : columns [ 4 ] . strip ( ) . lower ( ) , "freq" : int ( columns [ 5 ] . strip ( ) . replace ( "," , "" ) ) } return return_map