

def _make_embedded_from(self, doc):
    'Creates embedded navigators from a HAL response doc'
    ld = utils.CurieDict(self._core.default_curie, {
        
    })
    for (rel, doc) in doc.get('_embedded', {
        
    }).items():
        if isinstance(doc, list):
            ld[rel] = [self._recursively_embed(d) for d in doc]
        else:
            ld[rel] = self._recursively_embed(doc)
    return ld

dataset/ETHPy150Open deontologician/restnavigator/restnavigator/halnav.py HALNavigatorBase._make_embedded_from/original