Semantic MediaWiki

aus www.kruedewagen.de, Homepage von Ralf und Judith Krüdewagen (Kruedewagen)
Zur Navigation springen Zur Suche springen

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


Semantic Forms (SF)

See


Setup a form

  1. Create Property: Special:CreateProperty
  2. Create Template: Special:CreateTemplate
  3. Create Form: Special:CreateForm
  4. 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

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:

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.'