User:Geertivp/training/Wikidata/Wiki projects

From Wikidata
Jump to navigation Jump to search

Wiki projects are typically setup by chapters or user groups, in collaboration with partners.

Wikidata can be a handy tool and database to keep an inventory of items linked to the project, and helps to integrate and link Wikidata, Wikipedia, and Wikimedia Commons.

Supporting tools for Wikidata (for update) are OpenRefine, QuickStatements, and (read-only) ListeriaBot and Wikidata Query.

Images can be uploaded by a Wikimedia Commons campaign.

On Wikimedia Commons, images can be documented through Structured Data on Commons (SDoC), and e.g. the ISA Tool or AC/DC.

The Campaign and events tool can be used for user registration, automatic edit tracking, and project management.

Wikidata Query can be used for detailed project reporting purposes (flat lists, geospatial, hierarchical, linked).

AutoWikiBrowser (AWB), PetScan, Mix'n'match, and WDFIST can be used to amend Wikipedia pages, and Wikidata.

Lists of pages, or Q-numbers can be fed into Pywikibot programs, that can automatically update Wikidata items, statements, and Wiki page links.

History

[edit]

Traditionally, Wiki projects, and edit-a-thons, were organised with non-integrated tools, often based on external, closed tools like Excel or Google Spreadsheets, and much personal effort.

Volunteers were confused, project teams needed to perform too many manual tasks, and the results where sub-optimal.

Therefore a Linked Open Data solution is much appreciated, available online for the community, well integrated and documented on the Wikimedia platforms, and can be easily used both by project teams, volunteers, and institutions, with a minimum of investment and a maximum result.

Nothing needs to be locally installed by the user (except AWB), all tools are online available, and supported by a Wikimedia single sign-on.

Most tools are available for all users, and are multilingual. For some tools like AWB, Pywikibot, and Wikimedia Commons campaigns, additional rights needs to be requested.

Data model for a Wikidata-centered project

[edit]

The project is the central item in Wikidata, where other items can be interconnected through properties.

This way, e.g. Wikipedia pages can be linked to a Wiki project, and a ListeriaBot query can automatically generate a table of created and missing pages per language; image (P18) can show a picture.

Functionality

[edit]
  • Items can be created with OpenRefine, QuickStatements, or manually
  • Volunteers can amend the items
  • Wikipedia pages can be written or amended (manually, or semi-automatically with AWB)
  • Photographs can be linked or added
  • Multiple maintenance tools can be used (see above)
  • A query could be run to identify items without images (image (P18) can be part of the ListeriaBot query)
  • Project leaders can report on the status, coaches can follow-up and assist the participants

Project queries

[edit]

Inventory of projects

[edit]

Get a list of Wiki projects for a chapter.

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, organizer (P664)  View with Reasonator View with SQID
    # Get all projects by WMBE (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.
    }
    

Missing language labels for items

[edit]

Identify items with missing language labels.

The following query uses these:

  • Properties: maintained by WikiProject (P6104)  View with Reasonator View with SQID, instance of (P31)  View with Reasonator View with SQID, organizer (P664)  View with Reasonator View with SQID
    # Get all items linked to WMBE WikiProjects that have missing labels
    SELECT distinct ?item WHERE {
      ?item wdt:P6104 ?wikiproject;
        wdt:P31 wd:Q5.
      ?wikiproject wdt:P31 wd:Q16695773;
        wdt:P664 wd:Q18398868.
      MINUS {
        ?item rdfs:label ?label.
        FILTER((LANG(?label)) = "da")
      }
    }
    

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

Example projects

[edit]