Wikidata/Development/Phase 2 JSON

From Meta, a Wikimedia project coordination wiki
This is an archived version of this page, as edited by Denny (talk | contribs) at 16:26, 14 September 2012 (Created page with "// This is a draft for how Phase 2 JSON could look like. You can copy and paste it into a JS engine to play around with it. Category:Wikidata berlin = { "id": 109, "si..."). It may differ significantly from the current version.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

// This is a draft for how Phase 2 JSON could look like. You can copy and paste it into a JS engine to play around with it.

berlin = {

"id": 109, "sitelinks": { "enwiki": { "site": "enwiki", "title": "Berlin" }, "dewiki": { "site": "dewiki", "title": "Berlin" } }, "labels": { "en": { "language": "en", "value": "Berlin" } }, "descriptions": { "en": { "language": "en", "value": "The capital of Germany" } }, "aliases": { "en": [{ "language": "en", "value": "City of Berlin" }, { "language": "en", "value": "B\u00e4rlin" }] }, "statements" : { "p17" : { // location "c28" : { // guid "value" : 123, // Germany "type" : "item", "references" : { "r21" : { "p32" : 1234, // property: book, item: CIA world factbook "p23" : { // page "value" : 171, "accuracy" : { "type" : "number",0, "type" : "number" } }, "r38" : { "p32" : 372 // property: book, item: some geography textbook } } } }, "p2313" : { // population "c33" : { "value" : { "value" : "3500000", "type" : "number", "accuracy" : { "value" : "100000" } }, "p1234" : { // qualifier "as of" "value" : "2011", "type" : "time", "accuracy" : { "value" : "1", "unit" : "year" } } } } } }

// Berlin -> location -> Germany // Berlin population 3,5 Mio as of 2011