Introduction to MediaWiki and Semantic MediaWiki

From semantic-mediawiki.org
< SMWCon Fall 2013
SMWCon Fall 2013Introduction to MediaWiki and Semantic MediaWiki
SMWCon Fall 2013
Introduction to (Semantic) MediaWiki
Talk details
Description: This tutorial is for the absolute beginners. It introduces the (Semantic) MediaWiki platform for collaborative content management, starting from basic page creation and climbing the complexity ladder to advanced semantic annotations and queries.
Speaker(s): Michael Erdmann
Slides: see here
Type: Tutorial
Audience: Everyone
Event start: 2013/10/28 09:00:00 AM
Event finish: 2013/10/28 12:00:00 PM
Length: 180 minutes
Video: not available
Keywords: MediaWiki, Semantic MediaWiki
Give feedback

Since this tutorial aims at teaching you something, please bring your own laptop in order to follow the lesson hands-on and to really experience collaborative data authoring first-hand. The first session will be more slide-heavy and the second session will be more DIY.

Agenda[edit]

Session 1[edit]

  • MediaWiki
    • Architecture
    • Wiki pages
    • Links
    • Wiki markup
    • Namespaces
    • Templates and transclusion
    • Magic words and parser functions and parser tags
  • Hands-on: Let's create some wiki pages!
  • MediaWiki deficits and how SMW overcomes them
    • Making data explicit
    • From many manual lists to queries to the data

Session 2[edit]

  • SMW basics (20min)
    • Knowledge graph
    • Names links/Properties
    • Special pages
    • SMW mark up/annotations
    • Annotations via templates
  • Hands-on: Let's create some semantic data!
  • Retrieving Data
    • Queries
    • #ask, AQL syntax and model
    • Query formats
  • Hands-on: Let's retrieve and reuse the data!

Link List[edit]


Sample Queries[edit]

== Queries1 ==
* Michael stays in this hotel: {{#show: Michael Erdmann|?Hotel}}
* {{#ask: [[SMW Expert]]}}
* {{#ask: [[Category:SMWCon Participant]] [[Firstname::~M*]]}}

== Queries2 ==
{{#ask: [[SMWCon Participant]]
|?Firstname
|?Lastname
|?City of residence
|?Country
|format=table
|sort=Lastname
|order=asc
}}

;Age
{{#ask: [[SMWCon Participant]]
|?Age
|format=googlebar
|sort=Age
|order=asc
}}

;Height
{{#ask: [[SMWCon Participant]]
|?Height
|format=googlebar
}}

;Birth dates
{{#ask: [[SMWCon Participant]]
|?Date of birth
|format=timeline
|sort=Date of birth
|order=asc
|timelinebands=DECADE,YEAR
}}

== Query 3 ==
;Query results via templates
{{#ask: [[SMWCon Participant]]
|?Date of birth
|?City of birth
|?Age
|format=ul
|template=PersonListEntry
}}

;Birth places on a map
{{#ask: [[SMWCon Participant]]
|?Place of birth
|?Firstname
|?Lastname
|?Job description
|format=map
|zoom=6
}}