unfoldingWord-dev / d43-catalog

Lambda functions for the Door43 Catalog.
https://api.door43.org/v3/catalog
MIT License
1 stars 8 forks source link

Export list of tWs for tw_cat.json #43

Open jag3773 opened 6 years ago

jag3773 commented 6 years ago

Once we have the tWs encoded in the UGNT and (eventually) in the UHB, we need a script to pull the tW links out and create the tw_cat.json files for the tS v2 API.

This is related to #42 but it depends on https://github.com/unfoldingWord-dev/translationCore/issues/3204 and https://github.com/unfoldingWord-dev/translationCore/issues/3365 .

jag3773 commented 5 years ago

@neutrinog Can you provide links to the static JSON snippets that are in the catalog (especially for OBS).

a.k.a tw_cat.json

da1nerd commented 5 years ago

@jag3773 each book has a static catalog of terms. Those are located at https://cdn.door43.org/v2/ts/<<book>>/en/tw_cat.json. For example: https://cdn.door43.org/v2/ts/zec/en/tw_cat.json.

These files are not generated by the api and will remain static unless manually updated.

da1nerd commented 5 years ago

I have also confirmed that OBS uses the same words as the Bible. For example: the words.json (this is the terms field in the resource.json) is the same for Zec and Obs. For english translations the words are at https://cdn.door43.org/v2/ts/bible/en/words.json. Each language will have it's own translated version of words.json.

These files are automatically generated by the api from dictionary resource containers. For example https://git.door43.org/Door43-Catalog/en_tw.

da1nerd commented 5 years ago

Oh and specifically the OBS catalog file is at https://cdn.door43.org/v2/ts/obs/en/tw_cat.json.

da1nerd commented 5 years ago

After a review of the API code I think it's safe to remove the translationWords links from the notes.