Wikidata:WikiProject Women/Wiki monitor/Statistics

From Wikidata
Jump to navigation Jump to search

m:TreeViews can be used for some statistics on page views. With some appropriate queries, you can inspect the traffic on recently created articles relevant for your project.

Queries

[edit]

A crude query to list the articles about women created on a certain wiki in a certain timespan (in this case English Wikipedia articles linked to a Wikidata item created between February and December 2018) might be:

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, sex or gender (P21)  View with Reasonator View with SQID
    SELECT DISTINCT ?item ?itemLabel ?article
    WHERE
    {
           ?item wdt:P31 wd:Q5 .
           ?item wdt:P21 wd:Q6581072 .
           ?article schema:about ?item .
           ?article schema:isPartOf <https://en.wikipedia.org/>.
           bind(xsd:integer(strafter(str(?item), 'Q')) as ?id).
           FILTER (?id > 50000000).
           FILTER (?id < 60000000).
           SERVICE wikibase:label {bd:serviceParam wikibase:language "en" }
    }
    LIMIT 20000
    

Such a query can be saved in PetScan for future reuse: https://petscan.wmflabs.org/?psid=10070965 (whose PagePile output cannot be used in TreeViews).

A much more simplistic query might work on categories, like quarry:37644 and quarry:37645. This leaves out some articles which don't have "gendered" categories and includes some articles which are not about (individual) persons, but has the advantage of producing some clean list of titles can directly be transformed in a PagePile: [1] [2] (in this example, English Wikipedia articles created between November 2018 and February 2019).

View statistics for a pagepile

[edit]

Once a PagePile of local wiki titles (e.g. English Wikipedia) has been created, the ID can be fed into TreeViews, for instance [3] and [4].

You can for instance select last month (an entire month is ok, but more than that is not recommended). Make sure it's a period after the last article was created. Limit yourself to a few thousands articles to avoid overload and repeat as many times as necessary to get pageviews cached until you get statistics for all articles.

Other tools

[edit]

Other tools such as the m:Programs & Events Dashboard can provide integrated capabilities to list articles and compute view statistics for your project.