Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 8 additions & 75 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,86 +1,19 @@
# Wikidata
# wikidata

Current version: [v1.0.0](https://github.com/GLAM-Workbench/wikidata/releases/tag/v1.0.0)

Tools and examples for working with GLAM information in Wikidata. For more information see the [Wikidata](https://glam-workbench.net/wikidata/) section of the GLAM Workbench.

## Notebook topics
For more information and documentation see the [Wikidata - GLAM Workbench](https://glam-workbench.net/wikidata/) section of the [GLAM Workbench](https://glam-workbench.net).

* [Create a Gannt chart of Australian government departments](agencies-gannt-timeline.ipynb) – visualises life dates of government departments
* [Create a network graph visualisation of Australian government departments](govt-agencies-network.ipynb) – visualises changes in Australian government departments over time
* [Visualise the connections of a single Australian government agency](single-agency-network.ipynb)

See the [GLAM Workbench for more details](https://glam-workbench.github.io/wikidata/).
## Notebooks
- [Create a Gannt chart of Australian government departments](https://github.com/GLAM-Workbench/wikidata/blob/master/agencies-gannt-timeline.ipynb)
- [Create a network graph visualisation of Australian government departments](https://github.com/GLAM-Workbench/wikidata/blob/master/govt-agencies-network.ipynb)
- [Visualise the network of Australian people identifiers](https://github.com/GLAM-Workbench/wikidata/blob/master/visualise_all_people_ids.ipynb)
- [Visualise the connections of a single Australian government agency](https://github.com/GLAM-Workbench/wikidata/blob/master/single-agency-network.ipynb)


<!-- START RUN INFO -->


## Run these notebooks

There are a number of different ways to use these notebooks. Binder is quickest and easiest, but it doesn't save your data. I've listed the options below from easiest to most complicated (requiring more technical knowledge).

### Using Binder

[![Launch on Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/GLAM-Workbench/wikidata/master/?urlpath=lab/tree/index.ipynb)

Click on the button above to launch the notebooks in this repository using the [Binder](https://mybinder.org/) service (it might take a little while to load). This is a free service, but note that sessions will close if you stop using the notebooks, and no data will be saved. Make sure you download any changed notebooks or harvested data that you want to save.

See [Using Binder](https://glam-workbench.net/using-binder/) for more details.

### Using Reclaim Cloud

[![Launch on Reclaim Cloud](https://glam-workbench.github.io/images/launch-on-reclaim-cloud.svg)](https://app.my.reclaim.cloud/?manifest=https://raw.githubusercontent.com/GLAM-Workbench/wikidata/master/reclaim-manifest.jps)

[Reclaim Cloud](https://reclaim.cloud/) is a paid hosting service, aimed particularly at supported digital scholarship in hte humanities. Unlike Binder, the environments you create on Reclaim Cloud will save your data – even if you switch them off! To run this repository on Reclaim Cloud for the first time:

* Create a [Reclaim Cloud](https://reclaim.cloud/) account and log in.
* Click on the button above to start the installation process.
* A dialogue box will ask you to set a password, this is used to limit access to your Jupyter installation.
* Sit back and wait for the installation to complete!
* Once the installation is finished click on the 'Open in Browser' button of your newly created environment (note that you might need to wait a few minutes before everything is ready).

See [Using Reclaim Cloud](https://glam-workbench.net/using-reclaim-cloud/) for more details.

### Using Docker

You can use Docker to run a pre-built computing environment on your own computer. It will set up everything you need to run the notebooks in this repository. This is free, but requires more technical knowledge – you'll have to install Docker on your computer, and be able to use the command line.

* Install [Docker Desktop](https://docs.docker.com/get-docker/).
* Create a new directory for this repository and open it from the command line.
* From the command line, run the following command:
```
docker run -p 8888:8888 --name wikidata -v "$PWD":/home/jovyan/work quay.io/glamworkbench/wikidata repo2docker-entrypoint jupyter lab --ip 0.0.0.0 --NotebookApp.token='' --LabApp.default_url='/lab/tree/index.ipynb'
```
* It will take a while to download and configure the Docker image. Once it's ready you'll see a message saying that Jupyter Notebook is running.
* Point your web browser to `http://127.0.0.1:8888`

See [Using Docker](https://glam-workbench.net/using-docker/) for more details.

### Setting up on your own computer

If you know your way around the command line and are comfortable installing software, you might want to set up your own computer to run these notebooks.

Assuming you have recent versions of Python and Git installed, the steps might be something like:

* Create a virtual environment, eg: `python -m venv wikidata`
* Open the new directory" `cd wikidata`
* Activate the environment `source bin/activate`
* Clone the repository: `git clone https://github.com/GLAM-Workbench/wikidata.git notebooks`
* Open the new `notebooks` directory: `cd notebooks`
* Install the necessary Python packages: `pip install -r requirements.txt`
* Run Jupyter: `jupyter lab`

See [Getting started](https://glam-workbench.net/getting-started/#using-python-on-your-own-computer for more details.

<!-- END RUN INFO -->

## Cite as

See the GLAM Workbench or [Zenodo](https://doi.org/10.5281/zenodo.3521724) for up-to-date citation details.

----

This repository is part of the [GLAM Workbench](https://glam-workbench.github.io/).

The development of the Wikidata section of the GLAM Workbench was supported by [Wikimedia Australia](https://wikimedia.org.au/wiki/Wikimedia_Australia).
Created by [Tim Sherratt](https://timsherratt.au) for the [GLAM Workbench](https://glam-workbench.net)
1 change: 1 addition & 0 deletions agencies-gannt-timeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@
}
],
"description": "This notebook creates a Gannt-style chart showing the creation and dissolution dates of Australian government departments.",
"mainEntityOfPage": "https://glam-workbench.net/wikidata/agencies-gannt-timeline/",
"name": "Create a Gannt chart of Australian government departments",
"workExample": [
{
Expand Down
1 change: 1 addition & 0 deletions govt-agencies-network.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@
}
],
"description": "This notebook visualises changes in Australian government departments over time, using data from Wikidata. It creates a hierarchically-ordered network graph where each agency is represented as a node whose position and colour is determined by the decade in which the agency was created.",
"mainEntityOfPage": "https://glam-workbench.net/wikidata/govt-agencies-network/",
"name": "Create a network graph visualisation of Australian government departments",
"workExample": [
{
Expand Down
47 changes: 46 additions & 1 deletion ro-crate-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@id": "https://orcid.org/0000-0001-7956-4498"
}
],
"datePublished": "2025-08-24T05:03:39+00:00",
"datePublished": "2025-08-24T13:15:55+00:00",
"description": "",
"hasPart": [
{
Expand All @@ -28,6 +28,9 @@
"license": {
"@id": "https://creativecommons.org/publicdomain/zero/1.0/"
},
"mainEntityOfPage": {
"@id": "https://glam-workbench.net/wikidata/"
},
"name": "wikidata"
},
{
Expand All @@ -46,6 +49,12 @@
"name": "CC0 Public Domain Dedication",
"url": "https://creativecommons.org/publicdomain/zero/1.0/"
},
{
"@id": "https://glam-workbench.net/wikidata/",
"@type": "CreativeWork",
"name": "Wikidata - GLAM Workbench",
"url": "https://glam-workbench.net/wikidata/"
},
{
"@id": "https://www.python.org/downloads/release/python-31211/",
"@type": [
Expand Down Expand Up @@ -73,6 +82,9 @@
"isPartOf": {
"@id": "https://github.com/GLAM-Workbench/wikidata/"
},
"mainEntityOfPage": {
"@id": "https://glam-workbench.net/wikidata/agencies-gannt-timeline/"
},
"name": "Create a Gannt chart of Australian government departments",
"programmingLanguage": {
"@id": "https://www.python.org/downloads/release/python-31211/"
Expand All @@ -96,6 +108,12 @@
"name": "timsherratt.au - timsherratt.au",
"url": "https://timsherratt.au"
},
{
"@id": "https://glam-workbench.net/wikidata/agencies-gannt-timeline/",
"@type": "CreativeWork",
"name": "Create a Gannt chart of Australian government departments - GLAM Workbench",
"url": "https://glam-workbench.net/wikidata/agencies-gannt-timeline/"
},
{
"@id": "https://glam-workbench.net/wikidata/examples/agencies-gannt-timeline.html",
"@type": "CreativeWork",
Expand Down Expand Up @@ -125,6 +143,9 @@
"isPartOf": {
"@id": "https://github.com/GLAM-Workbench/wikidata/"
},
"mainEntityOfPage": {
"@id": "https://glam-workbench.net/wikidata/govt-agencies-network/"
},
"name": "Create a network graph visualisation of Australian government departments",
"programmingLanguage": {
"@id": "https://www.python.org/downloads/release/python-31211/"
Expand All @@ -134,6 +155,12 @@
"@id": "https://glam-workbench.net/wikidata/examples/govt-agencies-network.html"
}
},
{
"@id": "https://glam-workbench.net/wikidata/govt-agencies-network/",
"@type": "CreativeWork",
"name": "Create a network graph visualisation of Australian government departments - GLAM Workbench",
"url": "https://glam-workbench.net/wikidata/govt-agencies-network/"
},
{
"@id": "https://glam-workbench.net/wikidata/examples/govt-agencies-network.html",
"@type": "CreativeWork",
Expand All @@ -157,12 +184,21 @@
"isPartOf": {
"@id": "https://github.com/GLAM-Workbench/wikidata/"
},
"mainEntityOfPage": {
"@id": "https://glam-workbench.net/wikidata/visualise_all_people_ids/"
},
"name": "Visualise the network of Australian people identifiers",
"programmingLanguage": {
"@id": "https://www.python.org/downloads/release/python-31211/"
},
"url": "https://github.com/GLAM-Workbench/wikidata/blob/master/visualise_all_people_ids.ipynb"
},
{
"@id": "https://glam-workbench.net/wikidata/visualise_all_people_ids/",
"@type": "CreativeWork",
"name": null,
"url": "https://glam-workbench.net/wikidata/visualise_all_people_ids/"
},
{
"@id": "single-agency-network.ipynb",
"@type": [
Expand All @@ -180,11 +216,20 @@
"isPartOf": {
"@id": "https://github.com/GLAM-Workbench/wikidata/"
},
"mainEntityOfPage": {
"@id": "https://glam-workbench.net/wikidata/single-agency-network/"
},
"name": "Visualise the connections of a single Australian government agency",
"programmingLanguage": {
"@id": "https://www.python.org/downloads/release/python-31211/"
},
"url": "https://github.com/GLAM-Workbench/wikidata/blob/master/single-agency-network.ipynb"
},
{
"@id": "https://glam-workbench.net/wikidata/single-agency-network/",
"@type": "CreativeWork",
"name": "Visualise the connections of a single Australian government agency - GLAM Workbench",
"url": "https://glam-workbench.net/wikidata/single-agency-network/"
}
]
}
1 change: 1 addition & 0 deletions single-agency-network.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@
}
],
"description": "Select an agency from the dropdown list to view its predecessors and successors as a network graph. Each agency is represented as a node whose position and colour is determined by the decade in which the agency was created. The size of the node indicates how long the agency was in existence, while edges between nodes connect agencies to their successors.",
"mainEntityOfPage": "https://glam-workbench.net/wikidata/single-agency-network/",
"name": "Visualise the connections of a single Australian government agency"
}
},
Expand Down
1 change: 1 addition & 0 deletions visualise_all_people_ids.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1657,6 +1657,7 @@
}
],
"description": "Wikidata uses a wide range of external identifiers to help describe and identify people. This notebook explores the range of identifiers applied to Australian people in Wikidata and attempts to visualise their use and connections.",
"mainEntityOfPage": "https://glam-workbench.net/wikidata/visualise_all_people_ids/",
"name": "Visualise the network of Australian people identifiers"
}
},
Expand Down
Loading