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

From Protege Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
 
== Creating a Subslot Using a Slot Metaclass ==
 
== Creating a Subslot Using a Slot Metaclass ==
  
{{PrF_UG_TOC_meta}}<div id='prf_ug'>
+
<noinclude>{{PrF_UG_TOC_meta}}<div id='prf_ug'></noinclude>
  
 
Once you have added one or more slot metaclasses to your project,
 
Once you have added one or more slot metaclasses to your project,
Line 26: Line 26:
 
     </p>
 
     </p>
 
     <div>[[Image:PrF_UG_meta_create_subclass_meta.png|frame|none|
 
     <div>[[Image:PrF_UG_meta_create_subclass_meta.png|frame|none|
           "Create subslot using ..." selected]]</div>
+
           "Create subslot using ..." selected in menu]]</div>
  
 
   <li><p>
 
   <li><p>
Line 52: Line 52:
  
  
</div>
+
<noinclude></div></noinclude>

Latest revision as of 17:24, November 13, 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.

    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.