Wikidata

WMUK 2015

Basics

Identifiers!

https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q7999857
{
    "entities": {
        "Q7999857": {
            "type": "item",
            "id": "Q7999857",
            "labels": {
                "en": {
                    "language": "en",
                    "value": "Wikimedia UK"
                },
                "ru": {
                    "language": "ru",
                    "value": "\u0412\u0438\u043a\u0438\u043c\u0435\u0434\u0438\u0430 UK"
                },
                "de": {
                    "language": "de",
                    "value": "Wikimedia UK"
                },
                "es": {
                    "language": "es",
                    "value": "Wikimedia UK"
                },
                "en-ca": {
                    "language": "en-ca",
                    "value": "Wikimedia UK"
                },
                "en-gb": {
                    "language": "en-gb",
                    "value": "Wikimedia UK"
                },
                "it": {
                    "language": "it",
                    "value": "Wikimedia UK"
                },
                "fr": {
                    "language": "fr",
                    "value": "Wikimedia UK"
                },
                "nl": {
                    "language": "nl",
                    "value": "Wikimedia UK"
                },
                "cy": {
                    "language": "cy",
                    "value": "Wicimedia DU"
                },
                "ja": {
                    "language": "ja",
                    "value": "\u30a6\u30a3\u30ad\u30e1\u30c7\u30a3\u30a2\u30fb\u30a4\u30ae\u30ea\u30b9"
                },
                "mk": {
                    "language": "mk",
                    "value": "\u0412\u0438\u043a\u0438\u043c\u0435\u0434\u0438\u0458\u0430 \u041e\u0431\u0435\u0434\u0438\u043d\u0435\u0442\u043e \u041a\u0440\u0430\u043b\u0441\u0442\u0432\u043e"
                },
                "el": {
                    "language": "el",
                    "value": "Wikimedia UK"
                }
            }
        }
    },
    "success": 1
}
{
    "entities": {
        "Q7999857": {
            "type": "item",
            "id": "Q7999857",
            "descriptions": {
                "en": {
                    "language": "en",
                    "value": "UK charity and chapter of the Wikimedia movement"
                },
                "it": {
                    "language": "it",
                    "value": "capitolo di Wikimedia del Regno Unito"
                },
                "en-gb": {
                    "language": "en-gb",
                    "value": "UK charity and chapter of the Wikimedia movement"
                },
                "mk": {
                    "language": "mk",
                    "value": "\u0412\u0438\u043a\u0438\u043c\u0435\u0434\u0438\u0438\u043d \u043e\u0433\u0440\u0430\u043d\u043e\u043a \u0432\u043e \u0411\u0440\u0438\u0442\u0430\u043d\u0438\u0458\u0430"
                }
            }
        }
    },
    "success": 1
}
{
    "entities": {
        "Q7999857": {
            "type": "item",
            "id": "Q7999857",
            "aliases": {
                "en": [
                    {
                        "language": "en",
                        "value": "WMUK"
                    },
                    {
                        "language": "en",
                        "value": "Wiki UK Limited"
                    }
                ],
                "ru": [
                    {
                        "language": "ru",
                        "value": "\u0412\u0438\u043a\u0438\u043c\u0435\u0434\u0438\u0430 \u0412\u0435\u043b\u0438\u043a\u043e\u0431\u0440\u0438\u0442\u0430\u043d\u0438\u044f"
                    },
                    {
                        "language": "ru",
                        "value": "Wikimedia UK"
                    }
                ],
                "mk": [
                    {
                        "language": "mk",
                        "value": "\u0412\u0438\u043a\u0438\u043c\u0435\u0434\u0438\u0458\u0430 \u0411\u0440\u0438\u0442\u0430\u043d\u0438\u043a\u0430"
                    },
                    {
                        "language": "mk",
                        "value": "Wikimedia UK"
                    },
                    {
                        "language": "mk",
                        "value": "WMUK"
                    }
                ],
                "el": [
                    {
                        "language": "el",
                        "value": "Wikimedia \u0397\u0392"
                    },
                    {
                        "language": "el",
                        "value": "Wikimedia \u0397\u03bd\u03c9\u03bc\u03ad\u03bd\u03bf \u0392\u03b1\u03c3\u03af\u03bb\u03b5\u03b9\u03bf"
                    },
                    {
                        "language": "el",
                        "value": "WMUK"
                    },
                    {
                        "language": "el",
                        "value": "WM UK"
                    }
                ]
            }
        }
    },
    "success": 1
}
{
    "entities": {
        "Q7999857": {
            "type": "item",
            "id": "Q7999857",
            "claims": {
                "P373": [
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P373",
                            "datavalue": {
                                "value": "Wikimedia UK",
                                "type": "string"
                            },
                            "datatype": "string"
                        },
                        "type": "statement",
                        "id": "q7999857$9EAEC093-5D9C-4B8D-AC23-2431EB3705AB",
                        "rank": "normal",
                        "references": [
                            {
                                "hash": "7eb64cf9621d34c54fd4bd040ed4b61a88c4a1a0",
                                "snaks": {
                                    "P143": [
                                        {
                                            "snaktype": "value",
                                            "property": "P143",
                                            "datavalue": {
                                                "value": {
                                                    "entity-type": "item",
                                                    "numeric-id": 328
                                                },
                                                "type": "wikibase-entityid"
                                            },
                                            "datatype": "wikibase-item"
                                        }
                                    ]
                                },
                                "snaks-order": [
                                    "P143"
                                ]
                            }
                        ]
                    }
                ],
                "P31": [
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P31",
                            "datavalue": {
                                "value": {
                                    "entity-type": "item",
                                    "numeric-id": 15924535
                                },
                                "type": "wikibase-entityid"
                            },
                            "datatype": "wikibase-item"
                        },
                        "type": "statement",
                        "id": "q7999857$6386493f-45c7-431d-3e70-1c0af79fe684",
                        "rank": "normal"
                    },
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P31",
                            "datavalue": {
                                "value": {
                                    "entity-type": "item",
                                    "numeric-id": 163740
                                },
                                "type": "wikibase-entityid"
                            },
                            "datatype": "wikibase-item"
                        },
                        "type": "statement",
                        "id": "q7999857$ad8ae1ed-41d7-5b0f-185b-67d8d46f6c45",
                        "rank": "normal",
                        "references": [
                            {
                                "hash": "7eb64cf9621d34c54fd4bd040ed4b61a88c4a1a0",
                                "snaks": {
                                    "P143": [
                                        {
                                            "snaktype": "value",
                                            "property": "P143",
                                            "datavalue": {
                                                "value": {
                                                    "entity-type": "item",
                                                    "numeric-id": 328
                                                },
                                                "type": "wikibase-entityid"
                                            },
                                            "datatype": "wikibase-item"
                                        }
                                    ]
                                },
                                "snaks-order": [
                                    "P143"
                                ]
                            }
                        ]
                    },
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P31",
                            "datavalue": {
                                "value": {
                                    "entity-type": "item",
                                    "numeric-id": 708676
                                },
                                "type": "wikibase-entityid"
                            },
                            "datatype": "wikibase-item"
                        },
                        "type": "statement",
                        "id": "q7999857$6810adfb-4976-a039-46d2-cab8437da723",
                        "rank": "normal",
                        "references": [
                            {
                                "hash": "7eb64cf9621d34c54fd4bd040ed4b61a88c4a1a0",
                                "snaks": {
                                    "P143": [
                                        {
                                            "snaktype": "value",
                                            "property": "P143",
                                            "datavalue": {
                                                "value": {
                                                    "entity-type": "item",
                                                    "numeric-id": 328
                                                },
                                                "type": "wikibase-entityid"
                                            },
                                            "datatype": "wikibase-item"
                                        }
                                    ]
                                },
                                "snaks-order": [
                                    "P143"
                                ]
                            }
                        ]
                    }
                ],
                "P17": [
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P17",
                            "datavalue": {
                                "value": {
                                    "entity-type": "item",
                                    "numeric-id": 145
                                },
                                "type": "wikibase-entityid"
                            },
                            "datatype": "wikibase-item"
                        },
                        "type": "statement",
                        "id": "q7999857$fedeb14a-47f7-ab20-c938-7ed81ebbdd80",
                        "rank": "normal"
                    }
                ],
                "P159": [
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P159",
                            "datavalue": {
                                "value": {
                                    "entity-type": "item",
                                    "numeric-id": 23306
                                },
                                "type": "wikibase-entityid"
                            },
                            "datatype": "wikibase-item"
                        },
                        "type": "statement",
                        "id": "q7999857$7709a2a8-4a55-159b-84b0-7908ff363911",
                        "rank": "normal"
                    }
                ],
                "P131": [
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P131",
                            "datavalue": {
                                "value": {
                                    "entity-type": "item",
                                    "numeric-id": 205679
                                },
                                "type": "wikibase-entityid"
                            },
                            "datatype": "wikibase-item"
                        },
                        "type": "statement",
                        "id": "q7999857$b41893b4-49b9-7e68-aef6-28757b36d423",
                        "rank": "normal"
                    }
                ],
                "P625": [
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P625",
                            "datavalue": {
                                "value": {
                                    "latitude": 51.524483,
                                    "longitude": -0.084477,
                                    "altitude": null,
                                    "precision": 1.0e-6,
                                    "globe": "http://www.wikidata.org/entity/Q2"
                                },
                                "type": "globecoordinate"
                            },
                            "datatype": "globe-coordinate"
                        },
                        "type": "statement",
                        "id": "q7999857$c8e0502f-49e8-d123-9b2f-60c33f17d4f1",
                        "rank": "normal",
                        "references": [
                            {
                                "hash": "7eb64cf9621d34c54fd4bd040ed4b61a88c4a1a0",
                                "snaks": {
                                    "P143": [
                                        {
                                            "snaktype": "value",
                                            "property": "P143",
                                            "datavalue": {
                                                "value": {
                                                    "entity-type": "item",
                                                    "numeric-id": 328
                                                },
                                                "type": "wikibase-entityid"
                                            },
                                            "datatype": "wikibase-item"
                                        }
                                    ]
                                },
                                "snaks-order": [
                                    "P143"
                                ]
                            }
                        ]
                    }
                ],
                "P154": [
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P154",
                            "datavalue": {
                                "value": "Wikimedia UK logo.svg",
                                "type": "string"
                            },
                            "datatype": "commonsMedia"
                        },
                        "type": "statement",
                        "id": "q7999857$303aeee0-4736-5f7c-9c06-74bf6e6df2dc",
                        "rank": "normal",
                        "references": [
                            {
                                "hash": "7eb64cf9621d34c54fd4bd040ed4b61a88c4a1a0",
                                "snaks": {
                                    "P143": [
                                        {
                                            "snaktype": "value",
                                            "property": "P143",
                                            "datavalue": {
                                                "value": {
                                                    "entity-type": "item",
                                                    "numeric-id": 328
                                                },
                                                "type": "wikibase-entityid"
                                            },
                                            "datatype": "wikibase-item"
                                        }
                                    ]
                                },
                                "snaks-order": [
                                    "P143"
                                ]
                            }
                        ]
                    }
                ],
                "P571": [
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P571",
                            "datavalue": {
                                "value": {
                                    "time": "+2009-01-12T00:00:00Z",
                                    "timezone": 0,
                                    "before": 0,
                                    "after": 0,
                                    "precision": 11,
                                    "calendarmodel": "http://www.wikidata.org/entity/Q1985727"
                                },
                                "type": "time"
                            },
                            "datatype": "time"
                        },
                        "type": "statement",
                        "id": "Q7999857$fe7b74ac-4165-ff92-4f64-6ac57379ee0b",
                        "rank": "normal"
                    }
                ],
                "P856": [
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P856",
                            "datavalue": {
                                "value": "http://www.wikimedia.org.uk",
                                "type": "string"
                            },
                            "datatype": "url"
                        },
                        "type": "statement",
                        "id": "Q7999857$48E48B45-FBFD-493C-9545-7158D76B181B",
                        "rank": "normal",
                        "references": [
                            {
                                "hash": "7eb64cf9621d34c54fd4bd040ed4b61a88c4a1a0",
                                "snaks": {
                                    "P143": [
                                        {
                                            "snaktype": "value",
                                            "property": "P143",
                                            "datavalue": {
                                                "value": {
                                                    "entity-type": "item",
                                                    "numeric-id": 328
                                                },
                                                "type": "wikibase-entityid"
                                            },
                                            "datatype": "wikibase-item"
                                        }
                                    ]
                                },
                                "snaks-order": [
                                    "P143"
                                ]
                            }
                        ]
                    }
                ],
                "P355": [
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P355",
                            "datavalue": {
                                "value": {
                                    "entity-type": "item",
                                    "numeric-id": 15839268
                                },
                                "type": "wikibase-entityid"
                            },
                            "datatype": "wikibase-item"
                        },
                        "type": "statement",
                        "id": "Q7999857$533ef178-4dda-3ce0-6eaf-8a487c242c32",
                        "rank": "normal"
                    }
                ],
                "P18": [
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P18",
                            "datavalue": {
                                "value": "Development House, London.jpg",
                                "type": "string"
                            },
                            "datatype": "commonsMedia"
                        },
                        "type": "statement",
                        "id": "Q7999857$57BCA783-D3FC-40B8-8B5D-C7206C84F9CD",
                        "rank": "normal"
                    }
                ],
                "P1128": [
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P1128",
                            "datavalue": {
                                "value": {
                                    "amount": "+5",
                                    "unit": "1",
                                    "upperBound": "+5",
                                    "lowerBound": "+5"
                                },
                                "type": "quantity"
                            },
                            "datatype": "quantity"
                        },
                        "type": "statement",
                        "qualifiers": {
                            "P585": [
                                {
                                    "snaktype": "value",
                                    "property": "P585",
                                    "hash": "755fe50598c18d12178f43fd5226fcb0fd2357e8",
                                    "datavalue": {
                                        "value": {
                                            "time": "+2014-01-01T00:00:00Z",
                                            "timezone": 0,
                                            "before": 0,
                                            "after": 0,
                                            "precision": 9,
                                            "calendarmodel": "http://www.wikidata.org/entity/Q1985727"
                                        },
                                        "type": "time"
                                    },
                                    "datatype": "time"
                                }
                            ]
                        },
                        "qualifiers-order": [
                            "P585"
                        ],
                        "id": "Q7999857$b5b5ac71-4095-472f-2295-2fee46214020",
                        "rank": "normal"
                    }
                ],
                "P2002": [
                    {
                        "mainsnak": {
                            "snaktype": "value",
                            "property": "P2002",
                            "datavalue": {
                                "value": "wikimediauk",
                                "type": "string"
                            },
                            "datatype": "string"
                        },
                        "type": "statement",
                        "id": "Q7999857$15912B48-DEE6-4E67-8F45-CEEEE4B5B6A2",
                        "rank": "normal",
                        "references": [
                            {
                                "hash": "7eb64cf9621d34c54fd4bd040ed4b61a88c4a1a0",
                                "snaks": {
                                    "P143": [
                                        {
                                            "snaktype": "value",
                                            "property": "P143",
                                            "datavalue": {
                                                "value": {
                                                    "entity-type": "item",
                                                    "numeric-id": 328
                                                },
                                                "type": "wikibase-entityid"
                                            },
                                            "datatype": "wikibase-item"
                                        }
                                    ]
                                },
                                "snaks-order": [
                                    "P143"
                                ]
                            }
                        ]
                    }
                ]
            }
        }
    },
    "success": 1
}

Datatypes are used in claims to represent data

  • Item

  • Property

  • Commons media

  • String

  • Time

  • Globe coordinate

  • URL

  • Quantity

  • Monolingual text

See wikidata.org/wiki/Special:ListDatatypes

 

Apis

wbeditentity
wbsetlabel
wbsetdescription
wbsetaliases
wbsetsitelink
wbsetclaim
wblinktitles
wbmergeitems
wbcreateredirect
wbcreateclaim
wbremoveclaims
wbsetclaimvalue
wbsetreference
wbremovereferences

wbremovequalifiers
wbsetqualifier

 

 

wbgetentities
wbsearchentities
wbgetclaims
wbformatvalue
wbparsevalue
wbavailablebadges
wbsgetsuggestions

Why?

Infoboxes!

Slides to come!

Tools!!!

Histropedia - Timelines (Artists)

histropedia.com/timeline/5bnj79bjyr

 

GeneaWiki

Wiki Atlas

Wiki Atlas

State

of

Wikidata

Wikidata

 

Giving more people more access to more knowledge

 

GeneaWiki (2014) Q76 Barack Obama tools.wmflabs.org/magnus-toolserver/ts2/geneawiki

 

GeneaWiki (2015) Q76 Barack Obama tools.wmflabs.org/magnus-toolserver/ts2/geneawiki

 

July 2014 July 2015
items 15,685,743 18,308,081
statements 40,087,646 ​65,993,797
statements with a proper references 12.75% 17.69%
statements with a bad references 43.62% 30.51%

Total usage by aspect

Total 153,598,782
Sitelinks 40,516,701
Labels 59,723,473
Title 18,265,815
Other 9,197,670
Any 25,895,123

Constraints

API

Queries

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/> 
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX v: <http://www.wikidata.org/prop/statement/>
SELECT ?p ?pLabel ?w ?wLabel WHERE {
   wd:Q30 p:P6/v:P6 ?p .
   ?p wdt:P26 ?w .
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en" .
  }
 }
PREFIX entity: <http://www.wikidata.org/entity/>
PREFIX t:      <http://www.wikidata.org/prop/direct/>
PREFIX rdfs:   <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd:    <http://www.w3.org/2001/XMLSchema#>

SELECT ?entity (year(?date) as ?year) WHERE {
  ?entityS t:P569 ?date .
  ?entityS rdfs:label ?entity .

  FILTER (datatype(?date) = xsd:dateTime)
  FILTER (month(?date) = month(now()))
  FILTER (day(?date) = day(now()))
} LIMIT 100

Still to come!

UI Redesign

Improved internal consistency checks

Consistency checks against 3rd parties

Article Placeholder

Better handling of identifiers

Commons

Wiktionary

Wikidata @ WMUK 2015

By Addshore

Wikidata @ WMUK 2015

  • 1,631