src/pybel/manager/cache_manager.py
def _get_annotation_entries_from_data(self, graph: BELGraph, data: EdgeData) -> Optional[List[NamespaceEntry]]:
        """Get the annotation entries from an edge data dictionary."""
        annotations_dict = data.get(ANNOTATIONS)
        if annotations_dict is None:
            return
        rv = []
        for url, entities in self._iter_from_annotations_dict(graph, annotations_dict=annotations_dict):
            for entry in self.get_annotation_entries_by_names(url, entities):
                rv.append(entry)
        return rv
Get the annotation entries from an edge data dictionary.
Get the annotation entries from an edge data dictionary.
Get the annotation entries from an edge data dictionary .
def _get_annotation_entries_from_data(self, graph: BELGraph, data: EdgeData) -> Optional[List[NamespaceEntry]]:
        annotations_dict = data.get(ANNOTATIONS)
        if annotations_dict is None:
            return
        rv = []
        for url, entities in self._iter_from_annotations_dict(graph, annotations_dict=annotations_dict):
            for entry in self.get_annotation_entries_by_names(url, entities):
                rv.append(entry)
        return rv
def _get_annotation_entries_from_data ( self , graph : BELGraph , data : EdgeData ) -> Optional [ List [ NamespaceEntry ] ] : annotations_dict = data . get ( ANNOTATIONS ) if annotations_dict is None : return rv = [ ] for url , entities in self . _iter_from_annotations_dict ( graph , annotations_dict = annotations_dict ) : for entry in self . get_annotation_entries_by_names ( url , entities ) : rv . append ( entry ) return rv
Get the annotation entries from an edge data dictionary.
Get the annotation entries from an edge data dictionary .
"""Get the annotation entries from an edge data dictionary."""
self
graph
BELGraph
data
EdgeData