Basel on Wikidata

Update Wikidata (and with that also Wikipedia!) with current official data

WIkidata is an open database of facts describing the world. These facts are easily reused in Wikipedia articles. The challenge is to add official open data that is available as CSV on the web to Wikidata. We have a working setup for population data of neighbourhoods in Basel-Stadt, see the Github repo below and StataBS/quartierindex for an example app. There are many other open datasets that could and should be reshaped and uploaded to Wikidata.


{ hacknight challenges }

Get introduced to Wikidata if you're not aware of it already. Try the Query service, for instance with some of the Cities examples.

Visit https://www.opendata.bs.ch/ to dig into the Open Data portal of Basel and extract some details on neighbourhoods and the population. Take a look at some of their example apps.

Once you have chosen the data to import, work on defining the structure of the data in such a way that a Data import process could happen. Do a test run using csvtowikidata.

This content is a preview from an external site.

CSV-to-WikiData

Installation and usage

Install all needed dependencies using pip:

pip install -r requirements.txt

After the installation you can run the script:

python csvtowikidata.py

Development

It is recommended to install the flake8 pre-commit-hook:

flake8 --install-hook

Affected items on WikiData

* [Altstadt Grossbasel](http://www.wikidata.org/wiki/Q445565)
* [Vorstädte](http://www.wikidata.org/wiki/Q809915) 
* [Am Ring](http://www.wikidata.org/wiki/Q809899)
* [Breite](http://www.wikidata.org/wiki/Q809901)
* [St. Alban](http://www.wikidata.org/wiki/Q809913)
* [Gundeldingen](http://www.wikidata.org/wiki/Q809905) 
* [Bruderholz](http://www.wikidata.org/wiki/Q809902)
* [Bachletten](http://www.wikidata.org/wiki/Q809900) 
* [Gotthelf](http://www.wikidata.org/wiki/Q809903)
* [Iselin](http://www.wikidata.org/wiki/Q809907) 
* [St. Johann](http://www.wikidata.org/wiki/Q809912)
* [Altstadt Kleinbasel](http://www.wikidata.org/wiki/Q445588)
* [Clara](http://www.wikidata.org/wiki/Q809904)
* [Wettstein](http://www.wikidata.org/wiki/Q809916)
* [Hirzbrunnen](http://www.wikidata.org/wiki/Q664993)
* [Rosental](http://www.wikidata.org/wiki/Q809914)
* [Matthäus](http://www.wikidata.org/wiki/Q809911)
* [Klybeck](http://www.wikidata.org/wiki/Q809909)
* [Kleinhüningen](http://www.wikidata.org/wiki/Q809908)
* [Riehen](http://www.wikidata.org/wiki/Q5262)
* [Bettingen](http://www.wikidata.org/wiki/Q67530)
* [Basel](http://www.wikidata.org/wiki/Q78)
* [Basel-Stadt](http://www.wikidata.org/wiki/Q12172)

Event finished

30.10.2021 18:00

Added issue #3 to the upstream repo with some feedback from our event.

29.10.2021 21:47 ~ loleg

Worked on the pitch

29.10.2021 21:18 ~ loleg

Readme updated

29.10.2021 21:17 ~ loleg

Event started

29.10.2021 18:00

Challenge started.

29.10.2021 05:23 ~ jonasbieri
Loading ...
All attendees, sponsors, partners, volunteers and staff at our hackathon are required to agree with the Hack Code of Conduct. Organisers will enforce this code throughout the event. We expect cooperation from all participants to ensure a safe environment for everybody.

Creative Commons LicenceThe contents of this website, unless otherwise stated, are licensed under a Creative Commons Attribution 4.0 International License.

HACKnight 2021