Semantic MediaWiki: Unterschied zwischen den Versionen

aus www.kruedewagen.de, Homepage von Ralf und Judith Krüdewagen (Kruedewagen)
Zur Navigation springen Zur Suche springen
KKeine Bearbeitungszusammenfassung
Zeile 87: Zeile 87:
In this case, you can (temporarily) disable the ''tagcloud'' format in
In this case, you can (temporarily) disable the ''tagcloud'' format in
  ./SemanticResultFormats/SemanticResultFormats.settings.php
  ./SemanticResultFormats/SemanticResultFormats.settings.php
== Examples ==
See [[SandboxGlossary]].

Version vom 27. Juli 2015, 12:01 Uhr

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

Examples

See SandboxGlossary.