Posts mit dem Label MediaWiki werden angezeigt. Alle Posts anzeigen
Posts mit dem Label MediaWiki werden angezeigt. Alle Posts anzeigen

Sonntag, 30. Oktober 2016

Semantic MediaWiki - Making multiday calender events

I just introduced a calendar in my semantic media wiki using the calendar format of the Semantic Result Formats extension. This format works quite straight forward: You define which attribute (must be of date format) shall be used, and each entry having it is displayed in the calender with its page name as a link. You can also restrict the selection by category.
{{#ask:
[[date::>{{CURRENTYEAR}}-1-1]]
|?date
|format=calendar
|limit=400
|sort=date
|order=ascending,ascending
}}

Shows all entries with a date attribute since the first of this year (max 400 entries).

The only problem is that the calendar can just handle single day events. It does not anticipate an end date. In the web I found no easy solution, so I came up with my own. I used the recurring event functionality.

Freitag, 7. September 2012

MediaWiki - Further plugins which make MediaWiki better

In Semantic Media Wiki - making MediaWiki better I already briefly explained how the Semantic Media Wiki and the Semantic Forms plugin make the MediaWiki software better. But since I am using these, I also come over some other plugins which are also pretty great:
  • Parser Function - Introduces logic by provideing functions like if, ifexists, switch, etc.  
  • Arrays - Creates an additional set of parser functions that operate on arrays
  • Semantic Result Formats - Additional formats to present results of semantic queries, like timeline, chart or tag cloud.
  • Data Transfer - Enables you to create pages out of csv or xml files by filling the data into templates. Great way to import big amounts of data.

Mittwoch, 5. September 2012

Semantic Media Wiki - making MediaWiki better

The Semantic Media Wiki is a plugin for the widly known Media Wiki software. In combination with the Semantic Forms plugin it brings the Media Wiki software to a complete new level. Here I just want to give a short overview why I think it is great. For a more detailed view, look at the extension pages.

The use case my department has is to collect information about data sets and create lists of them depending on their attributes.

Media Wiki

In a normal Media Wiki templates would be used to get a similar amount of information for each data set, and subsequently the lists would be manually updated after each creation or update of a data set.
This means a lot of work to keep the lists up to date and also the outfilling of a template is not very user friendly.

Media Wiki with Semantic Media Wiki and Semantic Forms plugin

With the Semantic Forms plugin forms can be created which assist the user to fill in a template. Therefore first in the template a predicate is defined for each variable, which has a type (Text, String, Number, Boolean, Page, Date, ...) and can be restricted to a given set of value (Enum).
Based on the type of the type of the predicate, the input field in the form is pictured (Textbox, Date Picker, Checkbox, DropDown, ...).
By saving the form, the data is stored in the template whereby the values of the variables is connected to the prediactes.
These predicates now can be used in queries to create dynamic lists.

In the use case of my department the form/template has fields for the owner of the data (Page, Textfield), the license it is under (String, Textfield) and of which type it is (String Enum, DropDown). Out of two different lists are created. Once the one for all data sets, to give an overview, and once a set of lists which contain all data sets of one type.
The owner field is also reused in other categories like project and presentations. This enables us to present all things (data sets, projects and presentations) a person is the owner of on it's user page, by making the query part of a user page template.

As you see you not only can create lists for one category, but by reusing prediactes easily merge data out of the whole wiki. Just like in the semantic web... :)

For examples of the use of this plugins please see the http://hackerspaces.org wiki or the CCC Camp Wiki.