linkahead.utils.get_entity module#
Convenience functions to retrieve a specific entity. Deprecated module, please use get_entity_by.
- linkahead.utils.get_entity.get_entity_by_id(eid: str | int, role: str | None = None) Entity#
Deprecated function, please use get_entity_by(eid=…) instead. Return the result of a unique query that uses the id to find the correct entity.
Submits the query “FIND {role} WITH id=’{eid}’”.
- Parameters:
role (str, optional) – The role for the query, defaults to
ENTITY.
- linkahead.utils.get_entity.get_entity_by_name(name: str, role: str | None = None) Entity#
Deprecated function, please use get_entity_by(name=…) instead. Return the result of a unique query that uses the name to find the correct entity.
Submits the query “FIND {role} WITH name=’{name}’”.
- Parameters:
role (str, optional) – The role for the query, defaults to
ENTITY.
- linkahead.utils.get_entity.get_entity_by_path(path: str) Entity#
Deprecated function, please use get_entity_by(path=…) instead. Return the result of a unique query that uses the path to find the correct file.
Submits the query “FIND {role} WHICH IS STORED AT ‘{path}’”.
- Parameters:
role (str, optional) – The role for the query, defaults to
ENTITY.