Semantic MediaWiki workshop Jeroen De Dauw, , 0x20 aka Whitespace With typo's since OpenOffice spell-check fails [Citation needed]
Presentation outline ● Introduction to MediaWiki ● What the hell is it anyway? ● Basic wikitext syntax ● Categories ● Templates ● Useful extension ● Introduction to Semantic MediaWiki ●...
Presentation outline ● Introduction to MediaWiki ● What the hell is it anyway? ● Basic wikitext syntax ● Categories ● Templates ● Useful extensions ● Introduction to Semantic MediaWiki ●...
MediaWiki ● Most popular wiki software ● Developed by WikiMedia Foundation ● Open Source, GPL ● PHP + MySQL ● Massively Multilingual ● Runs Wikipedia, Wikia, 0x20 and many more
MediaWiki: Some statistics ● 31k (...) plublic sites and many internal ● 111M pages (26M artciles, 6M images) ● 15M users (45K admins) ● 586M edits
Presentation outline ● Introduction to MediaWiki ● What the hell is it anyway? ● Basic wikitext syntax ● Categories ● Templates ● Useful extensions ● Introduction to Semantic MediaWiki ●...
Basic wikitext syntax ● Formatting Formatting ● Links Links ● Signatures Signatures
Presentation outline ● Introduction to MediaWiki ● What the hell is it anyway? ● Basic wikitext syntax ● Categories ● Templates ● Useful extensions ● Introduction to Semantic MediaWiki ●...
Categories ● Allow the grouping of pages and categories ● Are defined as /Category:CategoryName ● Listed on Special:Categories ● A page can have multiple categories Adding a page to a category: [[Category:CategoryName]]
Presentation outline ● Introduction to MediaWiki ● What the hell is it anyway? ● Basic wikitext syntax ● Categories ● Templates ● Useful extensions ● Introduction to Semantic MediaWiki ●...
Templates ● Pages meant to be transcluded ● Are defined as /Template:TemplateName ● Embedded with {{TemplateName}}
Templates Parameters: ● {{TemplateName|foobar|9342}} ● {{TemplateName|we=foobar|awesome=934 2}}
Templates /Template:TemplateName Whatever is ''{{{0}}}'' and '''awesome''' is {{{1}}} Or Whatever is ''{{{we}}}'' and '''awesome''' is {{{awesome}}}
Presentation outline ● Introduction to MediaWiki ● What the hell is it anyway? ● Basic wikitext syntax ● Categories ● Templates ● Useful extensions ● Introduction to Semantic MediaWiki ●...
Usefull extensions Not the other extensions are not usefull! ● Widgets ● ConfirmEdit ● ParserFunctions ● Awesomeness
Maps Key features ● Parsing and formatting of coordinates ● Geocoding ● Visual display ● Very modular and configurable
Presentation outline ● Introduction to MediaWiki ●... ● Introduction to Semantic MediaWiki ● Concept ● Awesome capabilities ● Defining semantic data structures ● Queering stored data ● Display of queried data ● Useful extensions
Presentation outline ● Introduction to MediaWiki ●... ● Introduction to Semantic MediaWiki ● Concept ● Awesome capabilities ● Defining semantic data structures ● Queering stored data ● Display of queried data ● Useful extensions
What is Semantic MediaWiki? An awesome convergent, real-time, critical-path solution for seamless, customer-facing synergy.
Semantic MediaWiki ● Extension to MediaWiki ● Makes your wiki semantic ● GPL, PHP + MySQL,... ● Lead by 2 German dudes and Karlsruhe institute ● Sponsored by the EU and a bunch of companies ● semantic-mediawiki.org
Presentation outline ● Introduction to MediaWiki ●... ● Introduction to Semantic MediaWiki ● Concept ● Awesome capabilities ● Defining semantic data structures ● Queering stored data ● Display of queried data ● Useful extensions
Semantic MediaWiki capabilities ● Improved data structure ● Auto-generated lists ● Better search and browing ● External reuse ● Inter-language consistency ● Visual display of information
Presentation outline ● Introduction to MediaWiki ●... ● Introduction to Semantic MediaWiki ● Concept ● Awesome capabilities ● Defining semantic data structures ● Queering stored data ● Display of queried data ● Useful extensions
Semantic MediaWiki Defining semantic data Article: Germany Content: The captial of Germany is [[Berlin]] with a population of 3,396,990 people.
Semantic MediaWiki Defining semantic data Article: Germany Content: The captial of Germany is [[Berlin]] with a population of 3,396,990 people. ● [[Berlin]] => [[Has capital::Berlin]] ● 3,396,990 => [[Has population::3,396,990]]
Semantic MediaWiki Defining semantic properties Property Has population ● /Property:Has population ● Type specified with “has type” property: ● [[has type::Number]]
Presentation outline ● Introduction to MediaWiki ●... ● Introduction to Semantic MediaWiki ● Concept ● Awesome capabilities ● Defining semantic data structures ● Queering stored data ● Display of queried data ● Useful extensions
Semantic MediaWiki Semantic search ● Ask function {{#ask: }} ● Special:Ask ● Multiple GUIs provided by extensions
Semantic MediaWiki Semantic search Criteria: Which pages to select [[Category:Actor]] [[born in::Boston]] [[height::180cm]] [[Category:Actor]] [[height::>6 ft]] [[height::<7 ft]] [[born in::Boston]] OR [[born in::New York]] [[Category:Cities]] [[located in.member of::European Union]]
Semantic MediaWiki Semantic search Criteria: Which information should be displayed? ?population ?area#km²
Semantic MediaWiki Semantic search Example: {{ #ask: [[Category:City]] [[located in::Germany]] | ?population | ?area#km² = Size in km² }}
Presentation outline ● Introduction to MediaWiki ●... ● Introduction to Semantic MediaWiki ● Concept ● Awesome capabilities ● Defining semantic data structures ● Queering stored data ● Display of queried data ● Useful extensions
Semantic MediaWiki Result Formats {{ #ask: [[Category:City]] [[located in::Germany]] | ?population | format=ul }}
Semantic MediaWiki Result Formats {{ #ask: [[Category:City]] [[located in::Germany]] | ?population | ?area#km² = Size in km² | ?coordinates | format=map }}
Presentation outline ● Introduction to MediaWiki ●... ● Introduction to Semantic MediaWiki ● Concept ● Awesome capabilities ● Defining semantic data structures ● Queering stored data ● Display of queried data ● Useful extensions
Semantic Forms Key features ● Forms for adding and editing data ● Forms for querieng data ● Autocompletion ● Various GUIs for creating semantic stuff
Semantic Drilldown Adds a page for drilling down through data Filtering on ● Categories ● Semantic properties
Semantic Result Formats Adds extra visualization formats to SMW ● Variouse graphs ● Timelines and calendars Also adds ● Math formats ● Export (icalendar, bibtex, vcard) ● Dynamic browing interface
Semantic Maps Key features ● Semantic coordinate handling ● Coordinate aggregation ● Insertion of coordinates ● Very modular and configurable
Semantic Compound Queries Allows display of multiple query results ● #compound_query