import json


def cvClassToQid(array):
    """ Turn computer vision classes into Wikidata qids"""
    with open(r"classes_places.json", "r") as f:
        classes = json.load(f)

    qid_array = []
    for el in array:
        key = el.split('/')[0].lower().strip()
        qid_array.append("wd:" + classes[key])
    return qid_array