Skip to content

iCog-Labs-Dev/pubchem2metta

Repository files navigation

PubChem to MeTTa

This repo uses a BioCypher driven approach to represent PubChem RDF data and map them to MeTTa files.

You can follow these steps to map these compound PubChem RDF files into MeTTa.

  1. Install poetry using pipx:
pipx install poetry
  1. Install all required dependencies:
poetry install
  1. Activate poetry virtual environment:
poetry shell
  1. Run main() to generate the MeTTa files for PubChem:
python create_knowledge_graph.py
  • Once the MeTTa files are generated, the nodes and edges for the adapters will be stored in the metta_out folder, within their corresponding sub-folders.
  • You can find some sample PubChem RDF data to be mapped to MeTTa stored in the samples folder.
  • If you want to map more PubChem data to MeTTa, you can download the RDF(turtle) files and and add the file paths to their corresponding adapter configs in the create_knowledge_graph.py module.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages