Page MenuHomePhabricator

Create migration script to clean up wikis that had http conceptUris after migration
Closed, ResolvedPublic

Description

We can write a bash script to do the first step of the A/C following this type of curl command:
https://github.com/wbstack/api/blob/main/app/Jobs/DeleteQueryserviceNamespaceJob.php#L59
https://github.com/wbstack/api/blob/main/app/Jobs/ProvisionQueryserviceNamespaceJob.php#L65

The namespace can be obtained in a similar way to putData.sh:
e.g. https://github.com/wbstack/migrate/blob/main/putData.sh#L85 + https://github.com/wbstack/migrate/blob/main/putData.sh#L90

A/C:

  • - script to delete and recreate a queryservice namespace
  • - Script to run one off munging and loading process into this namespace

Event Timeline

I migrated a smaller wiki to staging without the conceptUri fix so we can test the clean up.

logs of migration as well as ttl file can be found here https://drive.google.com/drive/folders/18rl8I33qo6T1SffWJHweYnGNueiMZqbl

test via query service https://ngrlab.wikibase.dev/query/#SELECT%20%2a%20WHERE%20%7B%3Fa%20%3Fb%20%3Fc%7D

Tarrow claimed this task.