Wikimedia Belgium Projects/ListeriaBot/Query

From Wikimedia Belgium
Jump to navigation Jump to search

Wikimedia Belgium manages its projects using Wikidata.

When organising projects like edit-a-thons, it can be confusing, and difficult how to identify relevant pages.



The following can be a typical flow for managing such project:

  1. Create a Wikiproject in Wikidata
    • Create claim P31 (Q16695773) (Wikiproject)
    • Create claim P664 (organisator of Wikiproject item) (Q18398868) (Wikimedia Belgium)
  2. Create or amend Wikidata items that are maintained by the project:
    • Create claim P6104 (maintained by) Wikiproject
  3. Create a Wikipedia project page
  4. Add a ListeriaBot subpage using the above Wikiproject item number, via a below query
  5. Create new Wikipedia pages
  6. Link the Wikipedia pages to the equivalent Wikidata item

Below you can find a list of WMBE projects.


Wiki projects by Wikimedia Belgium[edit]

This is a list of projects organised by Wikimedia Belgium:

SELECT ?wikiproject ?wikiprojectLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?wikiproject wdt:P31 wd:Q16695773.
  ?wikiproject wdt:P664 wd:Q18398868.


It has been created by starting Wikidata Query, then entering the search items "wikiproject" and "WMBE" in the Filter section.

Items linked to Wikimedia Belgium projects[edit]

This becomes a huge list...

  ?item wdt:P6104 ?wikiproject.
  ?wikiproject wdt:P31 wd:Q16695773;
    wdt:P664 wd:Q18398868.


Missing language labels for items[edit]

SELECT distinct ?item WHERE {
  ?item wdt:P6104 ?wikiproject;
    wdt:P31 wd:Q5.
  ?wikiproject wdt:P31 wd:Q16695773;
    wdt:P664 wd:Q18398868.
    ?item rdfs:label ?label.
    FILTER((LANG(?label)) = "da")


The list of Q-numbers can be fed into a Pywikibot script to add the missing labels.

See also[edit]