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)
Construct ReferenceProperty.
dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py/APICore.get_cached--crossover with--dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/db/__init__.py/ReferenceProperty.__init__