Wikidata:Property proposal/subpopulation
Jump to navigation
Jump to search
subpopulation
[edit]Originally proposed at Wikidata:Property proposal/Generic
Not done
Description | A property to show the part of a larger population isolated for statistical analysis (for example by age, nationality, gender, etc) |
---|---|
Represents | sub-population (Q2311577) |
Data type | Item |
Domain | any place, any event |
Example | Pristina (Q25270) → subpopulation property → Albanians (Q179248) → quantity (P1114) → 194,452 Pristina (Q25270) → subpopulation property → Orthodox Christian item → quantity (P1114) → 480 |
Source | external reference, Wikipedia list article, etc. |
Planned use | census results |
See also | population (P1082), male population (P1540), female population (P1539) |
- Motivation
Hello. We need a property to show the population synthesis by many things like nationality or religion or gender. Many census use to or used to have that data. Please also see Wikidata:Project chat/Archive/2017/12#Population synthesis. We can you use this property for other things like number of deaths (P1120), as a user proposed. Also, see Wikidata:Property proposal/Number by nationality, religion and gender, that was first proposal that gives the idea of current proposal. Xaris333 (talk) 00:27, 2 January 2018 (UTC)
- Discussion
- Support ArthurPSmith (talk) 20:40, 2 January 2018 (UTC)
- Support. Thierry Caro (talk) 02:39, 4 January 2018 (UTC)
- Th name seems strange to use it as a qualifier for number of deaths (P1120). Maybe we can think of a better name? ChristianKl ❪✉❫ 01:02, 5 January 2018 (UTC)
- subgroup? subdivision? Xaris333 (talk) 07:11, 5 January 2018 (UTC)
- Following the naming of applies to part, aspect, or form (P518) and applies to jurisdiction (P1001), I think "applies to subgroup" would make sense. ChristianKl ❪✉❫ 14:09, 7 January 2018 (UTC)
- But it is not a qualifier, is a property. "applies to subgroup" it is more likely to be a qualifier. Xaris333 (talk) 14:41, 7 January 2018 (UTC)
- Following the naming of applies to part, aspect, or form (P518) and applies to jurisdiction (P1001), I think "applies to subgroup" would make sense. ChristianKl ❪✉❫ 14:09, 7 January 2018 (UTC)
- subgroup? subdivision? Xaris333 (talk) 07:11, 5 January 2018 (UTC)
- I don't think this is the right datatype. The amount of statements that would be needed for this property would be far more than we can store in an item. The only solution that I can see would be to use the tabular data type. --Yair rand (talk) 21:51, 11 January 2018 (UTC)
- A big problem is that tabular data can not be used by Wikipedia articles. Xaris333 (talk) 06:42, 12 January 2018 (UTC)
- They can, actually. The Lua code is
mw.ext.data.get("Example.tab")
, which provides the full content of the data set. --Yair rand (talk) 23:59, 14 January 2018 (UTC)
- They can, actually. The Lua code is
- A big problem is that tabular data can not be used by Wikipedia articles. Xaris333 (talk) 06:42, 12 January 2018 (UTC)
- Proposition of a different model
-
- create items for the subpopulations. An example of what it would look like :
- ⟨ Albanians (Q179248)’s population of Pristina (Q25270) ⟩ part of (P361) ⟨ population of Pristina (Q25270) ⟩
- ⟨ Albanians (Q179248)’s population of Pristina (Q25270) ⟩ size Search ⟨ number of member ⟩
point in time (P585) ⟨ 2018 ⟩ - ⟨ Albanians (Q179248)’s population of Pristina (Q25270) ⟩ size Search ⟨ number of member ⟩
point in time (P585) ⟨ 2017 ⟩ - ⟨ Albanians (Q179248)’s population of Pristina (Q25270) ⟩ instance of (P31) ⟨ Albanian population of some city ⟩
- ⟨ Albanians (Q179248)’s population of Pristina (Q25270) ⟩ instance of (P31) ⟨ subpopulation of Pristina (Q25270) ⟩
- Retrieving the subpopulation would be doable with a couple of Property paths or a bunch of custom Scribunto code using the wikibase API.
- Example lua code that would show the population size of the preferred rank statements
local item = mw.wikibase.getEntity() for population in path.iterate(mw.wikibase.getEntity(), "population/has part") do if path.match(population, "culture") and path.match(population, "instance of/subclass of*", Qid of « Subpopulation of some city ») then mw.log("subpopulation of culture" .. wikidata.getValue("P2596") .. "is of size" .. wikidata.getValue("P1114") .. ) end end
- No need for tabular datas. Items are easy to create using quickstatement. Please feel free to ask about anything. author TomT0m / talk page 16:54, 30 January 2018 (UTC)
Not done Use has part(s) (P527) with qualifier population (P1082). Micru (talk) 08:06, 4 April 2018 (UTC)