Wikidata:Property proposal/population rank
Jump to navigation
Jump to search
population rank[edit]
Originally proposed at Wikidata:Property proposal/Place
Not done
Description | the ranking of the item's population in the set of similar items. Envisaged sets are district of England (Q349084); non-metropolitan county (Q769603); ceremonial county of England (Q180673); Scottish district (Q21457810); principal area of Wales (Q15979307) and administrative territorial entity of Northern Ireland (Q17364572) |
---|---|
Data type | String |
Template parameter | "population_rank" in en:template:infobox settlement |
Domain | administrative territorial entity (Q56061) |
Allowed values | [1-9][0-9]{0,2}(st|nd|rd|th) |
Example 1 | Birmingham (Q20986424) → 1st |
Example 2 | Leeds (Q774015) → 2nd |
Example 3 | Isles of Scilly (Q180209) → 317th |
Planned use | See motivation |
Motivation[edit]
I am attempting to convert the generation of various parameters of en:Template:Infobox settlement for UK local government divisions from long switch statements in templates (see en:Category:Templates for UK subdivision lookups) to use Wikidata items. There are about 450 such divisions. It will be qualified with a point in time (P585) and a new value will be added each year when new population estimates are published. Keith Edkins (talk) 17:25, 5 November 2019 (UTC)
Discussion[edit]
- Oppose. This can be automatically generated from other properties. --Yair rand (talk) 15:17, 11 November 2019 (UTC)
- @Yair rand: It can via a SPARQL query, yes. But infoboxes can't run SPARQL queries. Does that affect your !vote ? Jheald (talk) 17:33, 11 November 2019 (UTC)
- Nope. --Yair rand (talk) 18:24, 17 November 2019 (UTC)
- @Yair rand: It can via a SPARQL query, yes. But infoboxes can't run SPARQL queries. Does that affect your !vote ? Jheald (talk) 17:33, 11 November 2019 (UTC)
- Comment Would need a qualifier to indicate the parent set, as some items are instance of (P31) multiple classes. Possibly of (P642) would be appropriate, as a mandatory qualifier. Of course, that presupposes that the ranking would be from within a set with a particular wikidata item. Jheald (talk) 17:36, 11 November 2019 (UTC)
- Comment a string datatype is not appropriate here - requiring an English format to input ordinals goes against the multilingual nature of the project. Use either quantity valued with integer constraint or item valued (with number items). − Pintoch (talk) 08:55, 13 November 2019 (UTC)
- Strong oppose Infoboxes are just one of many Wikidata uses. It's true, infoboxes can't run SPARQL queries through Lua, but this function can be reached using JavaScript gadgets. There's no reason for store info that can be generated automatically. --Tinker Bell ★ ♥ 22:01, 16 November 2019 (UTC)
- Not done: No support. In the future (cached) SPARQL queries can be invoked by Lua and used in other pages. See phab:T67626.--GZWDer (talk) 20:46, 21 January 2020 (UTC)