Skip to content

toolkit.get_element() cannot differentiate between "biolink:KnowledgeGraph" and "biolink:knowledge graph" #194

@DnlRKorn

Description

@DnlRKorn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions