Semantic MediaWiki

First steps

IƱaki Garitano

MediaWiki & extensions

  • MediaWiki is the core package written in PHP
  • It is possible to add functionality with extensions
    • Maps
    • Math --> LaTeX formulas
    • Semantic MediaWiki
    • Semantic Forms
    • Semantic Forms Input
    • Semantic Result Formats
    • ...
  • http://cwi.unik.no/index.php?title=Special:Version

SMW Requirements

  • Web server
    • Apache
    • Nginx
    • ...
  • PHP --> language that MediaWiki is written
  • DataBase
    • MySQL
    • SQlite
    • Postgress
    • ...

MW installation

  • In a local machine
    • Windows
      • WAMP (Windows, Apache, MySQL, PHP)
    • Linux
      • LAMP
    • Mac OS
      • MAMP

Environment configuration

  • All PAGES from MW are stored in a DATABASE
  • All MEDIA (images, pdf) are stored in Wiki installation folder.
  • Is IMPORTANT to make some database and media BACKUPS
    • We can use Dropbox
  • Windows
    • Is important not to change the default locations
    • Use symbolic links to point from dropbox folder to default location
    • mklink /prefix link_path file/folder_path
      • Use junction option

MW configuration

  • All config setting are in LocalSettings.php file
    • Permissions
    • Extensions
    • Namespaces
    • ...
  • For whatever needs to be changed go to LocalSettings.php
    • ../default_web_location/smw_folder/LocalSettings.php
    • c:\wamp\www\wiki\LocalSettings.php

MW SpecialPages

MW content organization

SMW Basics

SMW Inline queries

SMW Result formats

Widgets Extension


Semantic MediaWiki quick reference