Wikidata:PAWS
PAWS is a JupyterHub deployment for technical work around Wikimedia projects. It can also be used to edit Wikidata — see the recent changes made this way.
PAWS allow users to run :
- Jupyter notebooks with several kernels : Python3, R (Q206904) and SPARQL (Q54871).
- Rstudio
- Openrefine.
SPARQL Jupyter notebook
[edit]SPARQL notebook provides a notebook interface which allows to run SPARQL queries directly in the notebook.
Why use SPARQL notebook ?
[edit]Using SPARQL notebook, you can have in the same document some text explaining what you're looking for, the source code of your SPARQL queries and the outcome of the queries. You can share the notebook using the "public link" or the "Voilà" option.
So, this is a very handy tool if you want to :
- explore Wikidata using a set of SPARQL queries
- tell a story using SPARQL queries
How to use SPARQL notebook ?
[edit]- Go to https://hub-paws.wmcloud.org/hub/login and login.
- Click on "New" and choose SPARQL notebook
- Create a cell and add parameters
%endpoint https://query.wikidata.org/bigdata/namespace/wdq/sparql %format any %display table %show 10 %lang en
- Add markdown "cell" to add title s and text
- Add code "cell" to add SPARQL query. If you want to learn SPARQL queries, see Wikidata:SPARQL.
- Run cells
- See the list of all parameters here : https://github.com/paulovn/sparql-kernel/blob/master/doc/magics.rst
- Share the "public link" of your notebook
Examples
[edit]- SPARQL notebook which explores the role of women as scientific discoverers
- SPARQL notebook which explores queries for positions
- SPARQL notebook which measures gender diversity in Wikipedia articles
- SPARQL notebook which explores featured articles in Wikipedia in French
R notebooks
[edit]R is a programming language designed to deal with data. R notebooks allow to manipulate the data you retrieve from wikidata. You can use WikidataQueryServiceR and tidywikidatar libraries.