From f49ad138db731f2ab1c4585257f10ca8ca9e8342 Mon Sep 17 00:00:00 2001 From: Emerson Rocha Date: Sun, 4 Sep 2022 03:16:28 -0300 Subject: [PATCH] (#3) i18n/zxx/: metadata about non-linguistic content, such as table conversions --- i18n/zxx/README.md | 4 ++++ i18n/{mul/whocc.meta.yml => zxx/who-cc.meta.yml} | 13 +++++-------- .../{mul/whocc-sample.tsv => zxx/who-cc.sample.tsv} | 0 i18n/zxx/who-icd.wikidata.yml | 0 i18n/zxx/who-notifiable.meta.yml | 12 ++++++++++++ scripts/common.lib.sh | 2 +- scripts/readme-from-csv.py | 4 ++-- 7 files changed, 24 insertions(+), 11 deletions(-) create mode 100644 i18n/zxx/README.md rename i18n/{mul/whocc.meta.yml => zxx/who-cc.meta.yml} (85%) rename i18n/{mul/whocc-sample.tsv => zxx/who-cc.sample.tsv} (100%) create mode 100644 i18n/zxx/who-icd.wikidata.yml create mode 100644 i18n/zxx/who-notifiable.meta.yml diff --git a/i18n/zxx/README.md b/i18n/zxx/README.md new file mode 100644 index 0000000..4cc6f5a --- /dev/null +++ b/i18n/zxx/README.md @@ -0,0 +1,4 @@ +# i18n/zxx +- https://iso639-3.sil.org/code/zxx +- https://en.wikipedia.org/wiki/ISO_639-3 + - `zxx`: (no linguistic content / not applicable) is intended for data which is not a language at all, such as animal calls. diff --git a/i18n/mul/whocc.meta.yml b/i18n/zxx/who-cc.meta.yml similarity index 85% rename from i18n/mul/whocc.meta.yml rename to i18n/zxx/who-cc.meta.yml index ab07dcc..271f739 100644 --- a/i18n/mul/whocc.meta.yml +++ b/i18n/zxx/who-cc.meta.yml @@ -1,14 +1,10 @@ # @see https://apps.who.int/whocc/Search.aspx # @see whocc-reference.tsv -# WHO_CSVFIELDS=( -# "textbox105|code" # SOA-5 [AFRO] -# "textbox106|status" # Active,Pending -# "textbox113|name" # Active,Pending -# "textbox20|region" # Active,Pending -# "textbox19|country" # Active,Pending -# "textbox127|website" # Active,Pending -# ) +# @TODO (...) +# - Category:World_Health_Organization_collaborating_centres +# - Maybe get other research institutes +# - https://w.wiki/5fG5 (used https://www.wikidata.org/wiki/Q835960 as refs) textbox105: csv: textbox105 @@ -26,6 +22,7 @@ textbox45: csv: textbox45 csvnorm: designation_date hxl: "#date+designation" + hxltm_ix: 'ix_wdatap571' # inception (P571) https://www.wikidata.org/wiki/Property:P571 textbox47: csv: textbox47 csvnorm: redesignation_last_date diff --git a/i18n/mul/whocc-sample.tsv b/i18n/zxx/who-cc.sample.tsv similarity index 100% rename from i18n/mul/whocc-sample.tsv rename to i18n/zxx/who-cc.sample.tsv diff --git a/i18n/zxx/who-icd.wikidata.yml b/i18n/zxx/who-icd.wikidata.yml new file mode 100644 index 0000000..e69de29 diff --git a/i18n/zxx/who-notifiable.meta.yml b/i18n/zxx/who-notifiable.meta.yml new file mode 100644 index 0000000..b11f880 --- /dev/null +++ b/i18n/zxx/who-notifiable.meta.yml @@ -0,0 +1,12 @@ +# https://icd.who.int/browse11/l-m_st_infections/en#/http%3a%2f%2fid.who.int%2ficd%2fentity%2f2041383807 + +# - From https://www.wikidata.org/wiki/Wikidata:Database_reports/List_of_properties/all +# - P493 ICD-9 https://www.wikidata.org/wiki/Property:P493 +# - P494 ICD-10 https://www.wikidata.org/wiki/Property:P494 +# - CD-11 (foundation) https://www.wikidata.org/wiki/Property:P7807 +# - ID (MMS) (P7329) https://www.wikidata.org/wiki/Property:P7329 +# - https://opendata.stackexchange.com/questions/5261/how-to-get-list-of-all-items-that-have-a-particular-property-in-wikidata +# - https://www.wikidata.org/w/api.php?action=query&list=backlinks&blnamespace=0&bllimit=500&&bltitle=Property:P7329 +# +# - crosswalk +# - "Add ICD-9 / ICD-10 crosswalk" https://github.com/jackwasey/icd/pull/190 \ No newline at end of file diff --git a/scripts/common.lib.sh b/scripts/common.lib.sh index 5172667..a8b8b1a 100644 --- a/scripts/common.lib.sh +++ b/scripts/common.lib.sh @@ -97,7 +97,7 @@ crawler_who_cc() { ./scripts/readme-from-csv.py \ --method=table-rename \ - --table-meta=i18n/mul/whocc.meta.yml \ + --table-meta=i18n/zxx/who-cc.meta.yml \ "$BUILDTEMPDIR/whocc.csv" \ >"$BUILDTEMPDIR/whocc.hxl.csv" diff --git a/scripts/readme-from-csv.py b/scripts/readme-from-csv.py index 2119c6e..fec52bc 100755 --- a/scripts/readme-from-csv.py +++ b/scripts/readme-from-csv.py @@ -84,7 +84,7 @@ Rename CSV/Tabular data header . . . . . . . . . . . . . . . . . . . . . . . . {__file__} --method=table-rename \ ---table-meta=i18n/mul/whocc.meta.yml \ +--table-meta=i18n/zxx/who-cc.meta.yml \ partials/temp/whocc.csv @@ -302,7 +302,7 @@ def make_args(self, hxl_output=True): '--table-meta', help='With --method=table-rename this explain which file ' 'contains the metadata for conversion between formats. ' - 'Example: "i18n/mul/whocc.meta.yml"', + 'Example: "i18n/zxx/who-cc.meta.yml"', dest='table_meta', nargs='?', # required=True