Wikidata:Property proposal/related category

related category edit

Originally proposed at Wikidata:Property proposal/Sister projects

DescriptionWikimedia category is related to this item
Data typeItem
Example 1Art Garfunkel (Q4039)Category:Albums produced by Art Garfunkel (Q8232232) with qualifier of (P642)album produced by this producer/production team (Q29025420)
Example 2Art Garfunkel (Q4039)Category:Song recordings produced by Art Garfunkel (Q8761092) with qualifier of (P642)audio track by this producer/production team (Q56425213)
Example 3Harvard Law Review (Q1365125)Category:Works originally published in the Harvard Law Review (Q7006684) with qualifier of (P642)work originally published in this periodical (Q29054826)
Example 4Benedict of Nursia (Q44265)Category:Saint Benedict churches (Q6562078) with qualifier of (P642)buildings by dedication to persons (religion) (Q19334621)
Planned usein local wiki infoboxes for autocategorization
See alsotopic's main category (P910), category for the water basin (P1200), category for people born here (P1464), category for people who died here (P1465), category for films shot at this location (P1740), category for people buried here (P1791), category of associated people (P1792), category for pictures taken with equipment (P2033), category for recipients of this award (P2517), category for alumni of educational institution (P3876), category for employees of the organization (P4195), category for films in this language (P5996), category for members of a team (P6112), category for eponymous categories (P6186), member category (P6365)
Type constraint – subclass ofWikimedia category (Q4167836)
Wikidata projectWikidata:WikiProject Categories
Proposed byGhuron (talk)

Motivation edit

See Wikidata talk:WikiProject Categories#Properties for categories. We have more than a dozen "category for" properties and I can easily come up with at least another dozen. Instead I suggest to create one generic "related category" property and use mandatory qualifier of (P642) in order to specify corresponding metaclass (Q19361238). We will try and see how well it fits into existing infobox lua-modules in local wikis. I'll implement this in ru:Module:Wikidata and would be happy to assist other wikis. If all goes well, we can slowly deprecate properties from "see also" list (except for P910) starting with least frequently used. --Ghuron (talk) 08:01, 8 December 2018 (UTC)[reply]

Discussion edit

Ah, I think Jura's (obscure) point is that category combines topics (P971) on the category already takes care of this relation. Ghuron, why is that not sufficient? ArthurPSmith (talk) 18:58, 10 December 2018 (UTC)[reply]
@ArthurPSmith: as I said here if there would be a fast (aka non-sparql) way to retrieve category based on P971-values, none of those properties would be needed. Unfortunately Lua API does not expose this functionality and there is no activity for my phab:T185313 for almost a year. --Ghuron (talk) 19:25, 10 December 2018 (UTC)[reply]
That phab ticket looks like it would allow very general handling of inverse properties - but I thought there was some API support for it somewhere already. There's really nothing right now? ArthurPSmith (talk) 21:34, 10 December 2018 (UTC)[reply]
I do not see anything close to what is required here: mw:Extension:Wikibase Client/Lua --Ghuron (talk) 08:55, 11 December 2018 (UTC)[reply]
There is another relevant discussion that happens to be in ru-wiki. Right now we have Nobel Peace Prize (Q35637)category for recipients of this award (P2517)Category:Nobel Peace Prize laureates (Q5817200), but this category normally is used only for people, for organizations some local projects uses Category:Organizations awarded Nobel Peace Prizes (Q8704192). So in order to attach proper category for Nobel prize laureates, I will have to add both Q5817200 and 8704192 for P2517 (probably with some qualifiers). Proposed property can solve this issue in a bit more consistent way. --Ghuron (talk) 11:58, 28 December 2018 (UTC)[reply]

@ElanHR, ديفيد عادل وهبة خليل 2, Ghuron, Thierry Caro, ArthurPSmith, Venzz: @Vulphere, Kareyac, Jura1:   Done: related category (P7084). − Pintoch (talk) 21:18, 23 July 2019 (UTC)[reply]