import json


def load_corpus(filename: str) -> dict:
    """ Load corpus file (in jsonld format)
    """
    with open(filename, 'r') as f:
        corpus = json.load(f)
        return corpus['@graph']