Difference between revisions of "PrF UG meta change meta sub"

From Protege Wiki
Jump to: navigation, search
(Automated import of articles)
 
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
== Changing the Metaclass of Subclasses ==
 
== Changing the Metaclass of Subclasses ==
  
{{PrF_UG_TOC_meta}}<div id='prf_ug'>
+
<noinclude>{{PrF_UG_TOC_meta}}<div id='prf_ug'></noinclude>
  
 
When you change the metaclass of a class,
 
When you change the metaclass of a class,
 
all of its subclasses will retain their previous metaclass.
 
all of its subclasses will retain their previous metaclass.
 
This ensures that you do not propagate changes when you do not want to.
 
This ensures that you do not propagate changes when you do not want to.
However,
+
However, often you will want existing subclasses
often you will want existing subclasses to have the same metaclass as their superclass. {{#var:PrF}} provides an option to quickly change the metaclasses of all the classes subordinate to a given class.
+
to have the same metaclass as their superclass.
 +
{{#var:PrF}} provides an option to quickly change the metaclasses
 +
of all the classes subordinate to a given class.
 
Note that you only have to do this once;
 
Note that you only have to do this once;
by default,
+
by default, new classes use the metaclass of their direct superclass.
new classes use the metaclass of their direct superclass.
 
  
 
To change the metaclass of all existing subclasses of a given class:
 
To change the metaclass of all existing subclasses of a given class:
Line 17: Line 18:
 
<ol class='a'>
 
<ol class='a'>
 
   <li><p>
 
   <li><p>
     In the
+
     In the [[PrF_UG_classes_class_browser|Class Browser]],
    [[PrF_UG_classes_class_browser|Class Browser]],
 
 
     find the class whose subclasses you want to change.
 
     find the class whose subclasses you want to change.
   
 
    </p><p> <div>[[Image:PrF_UG_meta_select_superclass.png|metaclasses_select_superclass]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_meta_select_superclass.png|frame|none|
 +
          Class Browser, "White wine" selected]]</div>
  
 
   <li><p>
 
   <li><p>
 
     Click the right mouse button and select "Change metaclass of subclasses".
 
     Click the right mouse button and select "Change metaclass of subclasses".
     This will change all of the classes below this one to have the same metaclass as the selected class.
+
     This will change all of the classes below this one
   
+
    to have the same metaclass as the selected class.
    </p><p> <div>[[Image:PrF_UG_meta_change_meta_of_subclasses.png|metaclasses_change_meta_of_subclasses]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_meta_change_meta_of_subclasses.png|frame|none|
 +
          "Change Metaclass of Subclasses..." selected]]</div>
  
 
   <li><p>
 
   <li><p>
 
     A dialog box will ask you for verification.
 
     A dialog box will ask you for verification.
 
     Click <b>OK</b> to continue.
 
     Click <b>OK</b> to continue.
   
 
    </p><p> <div>[[Image:PrF_UG_meta_verify_change_metaclass.png|metaclasses_verify_change_metaclass]]</div>
 
 
     </p>
 
     </p>
 +
    <div>[[Image:PrF_UG_meta_verify_change_metaclass.png|frame|none|
 +
          verification dialog]]</div>
  
 
   <li><p>
 
   <li><p>
Line 45: Line 46:
  
  
</div>
+
<noinclude></div></noinclude>

Latest revision as of 18:22, November 13, 2008

Changing the Metaclass of Subclasses


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

When you change the metaclass of a class, all of its subclasses will retain their previous metaclass. This ensures that you do not propagate changes when you do not want to. However, often you will want existing subclasses to have the same metaclass as their superclass. Protege-Frames provides an option to quickly change the metaclasses of all the classes subordinate to a given class. Note that you only have to do this once; by default, new classes use the metaclass of their direct superclass.

To change the metaclass of all existing subclasses of a given class:

  1. In the Class Browser, find the class whose subclasses you want to change.

    Class Browser, "White wine" selected
  2. Click the right mouse button and select "Change metaclass of subclasses". This will change all of the classes below this one to have the same metaclass as the selected class.

    "Change Metaclass of Subclasses..." selected
  3. A dialog box will ask you for verification. Click OK to continue.

    verification dialog
  4. The change will be made: all subordinate classes will now have the metaclass of the selected class.