Difference between revisions of "PrF UG meta default metaslot"

From Protege Wiki
Jump to: navigation, search
(Automated import of articles)
 
Line 4: Line 4:
 
{{PrF_UG_TOC_meta}}<div id='prf_ug'>
 
{{PrF_UG_TOC_meta}}<div id='prf_ug'>
  
If you have multiple slot metaclasses in your project, {{#var:PrF}} allows you to choose which slot metaclass you want to use as the default for every new slot you create.
+
If you have multiple slot metaclasses in your project,
 +
{{#var:PrF}} 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 ===
 
=== Setting the Default Slot Metaclass ===
Line 14: Line 16:
 
     Click on the slot metaclass you want to use in the Class Browser.
 
     Click on the slot metaclass you want to use in the Class Browser.
 
     This must be a class that is subordinate to <b>:SLOT</b>.
 
     This must be a class that is subordinate to <b>:SLOT</b>.
   
 
    </p><p> <div>[[Image:PrF_UG_meta_sample_metaslot.png|metaclasses_sample_metaslot]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_meta_sample_metaslot.png|
 +
          metaclasses_sample_metaslot]]</div>
  
 
   <li><p>
 
   <li><p>
     Click the right mouse button and select <b>Set as default metaslot</b> from the
+
     Click the right mouse button and select <b>Set as default metaslot</b>
    [[PrF_UG_classes_class_menu|Class Menu]].
+
    from the [[PrF_UG_classes_class_menu|Class Menu]].
 
     This option is available only when a slot metaclass is selected.
 
     This option is available only when a slot metaclass is selected.
   
 
    </p><p> <div>[[Image:PrF_UG_meta_default_metaslot.png|metaclasses_default_metaslot]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_meta_default_metaslot.png|
 +
          metaclasses_default_metaslot]]</div>
  
 
   <li><p>
 
   <li><p>
 
     The selected slot metaclass will become the default.
 
     The selected slot metaclass will become the default.
     Now,
+
     Now, unless you choose otherwise,
    unless you choose otherwise,
+
     every new slot you create will use the new default slot metaclass as its template
     every new slot you create will use the new default slot metaclass as its template and inherit the properties defined by the default.
+
    and inherit the properties defined by the default.
 
     </p>
 
     </p>
 
</ol>
 
</ol>
Line 37: Line 39:
  
 
It is also possible to remove the default property from a slot metaclass.
 
It is also possible to remove the default property from a slot metaclass.
If you do this,
+
If you do this, the new slot will be created with no fields in the Slot Editor.
the new slot will be created with no fields in the Slot Editor.
 
 
To unset the default metaslot:
 
To unset the default metaslot:
  
Line 48: Line 49:
 
   <li><p>
 
   <li><p>
 
     Click the right mouse button and select <b>Unset as default slot metaclass</b>.
 
     Click the right mouse button and select <b>Unset as default slot metaclass</b>.
   
 
    </p><p> <div>[[Image:PrF_UG_meta_unset_default_metaslot.png|metaclasses_unset_default_metaslot]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_meta_unset_default_metaslot.png|
 +
          metaclasses_unset_default_metaslot]]</div>
 
</ol>
 
</ol>
  
  
 
</div>
 
</div>

Revision as of 11:48, October 16, 2008

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.

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

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

    metaclasses_unset_default_metaslot