Mapping en talk:Infobox country
Infobox Geopolitical organization redirected to Infobox country
VladimirAlexiev: Why United Nations is mapped to Country? It uses "Infobox geopolitical organization".
Volha Bryl: "Infobox geopolitical organization" in Wikipedia itself is redirected to infobox country. The extraction framework uses the redirect dump of Wikipedia - otherwise lots of mappings created years ago for infoboxes that have been renamed in the meanwhile won't be found.
VladimirAlexiev: en:Template:Infobox_country has two "Syntaxes": Media:template-Country.txt vs Media:template-Geopolitical-org.txt. The fields in these are different (see below). I think "Geopolitical organization" can be recognized by one of these 3 discriminator fields:
|org_type = |membership_type = |membership =
We need to make a ConditionalMapping: We don’t want these 150 or so inernational organizations to be mapped to countries :-) VladimirAlexiev 14:16, 23 December 2014 (UTC)
Comparison
Legend: discriminator, ~approx same, <> different
Infobox country | Infobox geopolitical organization |
government_type | <> org_type |
nummembers | ~ membership |
membership_type | |
DST_note | |
GDP_PPP_per_capita_rank | |
GDP_nominal_per_capita_rank | |
GDP_nominal_rank | |
Gini_rank | |
HDI_change | |
HDI_rank | |
image_coat | |
image_flag2 | |
flag2_border | |
alt_flag2 | |
alt_coat | alt_symbol |
image_symbol | |
symbol_width | |
other_symbol | text_symbol |
other_symbol_type | ~ text_symbol_type |
royal_anthem,national_anthem | anthem |
antipodes | |
area | <> area_dabodyalign |
area_data2 | |
area_rank | |
calling_code | |
capital,capital2 | ~ admin_center |
admin_center_type | |
cctld | |
common_name | name |
conventional_long_name | <> linking_name |
date_format | <> established |
demonym | |
drives_on | |
ethnic_groups | |
ethnic_groups_year | |
footnote_a | footnote1 |
footnote_b | footnote2 |
footnote_h | footnote7 |
alt_map2 | |
alt_map3 | |
image_map2 | |
image_map3 | |
iso3166code | |
languages2 | |
languages2_sub | |
languages2_type | |
languages_sub | |
largest_city | |
largest_settlement | |
largest_settlement_type | |
latd,latm,latNS... | |
legislature | |
lower_house | |
map_caption2 | <> map_width |
micronation | |
national_languages | |
national_motto | motto |
nationalities | |
official_languages | |
official_website | |
population_census | |
population_census_year | |
population_density_rank | |
population_estimate_rank | |
regional_languages | |
religion | |
sovereignty_note | |
sovereignty_type | |
status | |
time_zone_DST | |
upper_house | |
utc_offset_DST |
Fixes needed
- Mapping wiki validator: if a mapping uses a redirected template, a warning should be displayed. TODO make ticket
- Discriminate by TODO
- mapToClass = GeopoliticalOrganisation not Organisation
- test