Categories
briefs ideas

Portraits for Wikipedia

Students have to create portraits for personalities in theirs city. The portraits are to be released under an open license on the Wikipedia Commons platform, so they can be used to illustrate Wikipedia articles.

In order to find suitable persons, a search can be done on Wikidata. For instance, this query searches for living persons born in the city of Lausanne, aged less than 85 years, that have a Wikipedia page but do not have a picture.

SELECT ?personne ?personneLabel ?dateNaissance ?age
WHERE {
  ?personne wdt:P31 wd:Q5;         # être humain
            wdt:P19 wd:Q807;       # né à Lausanne
            wdt:P569 ?dateNaissance.  # date de naissance

  # Ne pas avoir d'image
  FILTER NOT EXISTS { ?personne wdt:P18 ?image }

  # Avoir au moins un article Wikipédia
  FILTER EXISTS {
    ?article schema:about ?personne;
             schema:isPartOf ?wiki.
    FILTER(CONTAINS(STR(?wiki), "wikipedia.org"))
  }

  # Exclure les personnes décédées
  FILTER NOT EXISTS { ?personne wdt:P570 ?dateDeces }

  # Exclure les personnes de plus de 85 ans
  BIND(YEAR(NOW()) - YEAR(?dateNaissance) AS ?age)
  FILTER(?age <= 85)

  SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en". }
}
ORDER BY ?personneLabel

PS: this idea is quite similar to the existing Wikiportraits Project.

PPS: there’s an article by the BBC about the project, that also made me discover @badwikiphotos on Instagram.