Difference between revisions of "Template:SetTermInheritanceHierarchy"

From Encyclopedia of Scientonomy
Jump to navigation Jump to search
Line 10: Line 10:
 
* <code><nowiki>Parent Topic</nowiki></code> - The list of immediate parent terms (no grandparents).
 
* <code><nowiki>Parent Topic</nowiki></code> - The list of immediate parent terms (no grandparents).
 
* <code><nowiki>Child Topic</nowiki></code> - The list of immediate child terms (no grandchildren).
 
* <code><nowiki>Child Topic</nowiki></code> - The list of immediate child terms (no grandchildren).
 +
 +
'''NOTE:''' this inheritance hierarchy is created irrespective of the agent who accepts the class as a subtype/supertype of another class. Such an agent-agnostic hierarchy is required when adding new theories that select their answer from a list of subtypes, or adding inherited questions.
 +
 +
'''IMPORTANT:''' It is not to be conflated with the actual agent-relative ontology of the term, stored in subobjects of <code><nowiki>SubObjectCategory=Topic Current Ontology</nowiki></code> with <code><nowiki>Ontological Question Type={Supertypes, Supertypes}</nowiki></code>.
  
  

Revision as of 18:46, 12 January 2023

This template is used to save the currently accepted associations claims (aggregation, composition, etc.) of the given class.

The template creates a hierarchy of classes for the given term by adding the following lists for ease of access:

  • Subsumed items - A list that includes the page itself as well as all of its subclasses, the subclasses of subclasses etc. This is similar to MediWiki's notion of Category where a category includes all of its subcategories as well as itself.
  • Descendant items - A list that includes the page's subclasses, the subclasses of subclasses etc., but not itself. This data can be used to check if a given class is a subtype (sub, subtype, etc.) of another class but not itself.
  • Ancestor items - A list that includes the page's superclasses, the superclasses of superclasses etc., but not itself.

In addition, it creates the following multivalued properties (lists):

  • Parent Topic - The list of immediate parent terms (no grandparents).
  • Child Topic - The list of immediate child terms (no grandchildren).

NOTE: this inheritance hierarchy is created irrespective of the agent who accepts the class as a subtype/supertype of another class. Such an agent-agnostic hierarchy is required when adding new theories that select their answer from a list of subtypes, or adding inherited questions.

IMPORTANT: It is not to be conflated with the actual agent-relative ontology of the term, stored in subobjects of SubObjectCategory=Topic Current Ontology with Ontological Question Type={Supertypes, Supertypes}.


NOTE: As any "set" template, it doesn't print anything on the page, but merely sets the appropriate values.

Parameters:

  • |term= - the term page.