Difference between revisions of "PrF UG meta metaslot create"

From Protege Wiki
Jump to: navigation, search
(Automated import of articles)
 
Line 5: Line 5:
  
 
<b>Note:</b> <i>Before you create and use metaclasses,
 
<b>Note:</b> <i>Before you create and use metaclasses,
you should be confident with the basic {{#var:PrF}} interface and be comfortable designing a project,
+
you should be confident with the basic {{#var:PrF}} interface
and creating and modifying classes,
+
and be comfortable designing a project,
slots,
+
and creating and modifying classes, slots, forms and instances.</i>
forms and instances.</i>
 
  
Creating a slot metaclass is almost identical to creating a
+
Creating a slot metaclass is almost identical
[[PrF_UG_meta_metaclass_create|metaclass]].
+
to creating a [[PrF_UG_meta_metaclass_create|metaclass]].
 
You simply have to make sure the class is created subordinate to <b>:SLOT</b>.
 
You simply have to make sure the class is created subordinate to <b>:SLOT</b>.
Usually,
+
Usually, it is desirable to create a slot metaclass subordinate to <b>:STANDARD-SLOT</b>,
it is desirable to create a slot metaclass subordinate to <b>:STANDARD-SLOT</b>,
+
so that the slot created using the slot metaclass
so that the slot created using the slot metaclass will have the various properties defined by <b>:STANDARD-SLOT</b>.
+
will have the various properties defined by <b>:STANDARD-SLOT</b>.
  
 
To create a new slot metaclass:
 
To create a new slot metaclass:
Line 23: Line 22:
 
     Click on the desired superclass in the Class Browser.
 
     Click on the desired superclass in the Class Browser.
 
     The selected superclass must itself be a slot metaclass.
 
     The selected superclass must itself be a slot metaclass.
     As mentioned above,
+
     As mentioned above, this will be true only if the selected superclass
    this will be true only if the selected superclass is subordinate to <b>:SLOT</b>.
+
    is subordinate to <b>:SLOT</b>.
   
 
    </p><p> <div>[[Image:PrF_UG_meta_metaslot_hierarchy.png|metaclasses_metaslot_hierarchy]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_meta_metaslot_hierarchy.png|
 +
          metaclasses_metaslot_hierarchy]]</div>
  
 
   <li><p>
 
   <li><p>
 
     Click the <b>Create Class</b>
 
     Click the <b>Create Class</b>
     [[Image:PrF_UG_classes_class.create.gif|classes_class.create]]
+
     [[Image:PrF_UG_classes_class.create.gif|classes_class.create]] button
     button at the right of the Class Browser,
+
     at the right of the Class Browser,
     or click the right mouse button and select <b>Create subclass</b> from the
+
     or click the right mouse button and select <b>Create subclass</b>
    [[PrF_UG_classes_class_menu|Class Menu]].
+
    from the [[PrF_UG_classes_class_menu|Class Menu]].
 
     The new class will be added under the highlighted class.
 
     The new class will be added under the highlighted class.
 
     It will inherit the properties of the selected metaclass.
 
     It will inherit the properties of the selected metaclass.
   
 
    </p><p> <div>[[Image:PrF_UG_meta_metaslot_new.png|metaclasses_metaslot_new]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_meta_metaslot_new.png|
 +
          metaclasses_metaslot_new]]</div>
  
 
   <li><p>
 
   <li><p>
     Use the
+
     Use the [[PrF_UG_classes_class_editor|Class Editor]]
    [[PrF_UG_classes_class_editor|Class Editor]]
+
     to name the slot metaclass, create constraints,
     to name the slot metaclass,
 
    create constraints,
 
 
     and create and edit template slots.
 
     and create and edit template slots.
     For example,
+
     For example, click the <b>Create Slot</b>
    click the <b>Create Slot</b>
+
     [[Image:PrF_UG_slots_slot.create.gif|slots_slot.create]] button
     [[Image:PrF_UG_slots_slot.create.gif|slots_slot.create]]
+
     at the right of the Template Slots pane to create a new slot.
     button at the right of the Template Slots pane to create a new slot.
+
     This slot will show up as an entry field
     This slot will show up as an entry field in the
+
    in the [[PrF_UG_slots_slot_editor|Slot Editor]]
    [[PrF_UG_slots_slot_editor|Slot Editor]]
 
 
     for any slot that uses the slot metaclass.
 
     for any slot that uses the slot metaclass.
 
     </p>
 
     </p>

Revision as of 11:59, October 16, 2008

Creating 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

Note: Before you create and use metaclasses, you should be confident with the basic Protege-Frames interface and be comfortable designing a project, and creating and modifying classes, slots, forms and instances.

Creating a slot metaclass is almost identical to creating a metaclass. You simply have to make sure the class is created subordinate to :SLOT. Usually, it is desirable to create a slot metaclass subordinate to :STANDARD-SLOT, so that the slot created using the slot metaclass will have the various properties defined by :STANDARD-SLOT.

To create a new slot metaclass:

  1. Click on the desired superclass in the Class Browser. The selected superclass must itself be a slot metaclass. As mentioned above, this will be true only if the selected superclass is subordinate to :SLOT.

    metaclasses_metaslot_hierarchy
  2. Click the Create Class classes_class.create button at the right of the Class Browser, or click the right mouse button and select Create subclass from the Class Menu. The new class will be added under the highlighted class. It will inherit the properties of the selected metaclass.

    metaclasses_metaslot_new
  3. Use the Class Editor to name the slot metaclass, create constraints, and create and edit template slots. For example, click the Create Slot slots_slot.create button at the right of the Template Slots pane to create a new slot. This slot will show up as an entry field in the Slot Editor for any slot that uses the slot metaclass.