|
def get_element(self, name: str) -> Optional[Element]: |
When calling get_element for "KnowledgeGraph" it will return the element for "knowledge graph". We have other biolink classes which try to have uppercase in their names, but I think this is the only case where there's a "collision". utils.parse_name is where this transformation actually happens.
|
def parse_name(name) -> str: |
These are two seperate classes in biolink as of now --- https://github.com/biolink/biolink-model/blob/aeb8d718d418ca7d079ddb9a9171f79812aba118/biolink-model.yaml#L6693-6716
biolink-model-toolkit/bmt/toolkit.py
Line 1192 in 6221e50
When calling get_element for "KnowledgeGraph" it will return the element for "knowledge graph". We have other biolink classes which try to have uppercase in their names, but I think this is the only case where there's a "collision". utils.parse_name is where this transformation actually happens.
biolink-model-toolkit/bmt/utils.py
Line 126 in 6221e50
These are two seperate classes in biolink as of now --- https://github.com/biolink/biolink-model/blob/aeb8d718d418ca7d079ddb9a9171f79812aba118/biolink-model.yaml#L6693-6716