load_pkg_chemical_hierarchy()
Load chemical class hierarchy from a TSV file.
Usage
load_pkg_chemical_hierarchy(file_path="scratch/wikidata_classes_taxonomy.tsv")The file should have at least 3 columns, where: - Column 2 (index 1): Class URI - Column 3 (index 2): Parent URI
Parameters
file_path: str | Path = "scratch/wikidata_classes_taxonomy.tsv"- Default is ‘scratch/wikidata_classes_taxonomy.tsv’.
Returns
dict[str, list[str]]- URIs.
Raises
DataLoadingError- If the file cannot be read or parsed.