.. _section-Creating a New Subclass Creating a New Subclass ~~~~~~~~~~~~~~~~~~~~~~~ After **Hominoid** is created, click to highlight it in the taxonomy window. Then click the **Create new subclass** button in the taxonomy window, as shown in :numref:`figure-KB-Editor-create-new-subclass-button.png`. .. _figure-KB-Editor-create-new-subclass-button.png: .. figure:: ../../../figs/KB-Editor-create-new-subclass-button.png :alt: The **Create new subclass** button for adding a subclass to **Hominoid** The **Create new subclass** button for adding a subclass to **Hominoid** A dialog box pops up asking for the name of the new subclass to be created. A pull-down menu with existing subclass names is available for easy reference, as seen in :numref:`figure-KB-Editor-create-new-subclass-dialog.png`. .. _figure-KB-Editor-create-new-subclass-dialog.png: .. figure:: ../../../figs/KB-Editor-create-new-subclass-dialog.png :alt: **Create new subclass** dialog prompting user for name of new subclass **Create new subclass** dialog prompting user for name of new subclass Click in the Name field of the dialog box to enable the field for edit. Type in Chimp and click **OK**. **Chimp** now appears in the taxonomy tree as a subclass of **Hominoid**. The **Text Editor** also shows that Chimp :: Hominoid [\|\|] is added to family.flr. These can be seen in :numref:`figure-KB-Editor-subclass-saved.png`. .. _figure-KB-Editor-subclass-saved.png: .. figure:: ../../../figs/KB-Editor-subclass-saved.png :alt: **Chimp** created as a subclass of **Hominoid** **Chimp** created as a subclass of **Hominoid** One thing to note is that after adding a class to the KB, removing it may require some manual effort. This is because while the definition of a class can be removed cleanly, its usage may span multiple files. One way to completely remove a class is to make use of the **KB Search** capbility from within the **KB Editor**. To see how this is done, save family.flr to permanently keep the changes made. This can be done by using **File > Save** or by clicking the **Save** button in the main navigation menu, as shown in :numref:`figure-KB-Editor-file-save-button.png`. Once the file is saved, the * in the family.flr tab should disappear. .. _figure-KB-Editor-file-save-button.png: .. figure:: ../../../figs/KB-Editor-file-save-button.png :alt: The **Save** button from the main navigation menu The **Save** button from the main navigation menu Click and highlight class **Hominoid** in the taxonomy window, and select **Find in KB Search** from the right-click menu. This produces a list of all occurrences of **Hominoid** in the KB, as shown in :numref:`figure-KB-Editor-search-list.png`. .. _figure-KB-Editor-search-list.png: .. figure:: ../../../figs/KB-Editor-search-list.png :alt: **Find in KB Search** returns a list of **Hominoid** occurrences in KB **Find in KB Search** returns a list of **Hominoid** occurrences in KB Click and highlight an occurrence in the list. This loads the corresponding .flr file into the **Text Editor** as well as highlighting the occurrence in the file, as shown in :numref:`figure-KB-Editor-highlight-search-item.png`. By clicking each search result in turn, all occurrences of **Hominoid** can be removed manually using the **Text Editor**. .. _figure-KB-Editor-highlight-search-item.png: .. figure:: ../../../figs/KB-Editor-highlight-search-item.png :alt: Click to select a search result loads corresponding .flr file and highlights occurrence in file Click to select a search result loads corresponding .flr file and highlights occurrence in file