import json


def load_entities_uri(path: str):
    """
    two dicts: id -> uri and uri -> id
    """
    d_all = json.load(open(path))
    id2uri = dict(enumerate(d_all["entities"]["all"]))
    uri2id = {v: k for k, v in id2uri.items()}
    return id2uri, uri2id