Semantic MediaWiki
Semantic MediaWiki (SMW) is a free extension of MediaWiki that helps to search, organize, tag, browse, evaluate, and share the wiki's content. While traditional wikis contain only texts which computers can neither understand nor evaluate, SMW adds semantic annotations that bring the power of the Semantic Web to the wiki.
There are many of other extensions based on SMW, for example Semantic Forms, which allows users to add, edit and query data using forms.
Semantic MediaWiki (SMW)
See
- http://www.mediawiki.org/wiki/Extension:Semantic_MediaWiki
- http://semantic-mediawiki.org/wiki/Semantic_MediaWiki
- http://semanticweb.org/wiki/Semantic_MediaWiki
- Help
- Wissen verwalten mit Semantic MediaWiki - c't 19/13 S.158
- http://www.pfenz.de/wiki/Hilfe:Semantische_Inline-Abfrage
- http://www.semantic-mediawiki.org/wiki/Semantic_Result_Formats
- http://smw.referata.com
Semantic Forms (SF)
See
- http://www.mediawiki.org/wiki/Extension:Semantic_Forms
- http://smwforum.ontoprise.com/smwforum/index.php/Help:Defining_Semantic_Forms
- Help
- http://familypedia.wikia.com/wiki/Help:Semantic_forms
- http://www.smwplus.net/index.php/Help:Defining_Semantic_Forms
Setup a form
- Create Property: Special:CreateProperty
- Create Template: Special:CreateTemplate
- Create Form: Special:CreateForm
- Create Category: Special:CreateCategory
Wenn man die Attribute in Templates neu setzt, werden automatisch die darauf beruhenden Seiten geändert.
Version
- Works well up to MW 1.24
- 2.7 (21cc5da) 19:34, 10. Jul. 2014
- 2.8 (8239268) 16:29, 18. Sep. 2014
Support and Community
Other Extensions
- Halo
- SMW+ (commercially, combines SMW, SF, Halo, etc.)
Literature
- Linux Magazin 07/09 page 60
Tips and Tricks
show on select
The "div" container must be placed accoring to HTML standard. So, it will not work to just enclose rows of an table (to be hided or shown). You need to create a separate table in this case.
Example: Form:Glossary
{{{for template|Glossary_Definition|multiple|label=Definition of term|add button text=Add a new definition}}} {| class="formtable" {{prettytable}} |- | Approval Time: {{#info: Time format: 24h.}} | {{{field|ApprovedTime|input type=datetime|property=PropGlossaryApprovedTime}}} |} <div id="showApprovedByAndTime"> {| class="formtable" {{prettytable}} |- | Approved By: {{#info:user name in '''lower''' case (first letter can be upper case).}} | {{{field|ApprovedBy|autocomplete on namespace=User|property=PropGlossaryApprovedBy}}} (''autocomplete'') |- | Approval Time: {{#info: Time format: 24h.}} | {{{field|ApprovedTime|input type=datetime|property=PropGlossaryApprovedTime}}} |} </div> {{{end template}}}
Update problems
When an error occurs running SMW_refreshData.php like
PHP Fatal error: Call to a member function isSpecialPage() on a non-object in ./extensions/SemanticResultFormats/formats/tagcloud/TagCloud.php on line 80
it seems to be related to a certain extension, you can try to (temporarily) disable the extension or a feature.
In this case, you can (temporarily) disable the tagcloud format in
./SemanticResultFormats/SemanticResultFormats.settings.php
Rebuild
Wenn der Rebuild stoppt, dann kann es an einer korrupten Seite liegen.
Abhilfe: Die Seite überspringen, in dem man mit nächster Seiten-ID weiter macht:
php extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php -d 50 -v -s 2082
Info / Tooltip
Das Pipe Symbol "|" muss neuerdings HTML-codiert werden mittels |, wenn ein Tooltip in einer Tabelle genutzt wird, z.B. bei Setzen eines Linktextes im Tooltip:
Beispiel: Select the context of the definition. If you want to add more context values, please edit this property
Tooltip | Kommentar |
---|---|
Select the context of the definition. If you want to add more context values, please edit this property | falsche Anzeige |
Select the context of the definition. If you want to add more context values, please edit this property | richtig |
Siehe Hilfe.
Examples in this wiki
Some sample pages and "applications" in this wiki built on Semantic MediaWiki:
- Training Evaluation
- Competences (not fully implemented with Page forms)
- Glossary
- Websites
- Sandbox#Semantic_Queries
- Sandbox/Eventcalendar
Sandbox Wiki
- From mailinglist announcement: This wiki is meant to allow you to easily experiment with Semantic MediaWiki and many of its extensions. The software is updated daily, so you can try out features that are not yet part of a stable release.'