Extension:PhpTags SMW

Category:Unmaintained extensions#PhpTags%20SMW Category:Extensions without an imageCategory:Extensions without a compatibility policyCategory:GPL licensed extensions
MediaWiki extensions manual
PhpTags SMW
Release status: unmaintainedCategory:Unmaintained extensions
Implementation Data extractionCategory:Data extraction extensions
Description Implements features for working with Semantic MediaWiki data
Author(s) Pavel Astakhov, Joel K. Pettersson
Latest version 1.5.1 (2015-05-28)
MediaWiki >= 1.34.0
PHP 5.3+
Database changes No
License GNU General Public License 2.0 or later
Download Category:Extensions in Wikimedia version control
Translate the PhpTags SMW extension if it is available at translatewiki.net
Category:All extensions

The PhpTags SMW extension implements features for working with Semantic MediaWiki data.

Note Note: All the features of this extension are available only through the use of the PhpTags extension.

It provides the following classes:

  • ExtArrays (A wrapper for the optionally installed Arrays extension. It can be used to get data from #ask queries that use the array format.)
  • ExtSQI (A wrapper for the optionally installed Semantic Query Interface extension. Under this name, the \SQI\SemanticQueryInterface class can be used to query the wiki's data.)
  • WSemanticData (For adding semantic property values, records, and subobjects to the current page.)
  • WSemanticProperty (Methods for looking up property names, IDs, and normalizing property strings for display.)
  • WSemanticStats (Access to the same statistics that SMW adds to the Special:Statistics page.)

Installation

Note Note: This extension requires PhpTags (v5.1.0+) and Semantic MediaWiki (2.1+) to be installed first.

  • Download and move the extracted PhpTagsSMW folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PhpTagsSMW
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'PhpTagsSMW' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Optional

The following extensions may be useful along with PhpTags SMW.

Less common uses

Without Semantic MediaWiki installed, it is still possible to use the support provided for the Arrays extension (in isolation nothing else will work!).

Category:PhpTags extensions Category:Unmaintained Semantic MediaWiki extensions
Category:All extensions Category:Data extraction extensions Category:Extensions in Wikimedia version control Category:Extensions without a compatibility policy Category:Extensions without an image Category:GPL licensed extensions Category:ParserFirstCallInit extensions Category:PhpTagsRuntimeFirstInit extensions Category:PhpTags extensions Category:Unmaintained Semantic MediaWiki extensions Category:Unmaintained extensions