<jupyter_start><jupyter_text>Important prerequisite1. The package doesn't work with the newest version of Jupyter Notebook, run the following commands in your terminal before initiating the Notebook2. pip install notebook==5.7.53. pip install tornado==4.5.3  Install dependencies Don't worry about the error messages during installation, you will be fine.<jupyter_code># uncomment the following line if you haven't installed bte_schema
# !pip install git+https://github.com/kevinxin90/bte_schema#egg=bte_schema
# uncomment the following line if you haven't installed biothings_schema
#pip install git+https://github.com/biothings/biothings_schema.py#egg=biothings_schema.py
# import metadata module from biothings_explorer
from biothings_explorer.metadata import Metadata
# initialize Metadata module
metadata = Metadata()<jupyter_output><empty_output><jupyter_text>List all semantic types used in BioThings Explorer<jupyter_code>metadata.list_all_semantic_types()<jupyter_output><empty_output><jupyter_text>List all identifier types used in BioThings Explorer<jupyter_code>metadata.list_all_id_types()<jupyter_output><empty_output><jupyter_text>List all predicates used in BioThings Explorer<jupyter_code>metadata.list_all_predicates()<jupyter_output><empty_output><jupyter_text>List all associations between semantic types in BioThings Explorer<jupyter_code>metadata.list_all_associations()<jupyter_output><empty_output><jupyter_text>Filter all edges with "Gene" as the subject<jupyter_code>metadata.registry.filter_edges(input_cls="Gene")<jupyter_output><empty_output><jupyter_text>Filter all edges with "ChemicalSubstance" as the object<jupyter_code>metadata.registry.filter_edges(output_cls="ChemicalSubstance")<jupyter_output><empty_output><jupyter_text>Filter all edges connecting from "Gene" to "ChemicalSubstance"<jupyter_code>metadata.registry.filter_edges(input_cls="Gene", output_cls="ChemicalSubstance")<jupyter_output><empty_output><jupyter_text>Filter all edges representing "Gene" -> "targetedBy" -> "ChemicalSubstance"<jupyter_code>metadata.registry.filter_edges(input_cls="Gene", output_cls="ChemicalSubstance", edge_label="bts:targetedBy")<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0886654478976234, 'fraction_numerical': 0.005027422303473492, 'mean_word_length': 10.96174863387978, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 39, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '9', 'dir': 'jupyter-structured-clean-dedup', 'id': '142093', 'license': 'Apache-2.0', 'n_tokens_mistral': 715, 'n_tokens_neox': 675, 'n_words': 140, 'path': 'jupyter notebooks/BioThings Explorer Metadata.ipynb', 'repo_name': 'andrewsu/bte_schema', 'size': '2188'}