| matej_suchanek updated the task description. (Show Details) |
CHANGES TO TASK DESCRIPTION
The work done phab:T172905 resulted in the availability of the mw.wikibase.getBestStatements function that helps makes tracking Wikidata more efficient. At rowiki, this has helped us drastically reduce the tracking of entire entities and made queries more efficient.
So, we still have a lot of code that loads an entire entity just to cycle through the claims associated with only one property, and the usage tracking of these entities could be helped a lot by something similar to `mw.wikibase.getBestStatements`, only with the 'best' part left out.
...
One example is our [[ https://ro.wikipedia.org/wiki/Modul:HistoricalCountries | HistoricalCountries ]] module which lists all the countries in which a city (or anything for that matter) was throughout history. In this case, P17`P17` (country) for the entity will have one 'preferred' statement (with the current country), as well as more 'normal' statements, with `P580` and `P582` qualifiers for the historic ones. We also do a lot more magic with these 'normal' statements hidden beneath one or more 'preferred' ones: we extract the country and official name of a town for a specific date in time - for instance, to show that when [[ https://ro.wikipedia.org/wiki/Max_Born | Max Born ]] was born (pun not intended) in 1882, he was born in Breslau, German Empire, not Wrocław, Poland (as it is today). We do similar stuff with flags for countries that changed their flag throughout their existence.So, we still have a lot of code that loads an entire entity just to cycle through the claims associated with only one property, and the usage tracking of these entities could be helped a lot by something similar to `mw.wikibase.getBestStatements`, only with the 'best' part left out.
TASK DETAIL
EMAIL PREFERENCES
To: hoo, matej_suchanek
Cc: gerritbot, Lydia_Pintscher, eranroz, Aklapper, hoo, Andrei_Stroe, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Lewizho99, Maathavan, Izno, Wikidata-bugs, aude, Mbch331
Cc: gerritbot, Lydia_Pintscher, eranroz, Aklapper, hoo, Andrei_Stroe, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Lewizho99, Maathavan, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
