Extension:Semantic Hierarchy

Semantic Hierarchy is an extension to Semantic MediaWiki that allows to visualize the structure of the Cateogries and Properties, defined in Semantic MediaWiki, in a tree. In addition, new categories and properties can be added, which leads to the creation of the corresponding wiki pages. The structure of the hierarchy can be changed via drag&drop, which leads to an update of the wiki pages.

Usage

 * 1) Go to Special Page
 * 2) Click on Semantic Hierarchy (under Group Semantic MediaWiki)))
 * 3) The Extensions loads all Cateogries and Properties from your Wiki and arranges it in a Tree structure (This can take, depending on the amount of Categories and Properties, several seconds. Depending on the feedback, we can improve this circumstance. See section Known Issues)

Create new Category/Property
In the following, we will crate a new Category, called Cat as a Subcategory of Mammal. Creating a new Property/Subproperty is the same approach, however in the right Property Tree. Therefore, we will only explain how to create a new Category, because the approach is the same with Properties.


 * 1) Right click on the Category Mammal. A Context Menu appears (see Figure below)
 * 2) Click on add
 * 3) Type into the Input the new Category name Cat (see Figure below)
 * 4) Click on Create
 * 5) The new Category is created an added into the Tree

Rearrange Category/Property

 * Drag&Drop a Category to a new position in order to rearrange the category. The Category will automatically update its hierarchical information (e.g. add new Subcategory information)
 * You cannot drag&drop a category into the property tree or vice versa!

Jump to Category/Property Page

 * Right click on a Category/Property
 * Click on jump
 * A new Window opens with the corresponding wiki page of the selected Category/Property

Delete Category/Property
Deleting Categories and Properties is currently, because of security reasons, now allowed. Because no authetification for this Special Page is provided, every user can enter this Page and delete Categories/Properties by accident. The feature is already included but commented out. If wished, this feature can be added. Otherwise you can also allow this feature by following the following instructions:
 * Open the File: SemanticHierarchy -->includes --> js --> app.js
 * Delete the Comment in row 227 and 246
 * Reload the Page

Known issues

 * Time for Loading Categories/Properties depends on the amount of Categories/Properties in the Wiki.

Future Work

 * Improve GUI
 * Allow to rename Categories/Properties
 * Allow to change type of property

Remarks

 * 2016-12-05: Icons were changed