Mapping en talk:Infobox country: Difference between revisions
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Issue''' https://github.com/dbpedia/mappings-tracker/issues/4 | |||
== Infobox Geopolitical organization redirected to Infobox country == | == Infobox Geopolitical organization redirected to Infobox country == | ||
[[User:VladimirAlexiev]] Why [http://en.wikipedia.org/w/index.php?title=United_Nations&action=edit United Nations] is mapped to Country? It uses "Infobox geopolitical organization". | [[User:VladimirAlexiev|VladimirAlexiev]]: Why [http://en.wikipedia.org/w/index.php?title=United_Nations&action=edit United Nations] is mapped to Country? It uses "Infobox geopolitical organization". | ||
Volha Bryl: "Infobox geopolitical organization" in Wikipedia itself is redirected to [http://en.wikipedia.org/w/index.php?title=Template:Infobox_Geopolitical_organization&redirect=no infobox country]. | Volha Bryl: "Infobox geopolitical organization" in Wikipedia itself is redirected to [http://en.wikipedia.org/w/index.php?title=Template:Infobox_Geopolitical_organization&redirect=no 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. | 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. | ||
[[User:VladimirAlexiev]] | [[User:VladimirAlexiev|VladimirAlexiev]]: https://en.wikipedia.org/w/index.php?title=Template:Infobox_country has two "Syntaxes": | ||
|org_type = | * Country or territory | ||
|membership_type = | * Geopolitical organization | ||
|membership = | |||
The fields in these are different (see below). I think "Geopolitical organization" can be recognized by one of these 3 discriminator fields: | |||
|org_type = !-- e.g. Trade bloc -- | |||
|membership_type = !-- (default "Membership") -- | |||
|membership = !-- Type/s and/or number/s of members -- | |||
We need to make a ConditionalMapping: We don’t want [https://en.wikipedia.org/wiki/Special:WhatLinksHere/Template:Infobox_Geopolitical_organization these 150] or so inernational organizations to be mapped to countries :-) [[User:VladimirAlexiev|VladimirAlexiev]] 14:16, 23 December 2014 (UTC) | We need to make a ConditionalMapping: We don’t want [https://en.wikipedia.org/wiki/Special:WhatLinksHere/Template:Infobox_Geopolitical_organization these 150] or so inernational organizations to be mapped to countries :-) [[User:VladimirAlexiev|VladimirAlexiev]] 14:16, 23 December 2014 (UTC) | ||
Line 14: | Line 20: | ||
=== Comparison === | === Comparison === | ||
Legend: '''discriminator''', ~approx same, <> different | Legend: '''discriminator''', ~approx same, <> different | ||
{| | {|border="1" | ||
|'''Infobox country''' | |'''Infobox country''' | ||
|'''Infobox geopolitical organization''' | |'''Infobox geopolitical organization''' | ||
|'''Sample values for Geopolitical organization''' | |||
|- | |- | ||
|government_type | |'''government_type''' | ||
|<> '''org_type''' | |<> '''org_type''' | ||
|(none), Trade Bloc, link Cartel | |||
|- | |- | ||
|nummembers | |nummembers | ||
|~ membership | |~ '''membership''' | ||
|optional subtemplate (collapsible list, vunblist); templates representing each country (eg "ARG", "flag:South Korea"), or "unbulleted list" with country names). "+1 million people" for "United Religions Initiative", "42 groups" for "Unrepresented Nations and Peoples Organization" | |||
|- | |- | ||
| | | | ||
|membership_type | |'''membership_type''' | ||
|(none), link "Sovereign States" (eg N.Korea+S.Korea=Korea, which is not an org but a mere list), link "Member states" | |||
|- | |- | ||
|DST_note | |DST_note | ||
Line 234: | Line 244: | ||
| | | | ||
|} | |} | ||
=== Fixes needed === | === Fixes needed === | ||
* | * wiki statistics & validator: if a mapping uses a redirected template, an error should be displayed: https://github.com/dbpedia/mappings-tracker/issues/3 | ||
* Discriminate by TODO | * Discriminate by TODO | ||
* mapToClass = GeopoliticalOrganisation not Organisation | * mapToClass = GeopoliticalOrganisation not Organisation |
Latest revision as of 13:03, 18 February 2015
Issue https://github.com/dbpedia/mappings-tracker/issues/4
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: https://en.wikipedia.org/w/index.php?title=Template:Infobox_country has two "Syntaxes":
- Country or territory
- Geopolitical organization
The fields in these are different (see below). I think "Geopolitical organization" can be recognized by one of these 3 discriminator fields:
|org_type = !-- e.g. Trade bloc -- |membership_type = !-- (default "Membership") -- |membership = !-- Type/s and/or number/s of members --
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 | Sample values for Geopolitical organization |
government_type | <> org_type | (none), Trade Bloc, link Cartel |
nummembers | ~ membership | optional subtemplate (collapsible list, vunblist); templates representing each country (eg "ARG", "flag:South Korea"), or "unbulleted list" with country names). "+1 million people" for "United Religions Initiative", "42 groups" for "Unrepresented Nations and Peoples Organization" |
membership_type | (none), link "Sovereign States" (eg N.Korea+S.Korea=Korea, which is not an org but a mere list), link "Member states" | |
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
- wiki statistics & validator: if a mapping uses a redirected template, an error should be displayed: https://github.com/dbpedia/mappings-tracker/issues/3
- Discriminate by TODO
- mapToClass = GeopoliticalOrganisation not Organisation
- test