From SMW+ A Semantic Web Enterprise Wiki
|
One may use the DataExplorer (formerly known as OntologyBrowser) not only to browse through the data in the wiki but also to modify the ontology.
| User manual information | |
|---|---|
Applies to version: Help:SMW+ 1.6.0,
| |
Note: Use the tree-view on the right hand side to navigate in the documentation
| |
Help out!
List of issues for this article: [open in bugzilla] |
Contents |
Modifying categories
Adding a category
- Select a category
- Click Add category
- Enter a name for the new category
- Red background indicates a category with this name already exists
- To create a catgory on top level, remove the name in the field Subcategory of:
- To create a category that should be a subcategory of more than one category, add the names of the categories as comma-separated list
- Click 'Add
Editing category
- Select a category
- Click Edit category in the toolbar
- To rename a category remove the name and add a new one
- Click Save
When the category gets renamed, a redirect from the old to the new name is generated automatically.
Additional note for renaming categories in the DataExplorer
By default Mediawiki doesn't allow the move operation on categories. When a category is renamed, this is a move operation internally. Therefore if you want to rename categories in the DataExplorer a Mediawiki file must be modified to achieve this. Therefor edit the file includes/Namespace.php in your wiki installation. Replace the line:
return !( $index < NS_MAIN || ($index == NS_FILE && !$wgAllowImageMoving) || $index == NS_CATEGORY );
with:
return !( $index < NS_MAIN || ($index == NS_FILE && !$wgAllowImageMoving) );
The location of this content is around line 50ff.
If you have installed the Rich Media extension the changes have been applied already and you don't need to do anything.
Adding a property to domain <selected domain>
- Select a category for example 'Person'
- Click Add property to domain: 'Person' in the Property view
- Enter a name for the new property
- Red background indicates a property with this name already exists
- Tick the checkbox Mandatory this means the new property should always have value(s)
- Select a type from the list, see Properties and types for more information
- Enter a range, for example 'Person', see Domain and range for more information
- Click Create
Modifying properties
Adding a property
- Switch to the Property Tree
- Select a propery
- Click Add property
- Enter a name for the new property
- Red background indicates a property with this name already exists
- To create a property on top level, remove the name in the field Subcategory of:
- To create a property that should be a subproperty of more than one property, add the names of the properties as comma-separated list
- Click 'Add
Editing a property
- Select a property
- Click Edit property in the toolbar
- To rename a property remove the name and add a new one
- Click Save
When the property gets renamed, a redirect from the old to the new name is generated automatically.
Modifying instances
Then select the instance you want to modify from the instance view.
Creating instance (in selected domain)
- Select a category (or a property) or search directly by using the filter input box
- You get a list of all instances belonging to the category (or using the property)
- Click Create instance
- Enter a name for the new instance, with namespace if required
- Red background indicates a property with this name already exists
- Click Create
Editing instances
- Select a category (or a property) or search directly by using the filter input box
- Click the instance you wish to modify
- Click Edit instance
- Rename the instance or change the annotad categories
- Click Save
| Static facts | Derived facts | ||||||||||||||||||||||||||
Facts about Modifying the ontology using the DataExplorer 1.6.0RDF feed
| |||||||||||||||||||||||||||










