Created
July 4, 2020 10:48
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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". } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
These changes were made in https://editgroups.toolforge.org/b/wikibase-cli/7b9b5027b5519/