Difference between revisions of "PrF UG meta create subslot use meta"

From Protege Wiki
Jump to: navigation, search
(Automated import of articles)
 
Line 9: Line 9:
 
the slot is given the attributes specified by the selected slot metaclass.
 
the slot is given the attributes specified by the selected slot metaclass.
  
If you create a top-level slot,
+
If you create a top-level slot, you must first create the slot,
you must first create the slot,
+
and then [[PrF_UG_meta_change_metaslot|change its slot metaclass]].
and then
 
[[PrF_UG_meta_change_metaslot|change its slot metaclass]].
 
  
 
To create a subslot using a non-standard slot metaclass:
 
To create a subslot using a non-standard slot metaclass:
Line 18: Line 16:
 
<ol class='a'>
 
<ol class='a'>
 
   <li><p>
 
   <li><p>
     In the
+
     In the [[PrF_UG_slots_slots_tab|Slots Tab]],
    [[PrF_UG_slots_slots_tab|Slots Tab]],
 
 
     find the slot that you want as the superslot of the new slot.
 
     find the slot that you want as the superslot of the new slot.
   
 
    </p><p> <div>[[Image:PrF_UG_meta_slot_selected.png|metaclasses_slot_selected]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_meta_slot_selected.png|
 +
          metaclasses_slot_selected]]</div>
  
 
   <li><p>
 
   <li><p>
 
     Click the right mouse button and select "<b>Create subslot using slot metaclass...</b>".
 
     Click the right mouse button and select "<b>Create subslot using slot metaclass...</b>".
   
 
    </p><p> <div>[[Image:PrF_UG_meta_create_subclass_meta.png|metaclasses_create_subclass_meta]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_meta_create_subclass_meta.png|
 +
          metaclasses_create_subclass_meta]]</div>
  
 
   <li><p>
 
   <li><p>
 
     A dialog box displays the slot metaclasses.
 
     A dialog box displays the slot metaclasses.
   
 
    </p><p> <div>[[Image:PrF_UG_meta_slot_metaclass_dialog.png|metaclasses_slot_metaclass_dialog]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_meta_slot_metaclass_dialog.png|
 +
          metaclasses_slot_metaclass_dialog]]</div>
  
 
   <li><p>
 
   <li><p>
Line 41: Line 38:
 
     The new slot will be added under the highlighted slot.
 
     The new slot will be added under the highlighted slot.
 
     It will have the Slot Editor determined by the selected slot metaclass.
 
     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,
+
     The name of the slot metaclass you used
 +
    is displayed at the top of the Slot Editor,
 
     immediately after the name of the slot.
 
     immediately after the name of the slot.
     The Slot Editor may include additional widgets that are not part of <b>:STANDARD-SLOT</b>.
+
     The Slot Editor may include additional widgets
 +
    that are not part of <b>:STANDARD-SLOT</b>.
 
     </p>
 
     </p>
  
 
   <li><p>
 
   <li><p>
     Use the
+
     Use the [[PrF_UG_slots_slot_editor|Slot Editor]]
    [[PrF_UG_slots_slot_editor|Slot Editor]]
+
     to name the slot, choose its value type, and set its other properties.
     to name the slot,
 
    choose its value type,
 
    and set its other properties.
 
 
     </p>
 
     </p>
 
</ol>
 
</ol>

Revision as of 11:36, October 16, 2008

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.

    metaclasses_slot_selected
  2. Click the right mouse button and select "Create subslot using slot metaclass...".

    metaclasses_create_subclass_meta
  3. A dialog box displays the slot metaclasses.

    metaclasses_slot_metaclass_dialog
  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.