Difference between revisions of "PrF UG meta metaslot intro"
(Automated import of articles) |
|||
Line 4: | Line 4: | ||
{{PrF_UG_TOC_meta}}<div id='prf_ug'> | {{PrF_UG_TOC_meta}}<div id='prf_ug'> | ||
− | Slot metaclasses are similar to | + | Slot metaclasses are similar |
− | [[PrF_UG_meta_metaclass_intro|metaclasses]], | + | to [[PrF_UG_meta_metaclass_intro|metaclasses]], |
except that they determine the properties of slots instead of classes. | except that they determine the properties of slots instead of classes. | ||
− | Therefore, | + | Therefore, a slot metaclass is a metaclass that can be used as a template |
− | a slot metaclass is a metaclass that can be used as a template to determine the way {{#var:PrF}} constructs a slot. | + | to determine the way {{#var:PrF}} constructs a slot. |
By creating a new slot metaclass, | By creating a new slot metaclass, | ||
− | you can create a different template for selected slots and attach additional information to your slot at the class level. | + | you can create a different template for selected slots |
+ | and attach additional information to your slot at the class level. | ||
Note that slot metaclasses appear at the Classes Tab as the <b>:SLOT</b> hierarchy. | Note that slot metaclasses appear at the Classes Tab as the <b>:SLOT</b> hierarchy. | ||
This is because every slot is an <i>instance</i> of a slot meta <i>class</i>. | This is because every slot is an <i>instance</i> of a slot meta <i>class</i>. | ||
Slots are <i>not</i> values or subslots of a global slot. | Slots are <i>not</i> values or subslots of a global slot. | ||
− | As with metaclasses, | + | As with metaclasses, every subclass of a slot metaclass is also a slot metaclass. |
− | every subclass of a slot metaclass is also a slot metaclass. | ||
− | Similar to metaclasses, | + | Similar to metaclasses, slots are normally created using <b>:STANDARD-SLOT</b>, |
− | slots are normally created using <b>:STANDARD-SLOT</b>, | + | which provides the structure for slot attributes such as name, value type, etc. |
− | which provides the structure for slot attributes such as name, | ||
− | value type, | ||
− | etc. | ||
When you create a new slot metaclass, | When you create a new slot metaclass, | ||
you will most often want to create it subordinate to <b>:STANDARD-SLOT</b>, | you will most often want to create it subordinate to <b>:STANDARD-SLOT</b>, | ||
− | so that any slots created using the slot metaclass will have the various properties defined by <b>:STANDARD-SLOT</b>. | + | so that any slots created using the slot metaclass |
+ | will have the various properties defined by <b>:STANDARD-SLOT</b>. | ||
<div>[[Image:PrF_UG_meta_metaslot_hierarchy.png|metaclasses_metaslot_hierarchy]]</div> | <div>[[Image:PrF_UG_meta_metaslot_hierarchy.png|metaclasses_metaslot_hierarchy]]</div> | ||
</div> | </div> |
Revision as of 11:00, October 16, 2008
Understanding Slot Metaclasses
Slot metaclasses are similar to metaclasses, except that they determine the properties of slots instead of classes. Therefore, a slot metaclass is a metaclass that can be used as a template to determine the way Protege-Frames constructs a slot. By creating a new slot metaclass, you can create a different template for selected slots and attach additional information to your slot at the class level.
Note that slot metaclasses appear at the Classes Tab as the :SLOT hierarchy. This is because every slot is an instance of a slot meta class. Slots are not values or subslots of a global slot. As with metaclasses, every subclass of a slot metaclass is also a slot metaclass.
Similar to metaclasses, slots are normally created using :STANDARD-SLOT, which provides the structure for slot attributes such as name, value type, etc. When you create a new slot metaclass, you will most often want to create it subordinate to :STANDARD-SLOT, so that any slots created using the slot metaclass will have the various properties defined by :STANDARD-SLOT.