From SMW+ A Semantic Web Enterprise Wiki

Jump to: navigation, search
Smw plus help icon 32x32.gif Modifying the ontology with the DataExplorer
Created by: Dominika | Status: Final version Icon audience.png For audience: End user, Ontologist

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.

This documentation applies to the latest version. If you are using an earlier version, no other releases.
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


Draft.png
Help out!
You feel that the documentation needs a cleanup or misses information?
Report a quality issueSmw plus help icon 16x16.png

List of issues for this article: [open in bugzilla]

Contents

Modifying categories

Information.png  Note:
Press the keys  Ctrl +  Alt +  Space to activate the auto completion in input fields

Adding a category

  1. Select a category
  2. Click Add category
  3. Enter a name for the new category
    Red background indicates a category with this name already exists
  4. To create a catgory on top level, remove the name in the field Subcategory of:
  5. To create a category that should be a subcategory of more than one category, add the names of the categories as comma-separated list
  6. Click 'Add
Adding a subcategory


Editing category

  1. Select a category
  2. Click Edit category in the toolbar
  3. To rename a category remove the name and add a new one
  4. Click Save
Editing a category

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>

  1. Select a category for example 'Person'
  2. Click Add property to domain: 'Person' in the Property view
  3. Enter a name for the new property
    Red background indicates a property with this name already exists
  4. Tick the checkbox Mandatory this means the new property should always have value(s)
  5. Select a type from the list, see Properties and types for more information
  6. Enter a range, for example 'Person', see Domain and range for more information
  7. Click Create
Editing a category

Modifying properties

Adding a property

  1. Switch to the Property Tree
  2. Select a propery
  3. Click Add property
  4. Enter a name for the new property
    Red background indicates a property with this name already exists
  5. To create a property on top level, remove the name in the field Subcategory of:
  6. To create a property that should be a subproperty of more than one property, add the names of the properties as comma-separated list
  7. Click 'Add
Adding a property

Editing a property

  1. Select a property
  2. Click Edit property in the toolbar
  3. To rename a property remove the name and add a new one
  4. Click Save
Editing a property

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)

  1. 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)
  2. Click Create instance
  3. Enter a name for the new instance, with namespace if required
    Red background indicates a property with this name already exists
  4. Click Create
Creating an instance

Editing instances

  1. Select a category (or a property) or search directly by using the filter input box
  2. Click the instance you wish to modify
  3. Click Edit instance
  4. Rename the instance or change the annotad categories
  5. Click Save
Editing an instance

Comment icon crystal.png

Static facts Derived facts
Facts about Modifying the ontology using the DataExplorer 1.6.0RDF feed
Content titleModifying the ontology with the DataExplorer  +
Creation dateThis property is a special property in this wiki.15 November 2011 15:48:32  +
CreatorThis property is a special property in this wiki.Dominika  +
For audienceEnd user  +, and Ontologist  +
Has StatusFinal version  +
Has overviewOne may use the DataExplorer (formerly known as OntologyBrowser) not only to browse through the data in the wiki but also to modify the ontology.
Has prerequisitesSMW+ 1.6.0  +
Last modified byThis property is a special property in this wiki.Dominika  +
Position in subsection overview3  +
Reviewed byDominika  +
Subsection ofManaging pages 1.6.0  +
Transitive Subsection ofManaging pages 1.6.0  +
This page was last modified on 16 December 2011, at 02:01.This page has been accessed 308 times.
SemanticTreeview close tree