agatha.util.entity_types module¶
-
agatha.util.entity_types.is_data_bank_type(name: str) → bool¶ True if name is an appropriately formatted key of the specified type.
Names should be in the form “{type_key}:{name}”
- Parameters
name – Unsure name we’re querying
type_key – Single character type, such as one of the strings in this module.
-
agatha.util.entity_types.is_entity_type(name: str) → bool¶ True if name is an appropriately formatted key of the specified type.
Names should be in the form “{type_key}:{name}”
- Parameters
name – Unsure name we’re querying
type_key – Single character type, such as one of the strings in this module.
-
agatha.util.entity_types.is_gene_type(name: str) → bool¶ True if name is an appropriately formatted key of the specified type.
Names should be in the form “{type_key}:{name}”
- Parameters
name – Unsure name we’re querying
type_key – Single character type, such as one of the strings in this module.
-
agatha.util.entity_types.is_graph_key(name)¶ - Return type
bool
-
agatha.util.entity_types.is_lemma_type(name: str) → bool¶ True if name is an appropriately formatted key of the specified type.
Names should be in the form “{type_key}:{name}”
- Parameters
name – Unsure name we’re querying
type_key – Single character type, such as one of the strings in this module.
-
agatha.util.entity_types.is_mesh_term_type(name: str) → bool¶ True if name is an appropriately formatted key of the specified type.
Names should be in the form “{type_key}:{name}”
- Parameters
name – Unsure name we’re querying
type_key – Single character type, such as one of the strings in this module.
-
agatha.util.entity_types.is_ngram_type(name: str) → bool¶ True if name is an appropriately formatted key of the specified type.
Names should be in the form “{type_key}:{name}”
- Parameters
name – Unsure name we’re querying
type_key – Single character type, such as one of the strings in this module.
-
agatha.util.entity_types.is_predicate_type(name: str) → bool¶ True if name is an appropriately formatted key of the specified type.
Names should be in the form “{type_key}:{name}”
- Parameters
name – Unsure name we’re querying
type_key – Single character type, such as one of the strings in this module.
-
agatha.util.entity_types.is_sentence_type(name: str) → bool¶ True if name is an appropriately formatted key of the specified type.
Names should be in the form “{type_key}:{name}”
- Parameters
name – Unsure name we’re querying
type_key – Single character type, such as one of the strings in this module.
-
agatha.util.entity_types.is_type(type_key, name)¶ True if name is an appropriately formatted key of the specified type.
Names should be in the form “{type_key}:{name}”
- Parameters
name (
str) – Unsure name we’re queryingtype_key (
str) – Single character type, such as one of the strings in this module.
- Return type
bool
-
agatha.util.entity_types.is_umls_term_type(name: str) → bool¶ True if name is an appropriately formatted key of the specified type.
Names should be in the form “{type_key}:{name}”
- Parameters
name – Unsure name we’re querying
type_key – Single character type, such as one of the strings in this module.
-
agatha.util.entity_types.to_graph_key(name, key)¶ - Return type
str