Skip to content

Commit

Permalink
(#3) i18n/zxx/: metadata about non-linguistic content, such as table …
Browse files Browse the repository at this point in the history
…conversions
  • Loading branch information
fititnt committed Sep 4, 2022
1 parent 6b699ae commit f49ad13
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 11 deletions.
4 changes: 4 additions & 0 deletions i18n/zxx/README.md
Original file line number Diff line number Diff line change
@@ -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.
13 changes: 5 additions & 8 deletions i18n/mul/whocc.meta.yml → i18n/zxx/who-cc.meta.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
File renamed without changes.
Empty file added i18n/zxx/who-icd.wikidata.yml
Empty file.
12 changes: 12 additions & 0 deletions i18n/zxx/who-notifiable.meta.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion scripts/common.lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
4 changes: 2 additions & 2 deletions scripts/readme-from-csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f49ad13

Please sign in to comment.