def get_cached(self, link, default=None):
        if hasattr(link, 'uri'):
            return self.id_map.get(link.uri, default)
        else:
            return self.id_map.get(link, default)
Retrieves a cached navigator from the id_map.
dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py/APICore.get_cached