NCATSTranslator / Knowledge_Graph_Exchange_Registry

The Biomedical Data Translator Consortium site for development of Knowledge Graph Exchange Standards and Registry
MIT License
5 stars 3 forks source link

KGE Archive notifications to user subscribers for new file set releases #34

Closed RichardBruskiewich closed 3 years ago

RichardBruskiewich commented 3 years ago

Could use AWS SNS notification

jeffhhk commented 3 years ago

Hi, Jeff here from the Unsecret Agent team. Our team originated this request.

It seems to me a simpler mechanism to notify consumers of new uploads would be to provide an HTTP endpoint called something like GET /v1/get-updates-since?t=

Each upload in the list should include:

jeffhhk commented 3 years ago

I was looking at the defacto HTTP requests this morning. To find out about new file sets, for now I can probably live with polling this endpoint, once an hour or whatever:

curl 'https://archive.translator.ncats.io/archive/catalog' -H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:90.0) Gecko/20100101 Firefox/90.0' -H 'Accept: */*' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Referer: https://archive.translator.ncats.io/home' -H 'Connection: keep-alive' -H 'Cookie: AIOHTTP_SESSION=...' -H 'Sec-Fetch-Dest: empty' -H 'Sec-Fetch-Mode: cors' -H 'Sec-Fetch-Site: same-origin' --silent | jq
    {
      "yeast-sri-reference-kg-tsv": {
        "name": "yeast-sri-reference-kg-tsv",
        "versions": [
          "1.0"
        ]
      }
    }
jeffhhk commented 3 years ago

Having looked at the endpoints, and considering no graphs besides my test graph are uploaded, this request feels like premature optimization. Let's focus first on getting KG producers onboard. I think the /archive/catalog endpoint will be fine for now.