Page MenuHomePhabricator

Client equivalent of haswbstatement
Open, LowPublic

Description

It is nice to have a similar feature in clients, so that we can use haswbstatement together with incategory/hastemplate to find items needing improving. Obviously this should not be named haswbstatement.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 18 2018, 9:52 AM

Can you let us know more about what you're wanting to do and any use cases that you're wanting to solve?

I have described the use case in description; having this may let us check what's missing or incorrect in Wikidata.

debt added a comment.Aug 9 2018, 5:28 PM

Can you go into more detail on what a 'client equivalent' is in this case? We're having trouble knowing what this is for and why it's needed (use cases and sample steps to recreate would be great to have).

For example we want to find all article using a specific template (e.g. Template:Infobox person) but missing P31=Q5 in Wikidata. (PetScan can be used in many, but not all, cases)

I am not sure how this would be done from the client though. Lua? Right now I don't see any mw.wikibase API that does such things. Is it meant to be new API? How do you think it should look like?

Smalyshev triaged this task as Low priority.Jan 29 2019, 7:26 PM
Smalyshev moved this task from watching / waiting to Wikidata Search on the Discovery-Search board.

To present a more concrete use case for such functionality, @debt, the infoboxes on articles for localities in India have slots listing the national/state-level parliamentary constituencies that they're located in along with the current representatives in those constituencies. These slots, which at one point were prefilled from Wikidata, no longer work since the misuses of P585 ("point in time") on the Wikidata items for those constituencies that allowed such information to be present have been removed. In the absence of a property linking a Wikidata item about a constituency to an election involving that constituency (to use the example of a national-level constituency in Kolkata, from Q3348171 to Q63988950), it would be helpful to obtain a list of items which link back to an item for a constituency via something akin to haswbstatement (in this case, to continue using the previous example, akin to haswbstatement:P1001=Q3348171) so that the most recent election information (from electorate size to successful candidates to numbers of spoilt votes, to name a few facts) could thus be obtained with a few more steps.