Introduction to technical

Wikimedia world

Toni Hermoso Pulido

@toniher

Amical Wikimedia

#MEMENGINY2018

Wiki

Wikipedia

Wikimedia

MediaWiki

Wiki CMS

Built mostly in:

  • PHP
  • JavaScript

MediaWiki: Content

Ref

Namespaces

  • Main

  • Talk

  • User

  • Category

  • Template

Infoboxes

Templates

MediaWiki functions

Templates

Ordered parameters

{{MyTemplate | Hello | World }}

{{{1|Hi}}}, {{{2|Moon}}} !

Template:MyTemplate

Templates

Named parameters

{{MyNamedTemplate | greeting=Hello | recipient=World }}

Template:MyNamedTemplate

{{{greeting|Hi}}}, {{{recipient|Moon}}} !

Bots

The hidden ones

MediaWiki API

Accessing MediaWiki programatically

Example:

MediaWiki API clients / libraries

  • Perl (MediaWiki::API, MediaWiki::Bot)

  • Python (Mwclient, Pywikibot)

  • JavaScript (nodemw)

  • etc.

Infrastructure and resources

Wikidata

Wikidata: Namespaces

  • «Wiki ones»: User, Category, etc.
  • Wikibase ones: Item, Property (both Entities)

Wikidata: Overview

Wikidata: Concepts

  • Labels
  • Descriptions
  • Aliases
  • Sitelinks
  • Statements
  • Qualifiers
  • References
  • ...

Wikidata: Statements

Wikidata: Exports

Machine-friendly

Wikidata: triples

Paul Schuster was born in Dresden

Wikidata: RDF

(Resource Description Framework)

Wikidata: Querying

SPARQL

SPARQL Protocol and RDF Query Language

Similar to SQL, but for the Semantic Web

Wikidata Query Service

Ref

3rd party visualizations: Scholia

3rd party visualizations: Reasonator

3rd party visualizations: tempo-spatial

Wikidata: dumps

  • JSON
  • XML
  • RDF
  • etc.

Entities

Linked Open Data

Wikimedia ♥ Docker

Official or popular Docker images

Docker images I used in courses

We build the one above following README instructions, modifying Bash scripts and Dockerfile if desired

We can build this one as well. Alternately we can reuse it from:

https://hub.docker.com/r/toniher/debian-python-mediawiki/

However you need to mount example scripts provided in the repo above

Wikimedia Hackathon 2018

Text

May 18 - 20, Escola Enginyeria (UAB)

Wikimedia Hackathon 2018

May 18 - 20, Escola Enginyeria (UAB)

Participate!

TFG

GSoC

ideas?

hackathon@wikimedia.cat

Introduction to technical Wikimedia world - Memenginy 2018

By Similis.cc

Introduction to technical Wikimedia world - Memenginy 2018

These slides are a short introduction to Wikimedia technical world with emphasis on MediaWiki API, bots and Wikidata

  • 780
Loading comments...

More from Similis.cc