-
-
Save ikwattro/ab61b56f1625dced78bc2ede5f5c02a5 to your computer and use it in GitHub Desktop.
An example of looking up Pizza in Wikidata, to see the equivalent entities on other Wikipedias using the wggetentities call in the Wikidata API http://wikidata.org/w/api.php. The use of python as a filter on the end of curl is just to pretty print the JSON. You can obviously leave it off if you don't have Python available. In response to https:/…
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 "https://www.wikidata.org/w/api.php?action=wbgetentities&sites=itwiki&titles=Pizza&format=json" | python -mjson.tool | |
{ | |
"entities": { | |
"q177": { | |
"descriptions": { | |
"de": { | |
"language": "de", | |
"value": "Gericht" | |
}, | |
"en": { | |
"language": "en", | |
"value": "Italian dish made of oven-baked bread with various toppings" | |
}, | |
"es": { | |
"language": "es", | |
"value": "pan plano horneado, original de la cocina napolitana" | |
}, | |
"fr": { | |
"language": "fr", | |
"value": "Plat d'origine italienne" | |
}, | |
"it": { | |
"language": "it", | |
"value": "Prodotto gastronomico" | |
}, | |
"ko": { | |
"language": "ko", | |
"value": "\ubc00\uac00\ub8e8 \ubc18\uc8fd \uc704\uc5d0 \ud1a0\ub9c8\ud1a0 \uc18c\uc2a4, \ubaa8\ucc28\ub810\ub77c \uce58\uc988\ub97c \uc5b9\uc5b4\uc11c \ub465\uae00\uace0 \ub0a9\uc791\ud55c \ud615\ud0dc\ub85c \uad6c\uc6b4 \ube75" | |
}, | |
"nb": { | |
"language": "nb", | |
"value": "matrett" | |
}, | |
"ru": { | |
"language": "ru", | |
"value": "\u0438\u0442\u0430\u043b\u044c\u044f\u043d\u0441\u043a\u043e\u0435 \u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0435 \u0431\u043b\u044e\u0434\u043e" | |
} | |
}, | |
"id": "q177", | |
"labels": { | |
"af": { | |
"language": "af", | |
"value": "Pizza" | |
}, | |
"ang": { | |
"language": "ang", | |
"value": "Piza" | |
}, | |
"ar": { | |
"language": "ar", | |
"value": "\u0628\u064a\u062a\u0632\u0627" | |
}, | |
"az": { | |
"language": "az", | |
"value": "Pitsa" | |
}, | |
"bar": { | |
"language": "bar", | |
"value": "Pizza" | |
}, | |
"bat-smg": { | |
"language": "bat-smg", | |
"value": "P\u0117ca" | |
}, | |
"be": { | |
"language": "be", | |
"value": "\u041f\u0456\u0446\u0430" | |
}, | |
"bg": { | |
"language": "bg", | |
"value": "\u041f\u0438\u0446\u0430" | |
}, | |
"bn": { | |
"language": "bn", | |
"value": "\u09aa\u09bf\u09ce\u099c\u09be" | |
}, | |
"br": { | |
"language": "br", | |
"value": "Pizza" | |
}, | |
"bs": { | |
"language": "bs", | |
"value": "Pizza" | |
}, | |
"ca": { | |
"language": "ca", | |
"value": "Pizza" | |
}, | |
"ceb": { | |
"language": "ceb", | |
"value": "Pizza" | |
}, | |
"cs": { | |
"language": "cs", | |
"value": "Pizza" | |
}, | |
"cy": { | |
"language": "cy", | |
"value": "Pizza" | |
}, | |
"da": { | |
"language": "da", | |
"value": "Pizza" | |
}, | |
"de": { | |
"language": "de", | |
"value": "Pizza" | |
}, | |
"el": { | |
"language": "el", | |
"value": "\u03a0\u03af\u03c4\u03c3\u03b1" | |
}, | |
"en": { | |
"language": "en", | |
"value": "pizza" | |
}, | |
"en-ca": { | |
"language": "en-ca", | |
"value": "Pizza" | |
}, | |
"en-gb": { | |
"language": "en-gb", | |
"value": "Pizza" | |
}, | |
"eo": { | |
"language": "eo", | |
"value": "Pico" | |
}, | |
"es": { | |
"language": "es", | |
"value": "pizza" | |
}, | |
"et": { | |
"language": "et", | |
"value": "Pitsa" | |
}, | |
"eu": { | |
"language": "eu", | |
"value": "Pizza" | |
}, | |
"fa": { | |
"language": "fa", | |
"value": "\u067e\u06cc\u062a\u0632\u0627" | |
}, | |
"fi": { | |
"language": "fi", | |
"value": "Pizza" | |
}, | |
"fr": { | |
"language": "fr", | |
"value": "Pizza" | |
}, | |
"ga": { | |
"language": "ga", | |
"value": "P\u00edotsa" | |
}, | |
"gl": { | |
"language": "gl", | |
"value": "Pizza" | |
}, | |
"he": { | |
"language": "he", | |
"value": "\u05e4\u05d9\u05e6\u05d4" | |
}, | |
"hi": { | |
"language": "hi", | |
"value": "\u092a\u093f\u091c\u094d\u091c\u093e" | |
}, | |
"hr": { | |
"language": "hr", | |
"value": "Pizza" | |
}, | |
"hu": { | |
"language": "hu", | |
"value": "Pizza" | |
}, | |
"hy": { | |
"language": "hy", | |
"value": "\u054a\u056b\u0581\u0581\u0561" | |
}, | |
"id": { | |
"language": "id", | |
"value": "Pizza" | |
}, | |
"is": { | |
"language": "is", | |
"value": "Pizza" | |
}, | |
"it": { | |
"language": "it", | |
"value": "Pizza" | |
}, | |
"ja": { | |
"language": "ja", | |
"value": "\u30d4\u30b6" | |
}, | |
"jv": { | |
"language": "jv", | |
"value": "Pizza" | |
}, | |
"ka": { | |
"language": "ka", | |
"value": "\u10de\u10d8\u10ea\u10d0" | |
}, | |
"kk": { | |
"language": "kk", | |
"value": "\u041f\u0438\u0446\u0446\u0430" | |
}, | |
"kn": { | |
"language": "kn", | |
"value": "\u0caa\u0cc0\u0c9f\u0ccd\u0cb8\u0cbe" | |
}, | |
"ko": { | |
"language": "ko", | |
"value": "\ud53c\uc790" | |
}, | |
"ku": { | |
"language": "ku", | |
"value": "P\u00eeza" | |
}, | |
"la": { | |
"language": "la", | |
"value": "Placenta Neapolitana" | |
}, | |
"li": { | |
"language": "li", | |
"value": "Pizza" | |
}, | |
"lt": { | |
"language": "lt", | |
"value": "Pica" | |
}, | |
"lv": { | |
"language": "lv", | |
"value": "Pica" | |
}, | |
"mk": { | |
"language": "mk", | |
"value": "\u041f\u0438\u0446\u0430" | |
}, | |
"ml": { | |
"language": "ml", | |
"value": "\u0d2a\u0d3f\u0d31\u0d4d\u0d31\u0d4d\u0d38" | |
}, | |
"mn": { | |
"language": "mn", | |
"value": "\u041f\u0438\u0446\u0446\u0430" | |
}, | |
"mr": { | |
"language": "mr", | |
"value": "\u092a\u093f\u091d\u094d\u091d\u093e" | |
}, | |
"mrj": { | |
"language": "mrj", | |
"value": "\u041f\u0438\u0446\u0446\u0430" | |
}, | |
"ms": { | |
"language": "ms", | |
"value": "Pizza" | |
}, | |
"nap": { | |
"language": "nap", | |
"value": "Pizza" | |
}, | |
"nb": { | |
"language": "nb", | |
"value": "pizza" | |
}, | |
"nl": { | |
"language": "nl", | |
"value": "Pizza" | |
}, | |
"nn": { | |
"language": "nn", | |
"value": "Pizza" | |
}, | |
"no": { | |
"language": "no", | |
"value": "Pizza" | |
}, | |
"nrm": { | |
"language": "nrm", | |
"value": "Pizza" | |
}, | |
"oc": { | |
"language": "oc", | |
"value": "Pizza" | |
}, | |
"pa": { | |
"language": "pa", | |
"value": "\u0a2a\u0a3f\u0a1c\u0a3c\u0a3e" | |
}, | |
"pl": { | |
"language": "pl", | |
"value": "Pizza" | |
}, | |
"pnb": { | |
"language": "pnb", | |
"value": "\u067e\u06cc\u0632\u0627" | |
}, | |
"pnt": { | |
"language": "pnt", | |
"value": "\u03a0\u03af\u03c4\u03c3\u03b1" | |
}, | |
"pt": { | |
"language": "pt", | |
"value": "Pizza" | |
}, | |
"ro": { | |
"language": "ro", | |
"value": "Pizza" | |
}, | |
"ru": { | |
"language": "ru", | |
"value": "\u041f\u0438\u0446\u0446\u0430" | |
}, | |
"sah": { | |
"language": "sah", | |
"value": "\u041f\u0438\u0446\u0446\u0430" | |
}, | |
"scn": { | |
"language": "scn", | |
"value": "Pizza" | |
}, | |
"simple": { | |
"language": "simple", | |
"value": "Pizza" | |
}, | |
"sk": { | |
"language": "sk", | |
"value": "Pizza" | |
}, | |
"sl": { | |
"language": "sl", | |
"value": "Pica" | |
}, | |
"sr": { | |
"language": "sr", | |
"value": "\u041f\u0438\u0446\u0430" | |
}, | |
"sv": { | |
"language": "sv", | |
"value": "Pizza" | |
}, | |
"szl": { | |
"language": "szl", | |
"value": "Pizza" | |
}, | |
"ta": { | |
"language": "ta", | |
"value": "\u0baa\u0bc0\u0ba4\u0bcd\u0b9a\u0bbe" | |
}, | |
"th": { | |
"language": "th", | |
"value": "\u0e1e\u0e34\u0e0b\u0e0b\u0e48\u0e32" | |
}, | |
"tr": { | |
"language": "tr", | |
"value": "Pizza" | |
}, | |
"uk": { | |
"language": "uk", | |
"value": "\u041f\u0456\u0446\u0430" | |
}, | |
"vep": { | |
"language": "vep", | |
"value": "Picc" | |
}, | |
"vi": { | |
"language": "vi", | |
"value": "Pizza" | |
}, | |
"yi": { | |
"language": "yi", | |
"value": "\u05e4\u05d9\u05e6\u05d0" | |
}, | |
"zh": { | |
"language": "zh", | |
"value": "\u6bd4\u8428\u997c" | |
}, | |
"zh-cn": { | |
"language": "zh-cn", | |
"value": "\u6bd4\u8428\u997c" | |
}, | |
"zh-hans": { | |
"language": "zh-hans", | |
"value": "\u6bd4\u8428\u997c" | |
}, | |
"zh-hant": { | |
"language": "zh-hant", | |
"value": "\u6bd4\u8428\u997c" | |
} | |
}, | |
"lastrevid": 554451, | |
"modified": "2012-11-23T21:00:02Z", | |
"ns": 0, | |
"pageid": 316, | |
"sitelinks": { | |
"afwiki": { | |
"site": "afwiki", | |
"title": "Pizza" | |
}, | |
"angwiki": { | |
"site": "angwiki", | |
"title": "Piza" | |
}, | |
"arwiki": { | |
"site": "arwiki", | |
"title": "\u0628\u064a\u062a\u0632\u0627" | |
}, | |
"azwiki": { | |
"site": "azwiki", | |
"title": "Pitsa" | |
}, | |
"barwiki": { | |
"site": "barwiki", | |
"title": "Pizza" | |
}, | |
"bat_smgwiki": { | |
"site": "bat_smgwiki", | |
"title": "P\u0117ca" | |
}, | |
"bewiki": { | |
"site": "bewiki", | |
"title": "\u041f\u0456\u0446\u0430" | |
}, | |
"bgwiki": { | |
"site": "bgwiki", | |
"title": "\u041f\u0438\u0446\u0430" | |
}, | |
"bnwiki": { | |
"site": "bnwiki", | |
"title": "\u09aa\u09bf\u09ce\u099c\u09be" | |
}, | |
"brwiki": { | |
"site": "brwiki", | |
"title": "Pizza" | |
}, | |
"bswiki": { | |
"site": "bswiki", | |
"title": "Pizza" | |
}, | |
"cawiki": { | |
"site": "cawiki", | |
"title": "Pizza" | |
}, | |
"cebwiki": { | |
"site": "cebwiki", | |
"title": "Pizza" | |
}, | |
"cswiki": { | |
"site": "cswiki", | |
"title": "Pizza" | |
}, | |
"cywiki": { | |
"site": "cywiki", | |
"title": "Pizza" | |
}, | |
"dawiki": { | |
"site": "dawiki", | |
"title": "Pizza" | |
}, | |
"dewiki": { | |
"site": "dewiki", | |
"title": "Pizza" | |
}, | |
"elwiki": { | |
"site": "elwiki", | |
"title": "\u03a0\u03af\u03c4\u03c3\u03b1" | |
}, | |
"enwiki": { | |
"site": "enwiki", | |
"title": "Pizza" | |
}, | |
"eowiki": { | |
"site": "eowiki", | |
"title": "Pico" | |
}, | |
"eswiki": { | |
"site": "eswiki", | |
"title": "Pizza" | |
}, | |
"etwiki": { | |
"site": "etwiki", | |
"title": "Pitsa" | |
}, | |
"euwiki": { | |
"site": "euwiki", | |
"title": "Pizza" | |
}, | |
"fawiki": { | |
"site": "fawiki", | |
"title": "\u067e\u06cc\u062a\u0632\u0627" | |
}, | |
"fiwiki": { | |
"site": "fiwiki", | |
"title": "Pizza" | |
}, | |
"frwiki": { | |
"site": "frwiki", | |
"title": "Pizza" | |
}, | |
"gawiki": { | |
"site": "gawiki", | |
"title": "P\u00edotsa" | |
}, | |
"glwiki": { | |
"site": "glwiki", | |
"title": "Pizza" | |
}, | |
"hewiki": { | |
"site": "hewiki", | |
"title": "\u05e4\u05d9\u05e6\u05d4" | |
}, | |
"hiwiki": { | |
"site": "hiwiki", | |
"title": "\u092a\u093f\u091c\u094d\u091c\u093e" | |
}, | |
"hrwiki": { | |
"site": "hrwiki", | |
"title": "Pizza" | |
}, | |
"huwiki": { | |
"site": "huwiki", | |
"title": "Pizza" | |
}, | |
"hywiki": { | |
"site": "hywiki", | |
"title": "\u054a\u056b\u0581\u0581\u0561" | |
}, | |
"idwiki": { | |
"site": "idwiki", | |
"title": "Pizza" | |
}, | |
"iswiki": { | |
"site": "iswiki", | |
"title": "Pizza" | |
}, | |
"itwiki": { | |
"site": "itwiki", | |
"title": "Pizza" | |
}, | |
"jawiki": { | |
"site": "jawiki", | |
"title": "\u30d4\u30b6" | |
}, | |
"jvwiki": { | |
"site": "jvwiki", | |
"title": "Pizza" | |
}, | |
"kawiki": { | |
"site": "kawiki", | |
"title": "\u10de\u10d8\u10ea\u10d0" | |
}, | |
"kkwiki": { | |
"site": "kkwiki", | |
"title": "\u041f\u0438\u0446\u0446\u0430" | |
}, | |
"knwiki": { | |
"site": "knwiki", | |
"title": "\u0caa\u0cc0\u0c9f\u0ccd\u0cb8\u0cbe" | |
}, | |
"kowiki": { | |
"site": "kowiki", | |
"title": "\ud53c\uc790" | |
}, | |
"kuwiki": { | |
"site": "kuwiki", | |
"title": "P\u00eeza" | |
}, | |
"lawiki": { | |
"site": "lawiki", | |
"title": "Placenta Neapolitana" | |
}, | |
"liwiki": { | |
"site": "liwiki", | |
"title": "Pizza" | |
}, | |
"ltwiki": { | |
"site": "ltwiki", | |
"title": "Pica" | |
}, | |
"lvwiki": { | |
"site": "lvwiki", | |
"title": "Pica" | |
}, | |
"mkwiki": { | |
"site": "mkwiki", | |
"title": "\u041f\u0438\u0446\u0430" | |
}, | |
"mlwiki": { | |
"site": "mlwiki", | |
"title": "\u0d2a\u0d3f\u0d31\u0d4d\u0d31\u0d4d\u0d38" | |
}, | |
"mnwiki": { | |
"site": "mnwiki", | |
"title": "\u041f\u0438\u0446\u0446\u0430" | |
}, | |
"mrjwiki": { | |
"site": "mrjwiki", | |
"title": "\u041f\u0438\u0446\u0446\u0430" | |
}, | |
"mrwiki": { | |
"site": "mrwiki", | |
"title": "\u092a\u093f\u091d\u094d\u091d\u093e" | |
}, | |
"mswiki": { | |
"site": "mswiki", | |
"title": "Pizza" | |
}, | |
"napwiki": { | |
"site": "napwiki", | |
"title": "Pizza" | |
}, | |
"nlwiki": { | |
"site": "nlwiki", | |
"title": "Pizza" | |
}, | |
"nnwiki": { | |
"site": "nnwiki", | |
"title": "Pizza" | |
}, | |
"nowiki": { | |
"site": "nowiki", | |
"title": "Pizza" | |
}, | |
"nrmwiki": { | |
"site": "nrmwiki", | |
"title": "Pizza" | |
}, | |
"ocwiki": { | |
"site": "ocwiki", | |
"title": "Pizza" | |
}, | |
"pawiki": { | |
"site": "pawiki", | |
"title": "\u0a2a\u0a3f\u0a1c\u0a3c\u0a3e" | |
}, | |
"plwiki": { | |
"site": "plwiki", | |
"title": "Pizza" | |
}, | |
"pnbwiki": { | |
"site": "pnbwiki", | |
"title": "\u067e\u06cc\u0632\u0627" | |
}, | |
"pntwiki": { | |
"site": "pntwiki", | |
"title": "\u03a0\u03af\u03c4\u03c3\u03b1" | |
}, | |
"ptwiki": { | |
"site": "ptwiki", | |
"title": "Pizza" | |
}, | |
"rowiki": { | |
"site": "rowiki", | |
"title": "Pizza" | |
}, | |
"ruwiki": { | |
"site": "ruwiki", | |
"title": "\u041f\u0438\u0446\u0446\u0430" | |
}, | |
"sahwiki": { | |
"site": "sahwiki", | |
"title": "\u041f\u0438\u0446\u0446\u0430" | |
}, | |
"scnwiki": { | |
"site": "scnwiki", | |
"title": "Pizza" | |
}, | |
"simplewiki": { | |
"site": "simplewiki", | |
"title": "Pizza" | |
}, | |
"skwiki": { | |
"site": "skwiki", | |
"title": "Pizza" | |
}, | |
"slwiki": { | |
"site": "slwiki", | |
"title": "Pica" | |
}, | |
"srwiki": { | |
"site": "srwiki", | |
"title": "\u041f\u0438\u0446\u0430" | |
}, | |
"svwiki": { | |
"site": "svwiki", | |
"title": "Pizza" | |
}, | |
"szlwiki": { | |
"site": "szlwiki", | |
"title": "Pizza" | |
}, | |
"tawiki": { | |
"site": "tawiki", | |
"title": "\u0baa\u0bc0\u0ba4\u0bcd\u0b9a\u0bbe" | |
}, | |
"thwiki": { | |
"site": "thwiki", | |
"title": "\u0e1e\u0e34\u0e0b\u0e0b\u0e48\u0e32" | |
}, | |
"trwiki": { | |
"site": "trwiki", | |
"title": "Pizza" | |
}, | |
"ukwiki": { | |
"site": "ukwiki", | |
"title": "\u041f\u0456\u0446\u0430" | |
}, | |
"vepwiki": { | |
"site": "vepwiki", | |
"title": "Picc" | |
}, | |
"viwiki": { | |
"site": "viwiki", | |
"title": "Pizza" | |
}, | |
"yiwiki": { | |
"site": "yiwiki", | |
"title": "\u05e4\u05d9\u05e6\u05d0" | |
}, | |
"zhwiki": { | |
"site": "zhwiki", | |
"title": "\u6bd4\u8428\u997c" | |
} | |
}, | |
"title": "Q177", | |
"type": "item" | |
} | |
}, | |
"success": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment