import requests
import json


def load_context(context):
    """ Load the context variable from the given URL mapping

    :param context: a mapping of context URL
    :return: a context variable
    """
    full_context = {}

    for schema in context['contexts']:
        try:
            context_content = requests.get(context['contexts'][schema])
            full_context[schema] = json.loads(context_content.text)['@context']
        except Exception:
            pass

    return full_context