AnacletoLAB / grape

🍇 GRAPE is a Rust/Python Graph Representation Learning library for Predictions and Evaluations
MIT License
502 stars 38 forks source link

update grape.datasets.monarchinitiative to point to latest Monarch nodes/edges #51

Open justaddcoffee opened 10 months ago

justaddcoffee commented 10 months ago

Current this is not working:

from grape.datasets.monarchinitiative import Monarch
g = Monarch()
Downloading files: 0%
0/2 [00:00<?, ?it/s]
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/ensmallen/datasets/graph_retrieval.py](https://localhost:8080/#) in download(self)
    349                 # Download the necessary data
--> 350                 self._downloader.download(
    351                     self._graph["urls"],

9 frames
ValueError: Request to url https://archive.monarchinitiative.org/202103/kgx/sri-reference-kg_nodes.tsv finished with status code 404.

The above exception was the direct cause of the following exception:

RuntimeError                              Traceback (most recent call last)
[/usr/local/lib/python3.10/dist-packages/ensmallen/datasets/graph_retrieval.py](https://localhost:8080/#) in download(self)
    353                 )
    354             except Exception as e:
--> 355                 raise RuntimeError(
    356                     f"Something went wrong while downloading the graph {self._name}, "
    357                     f"version {self._version}, "

RuntimeError: Something went wrong while downloading the graph Monarch, version 202103, retrieved from the monarchinitiative repository. In this step, we are trying to download data provided from third parties, and such data may now be offline or moved. Please do investigate what has happened at the URLs reported below in this error message and do open up an issue in the Ensmallen's GitHub repository reporting also the completeexception of this error to help us keep the automatic graph retrieval in good shape. Thank you!Specifically, we were trying to download the following urls: ['https://archive.monarchinitiative.org/202103/kgx/sri-reference-kg_nodes.tsv', 'https://archive.monarchinitiative.org/202103/kgx/sri-reference-kg_edges.tsv']

New builds can be retrieved from here: https://kg-hub.berkeleybop.io/kg-monarch/index.html

Hopefully this follows the pattern that Grape expects? @LucaCappelletti94 @putmantime