Extension:SemanticQueryComposer
|
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:
- If You build an identification key wiki for plants, for snalls and for car types:
- Collect your pages in Plants, Snalls and Cartypes category
- Collect properties of plants in Category:Properties of plants as subcategory of Category:Plants
- Collect properties of snalls in Category:Properties of snalls as subcategory of Category:Snalls
- 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.