Practical Semantic Mediawiki

From ZooidWiki

Jump to: navigation, search

This free hands-on workshop for non technical users emphasizes the "need to know" aspects of Web publishing, wikis, information design and Semantic Mediawiki for flexible, structured, practical re-usable content that fits into the Web of Data. It is not expected participants will become experts in all these topics, but will be able to create a site, and have an overview of what can be done as a basis of progressive learning. The workshop comes with unlimited free support for any open cause (as practical).

I will be guiding this workshop November 26, 2010 at ecto coop in Montreal from 10AM till 1PM.


Contents

[edit] Forward

Practice site: http://practice.zooid.org/wiki/Practice

[edit] Acronyms

[edit] Web publishing

[edit] Difference between Semantic Mediawiki and static web sites, CMS, Mediawiki


[edit] Access models

Access models can be changed over time; avoid starting a wiki with jargon or unsympathetic content.

[edit] Site users



Practice: Create an account and sign in

[edit] Accessibility

Here, accessibility refers to supporting people with vision, keyboard control or cognitive impediments.

[edit] Terms of use

Copyright continuum, from traditional copyright to public domain


[edit] Using Mediawiki

MediaWiki logo without tagline.png

Mediawiki is the underlying software of Wikipedia. It is robust, relatively easy to host (and there are lots of easy to use free and low cost hosting sites), and supported by a large community and supports hundreds of useful extensions.


[edit] Progressive uses


[edit] Creating pages

[edit] Basic markup

A picture of clouds with the sun poking through in case people start to panic

Rather than using a rich text editor, Mediawiki uses a progressively learned set of markup, that's designed to be human-readable, consistent and enforces meaning over appearance. It's not dependant on special programs, and could be carved into a park bench and retain its meaning.

The most important rule is make sure your brackets match.



Practice: Create a new page that's a unique generally recognized world city, include a link to another wiki page and another site.

[edit] Categories

It's a good practice to put every page in at least one category.



Practice: Put your page in a category, put that category in a sub-category

[edit] Images and files

[edit] Page maintenance



Practice: Move your page to a more specific location (Placename, Region), observe Special:RecentChanges


Bonus practice: Add an image, place it on the right and include a caption.

[edit] Templates

[edit] Making pages look good

CSS is the style system of Web pages and can also be used in Mediawiki. Like wiki markup, learning can be progressive.

Placeography | Biofuel Visions



Practice: Add <div class="noticebox" style="float: right">...</div> around some page content, add <br class="cleared" /> after


Bonus practice: Move your div to a reusable template

[edit] Semantic Mediawiki

SMW logo 180px.png

SMW is an extension ecology of MW that allows marking up content for re-use, and creating easier to use forms and views.


[edit] Inline property annotation

Single instances of data can be marked-up using annotations. Annotations look like categories, but they use a double colon. The first part is the relationship type, the second either a value or object page.


Page: Montreal

  • [[A::Place]]
  • [[Population::1906811]]
  • [[Geographic coordinates::45.5088889, -73.5541667]]



Practice: Add a population annotation to your place.

[edit] Queries

"Ask" queries can be added to any page to add links or values from other pages according to parameters, for example, by category, pages that have particular values, etc.

[edit] Classes

Instead of using inline property assignments, semantic classes use templates with value assignments. This allows display formatting and further, consistent semantic interaction according to the template name (which is usually the category).

Practice: Change your page so it's a an Entity.

Page: Montréal

{{Entity
|A=Place
|Population=10000
}}


Classes are composed of:

[edit] Examples

[edit] Use cases of Semantic Mediawiki's classes

[edit] Discourse DB

http://www.discoursedb.org (example) stores discourse relationships (position) for articles on current topics in a structured system.

{{Item
|author=The author or authors of the item; if there is more than one, separate their names with comas
|source=The publication in which it was printed/posted
|date=The date of publication
|url=A URL at which it can be found, if one exists
|quote=A one-to-four-sentence quote from the item, that captures the spirit of the opinion it holds
}}

The template includes a query for positions on this Item.

{{#ask:[[Category:Positions]][[Addresses topic::{{PAGENAME}}]]|format=topiclayout}}, which uses the isfor, isagainst, and ismixed properties.

{{#ask: [[is for::{{PAGENAME}}]]
  |format=template
  |template=ItemQuery
  |sort=Was published on
  |order=descending
  |link=subject
  |? Was written by
  |? Was published by
  |? Was published on
  |? Has URL
  |? Has quote
}}

[edit] Placeography

http://www.placeography.org (example) documents information about places. Its properties show some of the ambiguities when trying to describe things.

{{Infobox Building
|Building name
|Image
|Address
|Neighbourhood
|City-locality
|State-province
|County
|Country
|Year built
|Year razed
|Primary style
|Secondary style
|Additions
|Major Alterations
|Moved from Location
|Historic Function
|Current Function
|Architect or source of design
|Builder
|...
}}

[edit] Asian Canadian Wiki

http://www.asiancanadianwiki.org (example) AAType is used for artists and organizations.

{{AAType
|Image=uploaded picture
|Home page=URL
|Arts=acting, dance, ...
|Type=Person or Group
|Aspects=Developer, Moderator, Prominent
}}

The template includes queries for Events for the current page.


Forms and templates can support multiple properties per field.



Practice: Create your own semantic class using http://practice.zooid.org/wiki/Special:CreateClass with template, properties, form. Add pages to it Include a Place field that has a type of Page

[edit] Views




Practice: Create a facet view for entered places


[edit] Basic inference

Inference is used to derive information from basic details.

{{#ifexpr: {{{Population|}}} > 50000 | [[Category:City]] }}

If the page's population is greater than 50000, then put it in the category of city.

This is a simple form of artificial intelligence, that can be very useful for large sets of pages for arbitrary classifications.

[edit] Future directions


[edit] Mediawiki Widgets

Mediawiki Widgets allow embedding third-party site content for rich media (Youtube, photo sites, etc) and interactive discussions (DISQUS, Twitter, etc) without needing to set it up or host it on your site.

[edit] Converting content or sites

[edit] Hosting

[edit] Getting help

[edit] Reusing this workshop

Material on this page is free to re-use under a Creative Commons by-sa license, please attribute wiki.zooid.org.



RSS

Blikied on Nov 25, 2010

Your comments would be appreciated, click on the Discussion tab or add them here.



Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox