Extension:SemanticUpdateOnPurge

Description
SemanticUpdateOnPurge will update all semantic datas created with Semantic MediaWiki when purging a page. This extension is motivated by bug 22751 which actually isn't considered a real bug. Anyway, with this extension "dynamic attributes" are more comfortable and efficient to use if you have to use them. However, as you can see in the bug report, it is not recommended or supported by the SMW developers to use inline query results in attributes.

Another scenario where this extension can be useful is if you use Extension:External Data. If your external data sources change their values you can simply update the semantics on the MW article by pressing purge.

Download instructions
You can take the code from /Source code. Create a new directory SemanticUpdateOnPurge in your MediaWiki's extension directory and put the code in a new file SemanticUpdateOnPurge.php there.

Installation
To install this extension, add the following to LocalSettings.php (near the bottom) and create the code file as described on the subpage. This line should be included behind Semantic-MediaWiki inclusion!

Compatibility
The extension works with Semantic-MediaWiki 1.6.x (and probably 1.6). There were reports that the functionality was broken somewhere around the 1.5.x branch of SMW, though, it has been reported working with some older SMW versions than 1.6 as well (current version should at least work with some old SMW versions).

Change Log
the latest SemanticUpdateOnPurge extension has been tested on MediaWiki version 1.15 and 1.16. Probably it will run on earlier versions of MediaWiki as well.

 History: 


 * September 28, 2011 -- Version 0.3.1.1: Minor update letting the extension appear as semantic extension on Special:Version.
 * September 23, 2011 -- Version 0.3.1: PHP notice will not appear anymore when purging pages without semantic data.
 * September 20, 2011 -- Version 0.3: Internal extension structure redesign, works with SMW 1.6.1 (probably 1.6 as well).
 * February 14, 2011 -- Version 0.2.1: Minor code changes, added VERSION constant into ExtSemanticUpdateOnPurge class.
 * March 10, 2010 -- Version 0.2: Redesign of how the update happens. Doesn't use an update job any longer.
 * March 9, 2010 -- Version 0.1: First release of SemanticUpdateOnPurge.