load_pkg_chemical_hierarchy

load_pkg_chemical_hierarchy(file_path: str = 'scratch/wikidata_classes_taxonomy.tsv') dict[source]

Load package chemical classes hierarchy.

Parameters:

file_path (str) – The path to the file containing the hierarchy data.

Returns:

A dictionary representing the parent-child relationships between classes.

Return type:

dict