Extension:SemanticUpdateOnPurge

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual
Crystal Clear action run.png
SemanticUpdateOnPurge

Release status: stable

Implementation Parser extension
Description Updates Semantic MediaWikis attributes on a purged article.
Author(s) Daniel Werner (Danwetalk)
Latest version 0.4.1 (2011-12-05)
MediaWiki Tested on MW 1.17 and SMW 1.6.2
Database changes No
License ISC license
Download
README
CHANGELOG
Hooks used
ArticlePurge

ParserAfterTidy

Translate the SemanticUpdateOnPurge extension if it is available at translatewiki.net

Check usage and version matrix; code metrics

Description[edit | edit source]

SemanticUpdateOnPurge updates all semantic data 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.

Installation[edit | edit source]

  1. Download the files from SVN or download a snapshot (select your version of MediaWiki)
  2. Create a directory SemanticUpdateOnPurge in your $IP/extensions directory
  3. Extract the files to this $IP/extensions/SemanticUpdateOnPurge directory
  4. Add to the end of LocalSettings.php:
    require_once("$IP/extensions/SemanticUpdateOnPurge/SemanticUpdateOnPurge.php");
  5. Installation can now be verified through Special:Version on your wiki

Compatibility[edit | edit source]

The extension works with Semantic-MediaWiki 1.6.x (and probably 1.6). It does not work with MediaWiki 1.18 currently. 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).

Version history[edit | edit source]

The full version history can be found within the RELEASE-NOTES.