The repository contains the Semantic Hierarchy extension for Semantic MediaWiki. The extension provides a plugin for capturing Text Annotations of wiki articles.
- MediaWiki must be installed
- Semantic MediaWiki must be installed
- Download and extract the repository
- Place the extracted folder in your extension folder of MediaWiki
- Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'SemanticHierarchy' );
- To users running MediaWiki 1.24 or earlier: Add the folloding at the bottom of your LocalSettings.php:
require_once "$IP/extensions/SemanticHierarchy/SemanticHierarchy.php";
- Go to Special Pages and Click on Semantic Hierarchy under the Group Semantic MediaWiki
- Remark: Only Users with sysops rights are allowed to access the page.
- Mark and right click on the corresponding Category/Property, for which you would like to create a subcategory/subproperty. A Context Menu appears.
- Click on Add.
- A Form appears, which allows for adding a new Node Name.
- Click on Submit
- The new node appears in the tree and a corresponding wiki page is create
- Drag & Drop the Category/Property to the desired position in order to change the Hierarchy of Properties/Categories.
- Drag & Drop of a Category to the Property tree and vice versa is not possible.
- Mark and right click on the corresponding Category/Property, which you would like to delete. A Context Menu appears.
- Click on Delete.
- The corresponding Wiki Page will be deleted and the node dissapears in the tree.
The Semantic Hierarchy is currently under the MIT License.
For the Semantic Hierarchy is the JS Library zTree used.