Extension:FrequentPatternTagCloud

Description
This extension provides a tag cloud based on Semantic MediaWiki properties. For every single property the extension shows similar property values computed by a frequent pattern mining algorithm. In addition these frequent patterns are integrated in the search functionality.

For further information also see the document below the topic References.

Download and Installation
Please download the zip file and extract it into your MediaWiki's extensions directory. To install the extension, add the following to LocalSettings.php:

Also, you have to enable Ajax via adding the following to LocalSettings.php:

To initialise the necessary database tables you can run "php maintanance/update.php" in your Media Wiki directory via command line. Another possibility is to log in to your wiki as a user with admin status, call the page Special:SMWAdmin and choose "initialise or upgrade your wiki".

Configuration Parameters
In order to configure your Frequent Pattern Tag Cloud, you may add the following to LocalSettings.php (the shown values represent the default values):

Settings concerning tag cloud appearance (all values are in pixels):

Settings concerning frequent pattern algorithm (all values are between 0 and 1): Image:Fptc_freqpatterntagcloud.jpg

The association rules (like X -> Y) are computed based on the two parameters. The support is the number of occurrences of the complete itemset (X and Y) normalized by the number of all pages. With this parameter you define a threshold above which an itemset is called frequent. The confidence describes the part of transactions that contain a searched itemset (here: Y), in the subset of all transactions that contain the defined itemset (here: X).

Setting concerning native wiki search:

For further information about the Configuration Parameters also see the document below the topic References.

In order to change the appearance of the search or the tag cloud, there are several CSS stylesheets in the following directory:

Usage
For the usage of the extension Frequent Pattern Tag Cloud the Extension Semantic MediaWiki is required. After installing the extensions you can go to page Special:FrequentPatternTagCloud. Then you may enter a desired property‘s name of the wiki in the edit field and click the button “Submit”. After that you will get the tag cloud containing all existing values for the given property. When the property is not available in the wiki you can choose one of the suggested properties below the edit field. To search for similar property values just open the context menu (right click) of a tag in the tag cloud or use the standard search function on the left side. By typing the corresponding property value the extension will suggest similar values for the identified property. For maintenance reasons it is necessary to rerun the frequent pattern algorithm via Special:FrequentPatternTagCloudMaintenance.

Version
Version 1.0 works with Media Wiki 1.15 (or higher) and Semantic MediaWiki 1.5.6. If you encounter any problems, please leave a comment on the dicussion page (or feel free to create your own fix).