Wikibase

The Software behind Wikidata

Presentation by @JeroenDeDauw

bit.ly/wikibase-smwcon

SMWCon Fall 2014, Vienna


Use "page down" and "page up" to navigate

Overview

  • What is Wikibase?
  • The data model
  • Wikibase Repository
  • Wikibase Client
  • The components
  • Questions

What is Wikibase?

The data model

Items


Q64

Fingerprint

Berlin [en]
         Berlijn [nl]
         ...

Capital city of Germany [en]
        Hauptstadt von Deutschland [de]
         ...

"Berlin, Germany", ... [en]
        Stadt Berlin, ... [de]
         ...

Statements

Population ...

Date  of  founding ...

...

Sitelinks

en.wikipedia

Berlin

nl.wikipedia

Berlijn

de.wikivoyage

Berlin

...

Statements


Population

3 500 000

Year             2014
Method    Estimation

[2 sources]

Rank: preferred


Population

3 000 000

Year             2012

[1 source]

Rank: deprecated


  • Property & value (the main snak)
  • Zero or more qualifiers (snaks)
  • Zero or more references (lists of snaks)
  • A rank

Snaks

  • Population is 300 000 ➜ Value snak
  • Date of death does not exist ➜ No value snak
  • Date of death is unknown ➜ Some value snak


All snaks have a Property ID

Properties


P47

Fingerprint

shares border with [en]
         ...

some text to long to fit here [en]
         ...

borders, bordered by ... [en]
         ...

Statements

...

...

Data type

Item


Types such as: Item, String, Quantity, IRI, etc

Wikibase Repository

  • MediaWiki extension
  • Build on top of DataModel and other components
  • Entity base

Wikibase Client

  • MediaWiki extension
  • Build on top of DataModel and other components
  • Embedding data into wiki pages

{{MusicBrainz meta
  |type=artist
  |mbid={{{mbid|{{{id|{{{1|{{#if:
            {{#property:p434}} | {{#property:p434}} |}}
        }}}}}}}}}
  |name={{{name|{{PAGENAME}}}}}
  |wdc-property=p434
  |wdc-category=MusicBrainz artist
}}

                

Local DB access needed

The components

Repository
Client
Query

Applications

DataModel
DataModel Serialization
QueryEngine

Domain specific components

Diff
DataValues
Ask
Serialization

Domain agnostic components

  • Wikibase DataModel
  • Wikibase DataModel Serialization
  • Wikibase QueryEngine
  • Ask (and Ask Serialization)



bit.ly/wikibase-smwcon      wikiba.se

Special:Links

Special:Attribution