Extension:SemanticQueryComposer

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
Semantic Query Composer
Release status: unmaintained
Implementation User interface, Special page
Description Provides a semantic query builder
Author(s) Attila Novák (Pipi69etalk)
Database changes No
License GPL
Download here
README
Translate the SemanticQueryComposer extension if it is available at translatewiki.net
Check usage and version matrix.

The SemanticQueryComposer extension implement a special page to compose a Semantic MediaWiki compatible {{#ask:..}} query. It allows to build identification keys for plants, animals or any other kind of things. You should order your SMW objects and properties like the following:

  1. If You build an identification key wiki for plants, for snalls and for car types:
    1. Collect your pages in Plants, Snalls and Cartypes category
    2. Collect properties of plants in Category:Properties of plants as subcategory of Category:Plants
    3. Collect properties of snalls in Category:Properties of snalls as subcategory of Category:Snalls
    4. Collect properties of plants in Category:Properties of cartypes as subcategory of Category:Cartypes

Usage[edit]

Call {{Special:SemanticQueryComposer/Properties_of_plants}} if you want to allow a query builder interface to identifying plants by added properties and propertyvalues.

Grouping properties[edit]

{{Special:SemanticQueryComposer/Properties_of_plants}} will create a link to a form (Special:SemanticQueryComposer) that collects Your properties as HTML select elements with all added property values as options. You can group these elements as wiki sections if You create subcategories in Your Category:Properties of plants category. E.g.:

  • Properties of flower
  • Properties of leaf
  • etc.

Installation[edit]

To install this extension, add the following line to Your LocalSettings.php:

require_once( "$IP/extensions/SemanticQueryComposer/SpecialSemanticQueryComposer.php" );

Configuration parameters[edit]

If You want to hide the error and warning messages use

$wgSQCDisplayErrorMessages = false;

in Your LocalSettings.php.

Dependencies[edit]

You should use the following extensions:

Similar solution[edit]

You can use Special:RunQuery provided by Semantic Forms.

Bugs, issues, questions and requests[edit]

User_talk:Pipi69e