Difference between revisions of "PrF UG classes view relations"

From Protege Wiki
Jump to: navigation, search
 
(10 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
== Viewing Class Relations ==
 
== Viewing Class Relations ==
  
{{PrF_UG_TOC_classes}}<div id='prf_ug'>
+
<noinclude>{{PrF_UG_TOC_classes}}<div id='prf_ug'></noinclude>
  
 
If Class_A has a direct slot of type <b>Class</b>
 
If Class_A has a direct slot of type <b>Class</b>
Line 8: Line 8:
 
in the allowed class(es) of the slot,
 
in the allowed class(es) of the slot,
 
we say that Class_B is <i>related</i> to Class_A.
 
we say that Class_B is <i>related</i> to Class_A.
The <b>Relations Menu</b>,
+
The <b>Relations</b> menu,
 
available by clicking on the arrow to the right of the class buttons,
 
available by clicking on the arrow to the right of the class buttons,
 
allows you to choose which relation between classes to show
 
allows you to choose which relation between classes to show
Line 24: Line 24:
 
this means that <b>Employee</b> is related to <b>Editor</b>.
 
this means that <b>Employee</b> is related to <b>Editor</b>.
  
<div>[[Image:PrF_UG_classes_class_relations_editor.png|thumb|600px]]</div>
+
<div>[[Image:PrF_UG_classes_class_relations_editor.png|thumb|600px|none|
 +
      Relations Menu for Editor]]</div>
  
 
The picture below shows the Class Relationship menu
 
The picture below shows the Class Relationship menu
Line 31: Line 32:
 
<b>responsible_for</b> and <b>sections</b>.
 
<b>responsible_for</b> and <b>sections</b>.
  
<div>[[Image:PrF_UG_classes_class_relations_menu.png|classes_class_relations_menu]]</div>
+
<div>[[Image:PrF_UG_classes_class_relations_menu.png|frame|none|
 +
      Class Relationship menu, "Show Relation responsible_for" selected]]</div>
  
 
<b>Note:</b>
 
<b>Note:</b>
Line 37: Line 39:
 
the menu only displays <b>Show Class Hierarchy</b> and <b>Show all Relations</b>.
 
the menu only displays <b>Show Class Hierarchy</b> and <b>Show all Relations</b>.
  
Selecting <b>Show Relations responsible_for</b> changes the Class Hierarchy Window
+
Selecting <b>Show Relations responsible_for</b> changes the Class Hierarchy window
 
to display only the classes that are related to <b>Editor</b>
 
to display only the classes that are related to <b>Editor</b>
 
through the <i>responsible_for</i> slot.
 
through the <i>responsible_for</i> slot.
  
<div>[[Image:PrF_UG_classes_class_relations_browser.png|classes_class_relations_browser]]</div>
+
<div>[[Image:PrF_UG_classes_class_relations_browser.png|frame|none|
 +
      Class Browser, "Editor" selected]]</div>
  
 
=== The Relations Menu ===
 
=== The Relations Menu ===
Line 165: Line 168:
 
It is also possible to view a list of all the frames
 
It is also possible to view a list of all the frames
 
that [[PrF_UG_classes_view_references|reference]] a highlighted class,
 
that [[PrF_UG_classes_view_references|reference]] a highlighted class,
using the References
+
using the References Class
[[Image:PrF_UG_classes_class.view_references.gif|classes_class.view_references]] class button.
+
([[Image:PrF_UG_classes_class.view_references.gif|classes_class.view_references]]) button.
 
See [[PrF_UG_classes_view_references|Viewing References]] for more information.
 
See [[PrF_UG_classes_view_references|Viewing References]] for more information.
  
</div>
+
 
 +
<noinclude></div></noinclude>

Latest revision as of 16:40, November 13, 2008

Viewing Class Relations


Protege-Frames User's Guide
Classes
Classes Tab
Class Browser
Class Buttons
Class Hierarchy Window
Class Icons
Class Menu
Class Search Bar
Superclasses Pane
Class Editor
Constraints
Template Slots Pane
Template Slot Buttons
References Window
Creating a New Class
Creating Multiple Subclasses
Deleting a Class
Displaying the Class Editor
Editing a Class
Editing Template Slots
Finding a Class
Hiding a Class
Replacing a Superclass
Adding a Superclass
Jumping to A Superclass
Removing a Superclass
Viewing Class Relations
Classes & Instances Tab
Viewing References
Glossary, Editing Help

If Class_A has a direct slot of type Class or an Instance that includes Class_B in the allowed class(es) of the slot, we say that Class_B is related to Class_A. The Relations menu, available by clicking on the arrow to the right of the class buttons, allows you to choose which relation between classes to show in the Class Browser. This help topic describes the choices on the Relations menu.

Class Relations icon

Example

For example, the responsible_for slot at the Editor class is a class of type Instance that has Employee as an allowed class; this means that Employee is related to Editor.

Relations Menu for Editor

The picture below shows the Class Relationship menu for the class Editor in the Newspaper example. Editor has two Instance slots, responsible_for and sections.

Class Relationship menu, "Show Relation responsible_for" selected

Note: If the highlighted class does not have any related classes, the menu only displays Show Class Hierarchy and Show all Relations.

Selecting Show Relations responsible_for changes the Class Hierarchy window to display only the classes that are related to Editor through the responsible_for slot.

Class Browser, "Editor" selected

The Relations Menu

Show Class Hierarchy

The default Show Class Hierarchy displays the subclass-superclass hierarchy of your knowledge base. All the classes in the knowledge base appear in the displayed tree. (Some classes may be hidden. You can choose whether or not hidden classes are displayed in the Class Browser by choosing Configure from the Project menu, going to the Display tab, and toggling the Display Hidden Classes option.)

Show All Relations

Show All Relations displays a hierarchy of classes that are related to the selected class via its slots, as follows:

  • The root is the class (Class_A) that was highlighted when Show All Relations was selected.

  • The next level (direct children) consists of any classes (Class_B1, Class_B2, etc.) that are related to Class_A through one or more of its slots.

  • The next level consists of any classes (Class_C1, Class_C2, etc.) that are related to one of the classes on the previous level (Class_B1, Class_B2, etc.), through one of the slots of Class_A. Note the following:

    • A class Class_C1 is shown as a child of the class it is related to.

    • If a class is related to more than one class on the previous level, it is shown everywhere it occurs (multiple superclasses).

    • Only classes related through the slots of Class_A are shown; if Class_X is related to Class_B through a slot that is not attached to Class_A, it will not appear.

  • Subsequent levels continue the tree of classes that are related to the higher classes via the slots of Class_A.

It is possible (and sometimes useful) to have a recursive relation: Class_A appears somewhere subordinate to Class_A on the tree. This can happen, for example, if Class_B is related to Class_A, which in turn is related to Class_B through a different slot. In this case, all the levels are shown from Class_A to Class_A and the second instance is labeled (recursive).

Show Relation slot

Selecting a slot from the menu will show the hierarchy of classes, starting at the selected class, that are related to each other only through the slot selected on the menu. The slot-specific view can be read as "parent-relation-child", where "relation" is the slot selected on the Relations menu. For example, in the responsible_for view, Editor - is responsible for - Employee.

This view is not necessarily a subset of the Show All Relations view. If Show All Relations has recursion, the view restricted to a single slot can be quite different and possibly more extensive. Consider the following situation:

  • Class_A and Class_B both have slot_a and slot_b.

  • Class_B is related to Class_A through slot_a.

  • Class_A is related to Class_B through slot_b.

  • There are a number of additional classes that are related to Class_B through slot_a.

In this case:

  • Show All Relations will display Class_A and Class_B in a two-level recursion; the class relations from slot_a at Class_B are not shown.

  • Show Relation slot_a will show the classes that are related to Class_B through slot_a and any children of those classes.

It is also possible to view a list of all the frames that reference a highlighted class, using the References Class (classes_class.view_references) button. See Viewing References for more information.