This document describe the step involved in getting Wikibase running in a set of containers working in concertation.
To track version Semantic Versioning is applied.
This runbook contains:
- steps to deploy a minimal viable Wikibase stack. This contains the core Wikibase stack (including the Blazegraph RDF store).
- instructions on how to run a script (dockerized) to import the properties from Wikidata.
- instructions on how to replicate an item from Wikidata on this Wikibase, while maintaining its provenance.
docker-compose up --build --no-start novartis-openrefine
docker-compose up -d
- Review containers:
docker stats
- 11 containers needs to be running
cd wikidata-property-tranfer
docker-compose up --build --no-start
docker-compose up
(take a while to execute)cd ..
(Go back to the main containers)docker-compose stop
docker-compose up
- Review all properties are listed on the Wikibase: http://localhost:8181/wiki/Special:ListProperties
cd copy-wikidata-wikibase
docker-compose up --build --no-start
docker-compose up
(take a while to execute)- Configure the QID to copy in the
docker-compose.yml
on this folder with environment variableQID
- In case of errors run again
docker-compose up
until the last QID is loaded
- Configure the QID to copy in the
- Open Wikibase query service: http://localhost:8282
- Run query to get the values for the following step:
SELECT * WHERE { VALUES ?wikidata {<http://www.wikidata.org/entity/P31> <http://www.wikidata.org/entity/P279> <http://www.wikidata.org/entity/P1963> } ?wikibase <http://wikibase.svc/prop/direct/P1> ?wikidata ; rdfs:label ?label . }
- Update values in
openrefine-wikibase/config.py
for allTODO
values docker-compose stop reconcile
docker-compose up --build --no-start reconcile
docker-compose up -d
docker-compose exec wikibase php /var/www/html/maintenance/runJobs.php
(take a while to execute)- Check that the Wikibase API returns some results from http://localhost:8181/w/api.php?action=wbsearchentities&format=json&language=en&limit=50&search=Votubia
- You can use OpenRefine to reconcile data with:
- Wikibase Reconciliation Endpoint: http://localhost:8000/en/api
- Wikibase Query Service SPARQL Endpoint: http://localhost:8989/bigdata/namespace/wdq/sparql
- Wikibase: http://localhost:8181
- Wikibase API: http://localhost:8181/w/api.php
- Wikibase Query Service: http://localhost:8282
- Wikibase Query Service SPARQL Endpoint: http://localhost:8989/bigdata/namespace/wdq/sparql
- Wikibase Reconciliation: http://localhost:8000
- Wikibase Reconciliation Endpoint: http://localhost:8000/en/api
- OpenRefine: http://localhost:3333/