Skip to content

Instantly share code, notes, and snippets.

@tmtmtmtm
Created July 4, 2020 10:48
Show Gist options
  • Save tmtmtmtm/40adaa4d32622a308e4f4fe3b9cc650a to your computer and use it in GitHub Desktop.
Save tmtmtmtm/40adaa4d32622a308e4f4fe3b9cc650a to your computer and use it in GitHub Desktop.
Migrate Wikidata 'elected in': '2014 Malawian general election' to the 2014 legislative election instead
# wd sparql elected_in_Malawi-General-Election.rq | jq -r '.[] | "\(.ps) P2715 Q15206416 Q61732445"' | wd update-qualifier --batch --summary "Switch elected in from Malawian general election to the legislative election"
SELECT ?ps ?item ?itemLabel WHERE {
?item p:P39 ?ps .
?ps ps:P39 wd:Q21295990 ; pq:P2715 wd:Q15206416.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
@tmtmtmtm
Copy link
Author

tmtmtmtm commented Jul 4, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment