Skip to content

A full setup to start Wikibase and an OpenRefine reconciliation service point to it (legacy code)

License

Notifications You must be signed in to change notification settings

FAIRplus/WikiDraftWorks

Repository files navigation

Minimal Viable Wikibase (MVP)

This document describe the step involved in getting Wikibase running in a set of containers working in concertation.

Version 1.0.0

To track version Semantic Versioning is applied.

Contents

This runbook contains:

Step by steps for deployment

Main containers

  1. docker-compose up --build --no-start novartis-openrefine
  2. docker-compose up -d
  3. Review containers: docker stats
    • 11 containers needs to be running

Property transfer (Run only one time per deployment)

  1. cd wikidata-property-tranfer
  2. docker-compose up --build --no-start
  3. docker-compose up (take a while to execute)
  4. cd .. (Go back to the main containers)
  5. docker-compose stop
  6. docker-compose up
  7. Review all properties are listed on the Wikibase: http://localhost:8181/wiki/Special:ListProperties

Copy data from Wikidata to docker Wikibase

  1. cd copy-wikidata-wikibase
  2. docker-compose up --build --no-start
  3. docker-compose up (take a while to execute)
    • Configure the QID to copy in the docker-compose.yml on this folder with environment variable QID
    • In case of errors run again docker-compose up until the last QID is loaded

Configure openrefine-wikibase server

  1. Open Wikibase query service: http://localhost:8282
  2. 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 .
    }
    
  3. Update values in openrefine-wikibase/config.py for all TODO values
  4. docker-compose stop reconcile
  5. docker-compose up --build --no-start reconcile
  6. docker-compose up -d
  7. docker-compose exec wikibase php /var/www/html/maintenance/runJobs.php (take a while to execute)
  8. 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
  9. You can use OpenRefine to reconcile data with:

Endpoints for all services

About

A full setup to start Wikibase and an OpenRefine reconciliation service point to it (legacy code)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published