PrF UG meta create subslot use meta

From Protege Wiki

Jump to: navigation, search

Creating a Subslot Using a Slot Metaclass


Protege-Frames User's Guide
Metaclasses
Understanding Metaclasses
Example: Creating and Using a Metaclass
Looking at :STANDARD- CLASS
Creating a Metaclass
Creating a Class Using a Metaclass
Changing the Metaclass of a Class
Changing the Metaclass of Subclasses
Setting the Default Metaclass
Customizing the Class or Slot Editor
Understanding Slot Metaclasses
Creating a Slot Metaclass
Changing the Slot Metaclass of a Slot
Creating a Subslot Using a Slot Metaclass
Changing the Slot Metaclass of Subslots
Setting the Default Slot Metaclass
Glossary, Editing Help

Once you have added one or more slot metaclasses to your project, you can select the slot metaclass you want to use to create a subslot. When you create a subslot using a non-standard slot metaclass, the slot is given the attributes specified by the selected slot metaclass.

If you create a top-level slot, you must first create the slot, and then change its slot metaclass.

To create a subslot using a non-standard slot metaclass:

  1. In the Slots tab, find the slot that you want as the superslot of the new slot.

    Slots tab, "billing_charts" selected
  2. Click the right mouse button and select "Create subslot using slot metaclass...".

    "Create subslot using ..." selected in menu
  3. A dialog box displays the slot metaclasses.

    Select Slot Metaclass dialog, "Sample Metaslot" selected
  4. Select the slot metaclass that you want and click OK. The new slot will be added under the highlighted slot. It will have the Slot Editor determined by the selected slot metaclass. The name of the slot metaclass you used is displayed at the top of the Slot Editor, immediately after the name of the slot. The Slot Editor may include additional widgets that are not part of :STANDARD-SLOT.

  5. Use the Slot Editor to name the slot, choose its value type, and set its other properties.


Personal tools