def _prepare_context(self, resource_id):
        self.ctx = dict(by_subject={}, by_object={})
        assocs = self._rr.find_associations(anyside=resource_id, id_only=False)
        self._add_associations(assocs)
        log.debug("Found %s associations for resource %s", len(assocs), resource_id)
Initializes the context object and loads associations for resource id.
dataset/ETHPy150Open ooici/pyon/pyon/ion/resource.py/ExtendedResourceContainer._prepare_context