Skip to content

Instantly share code, notes, and snippets.

@philippgeisler
Last active February 22, 2020 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philippgeisler/31704d8874485aa7f12fcb4236ea915e to your computer and use it in GitHub Desktop.
Save philippgeisler/31704d8874485aa7f12fcb4236ea915e to your computer and use it in GitHub Desktop.
Wikidata presentation (for use with MARP) for HACKS&TOOLS meets #OERcamp
marp footer
true
22.02.2020



Sprachverwirrung

  • Welche Artikel gibt es in welcher Sprache?
  • Informationen in jeder Sprache neu erfassen?

  aktuell: 299 Sprachen (List of Wikipedias)


z.B. Q33390 Cree (Sprache)


Q2013 Wikidata

Wikidata is a free, collaborative, multilingual, secondary database, collecting structured data to provide support for Wikipedia, Wikimedia Commons, the other wikis of the Wikimedia movement, and to anyone in the world.


Aktivität

y-Achse: Anzahl jemals angelegter Wikidata-Items


Fakten, Fakten, Fakten



Q28134515 Q2719638 Tripel

Subjekt/item Prädikat/property Objekt/value
Douglas Adams ist (war… ☹) ein Mensch
Douglas Adams wurde geboren in Cambridge
Douglas Adams war groß 1,96 m
Douglas Adams spielt(e) Instrument Guitarre

  Aussage/statement: Tripel aus Item + Eigenschaft/property + Wert/value Behauptung/claim: Paar aus Eigenschaft/property + Wert/value   (optional mit Qualifikatoren/qualifiers)


Per Anhalter…

Q42 Douglas Adams → Mensch → Welt → Erde → Sonnensystem → Orionarm → Milchstraße → … → Q1 Universum

  Q1076157 Vogone → fiktive humanoide Spezies → fiktives Universum → Schauplatz → Literatur → Literaturgenre → Q482 Poesie


Frag Wikidata


Wikidata Query Service

SELECT ?item ?itemLabel
WHERE {
  ?item wdt:P1441 wd:Q25169 . 
}
item itemLabel
wd:Q264685 Marvin
wd:Q613901 Arthur Dent
wd:Q920194 Pangalactic Gargleblaster

API

https://www.wikidata.org/w/api.php?action=wbgetentities&sites=dewiki&ids=Q42&languages=de&format=jsonfm
{
    "entities": {
        "Q42": {
            "pageid": 138,
            "title": "Q42",
            "lastrevid": 1115741919,
            "modified": "2020-02-15T12:02:43Z",
            "type": "item",
            "id": "Q42",
            "labels": { "de": {
                    "language": "de",
                    "value": "Douglas Adams" } }, // …
            "claims": { "P31": [{  // instance of
                        "mainsnak": { //…
                            "property": "P31", //…
                            "datavalue": {
                                "value": {
                                    "entity-type": "item",
                                    "numeric-id": 5,
                                    "id": "Q5" // human
                                }, //…

const authorQid = 'Q42'
const sparql = `
SELECT ?work ?date WHERE {
  ?work wdt:P50 wd:${authorQid} .
  OPTIONAL {
    ?work wdt:P577 ?date .
  }
}`
const url = wbk.sparqlQuery(sparql)

promiseRequest(url)
.then(wbk.simplify.sparqlResults)
.then(simplifiedResults => { // do awesome stuffs here })

Anschauliche(re)s

(Hay‘s) Tools DirectoryWikimedia Toolforge


Q6822454 Metacrap


  • People lie
  • People are lazy
  • People are stupid
  • Mission: Impossible -- know thyself
  • Schemas aren't neutral
  • Metrics influence results
  • There's more than one way to describe something

  (Artikel von 2001)


In Cree, colours are verbs. The sky isn’t blue, it current is in the state of appearing blue. That idea doesn’t translate into linked open data triples. Linked data imbues western viewpoints. #indigeniusVoices #ACA2018

— Krista Jamieson (@ArchiveThoughts) June 8, 2018

In case you were thinking Cree was simple… by âpihtawikosisân


Q621184 Problem

en.: situation that invites resolution de.: Aufgabe oder Streitfrage, deren Lösung mit Schwierigkeiten verbunden [ist]  

¯\(ツ)


Danke für Eure Aufmerksamkeit!

 

Philipp Geisler philippgeisler.cc philippgeisler@mailbox.org pgeisler@aidminutes.com

Wikipedia/Wikidata: p.geisler Twitter/Insta: @zelpst


Creative Commons Lizenzvertrag
Wikidata: Multilinguale Datenquelle zum Faktenwissen der Wikipedia von Philipp Geisler ist lizenziert unter einer Creative Commons Namensnennung 4.0 International Lizenz.


Live Demo

→ query.wikidata.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment