Last active
January 21, 2016 15:46
-
-
Save edsu/c95c9ae9f60ecdf80077 to your computer and use it in GitHub Desktop.
Look up WikiData ID based using a Freebase ID. Possibly useful if you have lots of Freebase ids and want to turn them into WikiData ids when Freebase goes the way of the Dodo in June.
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
% curl --silent 'https://wdq.wmflabs.org/api?q=string\[646:/m/04hcw\]' | python -mjson.tool | |
{ | |
"items": [ | |
9391 | |
], | |
"status": { | |
"error": "OK", | |
"items": 1, | |
"parsed_query": "STRING[646:'/m/04hcw']", | |
"querytime": "113ms" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment