Wikidata/Development/Phase 2 JSON
< Wikidata | Development
// 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" : { // book "value" : 1234, // CIA world factbook "type" : "item" }, "p23" : { // page "value" : 171, "type" : "number" } }, "r38" : { "p32" : 372 // property: book, item: some geography textbook "type" : "item" } } } }, "p2313" : { // population "c33" : { "value" : { "value" : "3500000", "type" : "number", "accuracy" : { "value" : "100000" } }, "p1234" : { // qualifier "as of" "value" : "2011-01-01T00:00:00", "type" : "time", "accuracy" : { "value" : "1", "unit" : "year" } } } } } }
// Berlin -> location -> Germany // Berlin population 3,5 Mio as of 2011