Extension:Graph/Demo/Sparql

From MediaWiki.org
Jump to: navigation, search

Other languages:
English • ‎日本語 • ‎occitan

Number of museums per country[edit]

This graph pulls data from three wikidata queries

  1. Number of museums by country
  2. Country names - note that labels are localized using a list "ru,en", meaning first it will try to find a label in Russian, followed by English if Russian is not available.
  3. Country populations

This graph draws a map based on topojson map data, keyed by Wikidata ID. For each region, it looks up the number of museums, population, and region name from the 3 above queries. The color is determined by logarithmicly scaling museums/population. On mouseover, the country's name and museum count is shown.

codeExtension:Graph/Demo/Sparql/Number of museums per country

Largest cities[edit]

Uses sparql query with cityLabel, population, and gps columns.

codeExtension:Graph/Demo/Sparql/Largest cities

Largest disasters[edit]

Uses sparql query with event, class, number of people affected, and the gps coordinates columns.

codeExtension:Graph/Demo/Sparql/Largest disasters