PrF UG meta default metaslot

From Protege Wiki
Jump to: navigation, search

Setting the Default 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

If you have multiple slot metaclasses in your project, Protege-Frames allows you to choose which slot metaclass you want to use as the default for every new slot you create.

Setting the Default Slot Metaclass

To set a slot metaclass as the default:

  1. Click on the slot metaclass you want to use in the Class Browser. This must be a class that is subordinate to :SLOT.

    Class Browser, "Sample Metaslot" selected
  2. Click the right mouse button and select Set as default metaslot from the Class menu. This option is available only when a slot metaclass is selected.

    "Set as Default Metaslot" selected in menu
  3. The selected slot metaclass will become the default. Now, unless you choose otherwise, every new slot you create will use the new default slot metaclass as its template and inherit the properties defined by the default.

Unsetting the Default Slot Metaclass

It is also possible to remove the default property from a slot metaclass. If you do this, the new slot will be created with no fields in the Slot Editor. To unset the default metaslot:

  1. Select the default slot metaclass in the Class Browser.

  2. Click the right mouse button and select Unset as default slot metaclass.

    "Unset as Default Metaslot" selected in menu