Topic on User talk:Lea Lacroix (WMDE)

Epìdosis (talkcontribs)

Hi! I would like to propose a new tool that would be very useful in order to have a good overview of the items about a specific topic.

So, I'll try to describe it: the user would have to input a category item (es. Category:Ancient Greece (Q7215882), Category:Italy (Q1410903) ...) and a depth (es. 1, 2 ...); given these inputs, the tool should give a list of all the items containing at least one sitelink which is in a category that is a sitelink of the category item. Resume: A is the category item, B(a) are the categories which are sitelinks of A, C(B(a)) are all the articles cointained in B(a). Possible filters: by type of project (all projects; only Wikipedias; only Wikisources ...); by the date of the articles' creation. The main idea, however, is the possibility to explore at the same time all the articles belonging to a category which is common to two or more projects: this would be immensely useful (e.g., these Petscan lists would be unified into 2 or 3)! In my opinion, the best option would be integrating this function into Petscan, but is may also be an indipendent tool.

Tell me if I haven't been clear enough. Thank you!

TweetsFactsAndQueries (talkcontribs)

I don’t think this is possible to implement using the Wikidata query service alone, since the categories of a sitelink aren’t available in WDQS. (It might be possible with SMalyshev’s proposal of accessing the MediaWiki API through a SPARQL service, but that’s not available yet.) So the tool would first get the sitelinks of the item (probably using Special:EntityData), then search for pages in these categories using the Wikipedia API, and then get the items of those pages again (probably using Special:ItemByTitle).

Epìdosis (talkcontribs)

Hi! Is there any update? This tool would be really useful in order to merge thousands of category items!

Reply to "Proposal of tool"