Extension:SemanticQueryComposer

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Semantic Query Composer

Release status: experimental

Implementation User interface, Special page
Description Semantic query builder
Author(s) User:Pipi69e (Pipi69eTalk)
License GPL
Download [1]

Check usage (experimental)

Contents

[edit] What can this extension do?

Allows a special page to compose a Semantic MediaWiki compatible {{#ask:..}} query. This extension 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

[edit] Usage

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

[edit] Grouping properties

{{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.

[edit] Installation

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

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

[edit] Configuration parameters

If You want to hide the error and warning messages use

$wgSQCDisplayErrorMessages = false;

in Your LocalSettings.php.

[edit] Dependecies

You should use the following extensions:

[edit] Similar solution

You can use Special:RunQuery provided by Semantic Forms.

[edit] Bugs, issues, questions and requests

User_talk:Pipi69e

[edit] Further informations

README

Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox