Difference between revisions of "PrF UG meta change metaslot"

From Protege Wiki
Jump to: navigation, search
Line 22: Line 22:
 
<ol class='a'>
 
<ol class='a'>
 
   <li><p>
 
   <li><p>
     In the [[PrF_UG_slots_slots_tab|Slots Tab]],
+
     In the [[PrF_UG_slots_slots_tab|Slots tab]],
 
     click on the slot that you want to change.
 
     click on the slot that you want to change.
 
     </p>
 
     </p>
 
     <div>[[Image:PrF_UG_meta_slot_selected.png|frame|none|
 
     <div>[[Image:PrF_UG_meta_slot_selected.png|frame|none|
           Slots Tab, "billing_charts" selected]]</div>
+
           Slots tab, "billing_charts" selected]]</div>
  
 
   <li><p>
 
   <li><p>

Revision as of 10:56, October 29, 2008

Changing the Slot Metaclass of a Slot


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, then for any existing slot, you can change the slot metaclass you use for that slot. This gives the slot and the Slot Editor the attributes defined by the new slot metaclass. Subslots that you create subordinate to the slot will also use the new slot metaclass. However, any existing subslots will continue to use their previously assigned slot metaclass unless you specifically change it.

Unlike metaclasses, you cannot create a slot using the slot metaclass. If you want to have a slot that uses a specfic slot metaclass, you must first create the slot, then change the slot metaclass.

To change the slot metaclass of an existing slot:

  1. In the Slots tab, click on the slot that you want to change.

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

    "Change slot metaclass..." selected
  3. A dialog box displays the slot metaclasses. Note that if the slot currently uses a non-standard slot metaclass, you can revert to :STANDARD-SLOT.

    Select Slot Metaclass dialog, "Sample Metaslot" selected
  4. Select the slot metaclass that has the properties that you want and click OK. The highlighted slot will now have the Slot Editor and properties determined by the selected slot metaclass.