Changes

Jump to navigation Jump to search
no edit summary
In addition, it creates the following multivalued properties (lists):
* <code><nowiki>Parent TopicClass</nowiki></code> - The list of immediate parent terms (no grandparents).* <code><nowiki>Child TopicClass</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.
-->}}<!-- arraydefine
-->{{#arrayunique:varParentsArray}}<!--
-->{{#arrayprint:varParentsArray||@@@@|{{#set:Parent TopicClass=@@@@}}|}}<!--
--><!--
--><!-- set the children
-->}}<!-- arraydefine
-->{{#arrayunique:varChildrenArray}}<!--
-->{{#arrayprint:varChildrenArray||@@@@|{{#set:Child TopicClass=@@@@}}|}}<!--
--><!--
--><!-- set the inheritance hierarchy
-->{{#set:Subsumes items={{{term|}}}}}<!--
-->{{#arraydefine:varSubsumeArray|{{#ask: [[-Subsumes items::<q>[[Parent TopicClass::{{{term|}}}]]</q>]]|headers=hide|link=none}}|,|}}<!--
-->{{#arrayunique:varSubsumeArray}}<!--
-->{{#arrayprint:varSubsumeArray||@@@@|{{#set:Subsumes items=@@@@|Descendant items=@@@@}}|}}<!--
--><!--
--><!-- have to do it again to include the subsumed elements of the subsumed elements
-->{{#arraydefine:varSubsumeArray|{{#ask: [[-Subsumes items::<q>[[Parent TopicClass::{{{term|}}}]]</q>]]|headers=hide|link=none}}|,|}}<!--
-->{{#arrayunique:varSubsumeArray}}<!--
-->{{#arrayprint:varSubsumeArray||@@@@|{{#set:Subsumes items=@@@@|Descendant items=@@@@}}|}}<!--
--><!--
--><!-- set the inheritance hierarchy
-->{{#arraydefine:varSubsumeArray|{{#ask: [[-Ancestor items::<q>[[Child TopicClass::{{{term|}}}]]</q>]]|headers=hide|link=none}}|,|}}<!--
-->{{#arrayunique:varSubsumeArray}}<!--
-->{{#arrayprint:varSubsumeArray||@@@@|{{#set:Ancestor items=@@@@}}|}}<!--
--><!--
--><!-- have to do it again to include the subsumed elements of the subsumed elements
-->{{#arraydefine:varSubsumeArray|{{#ask: [[-Ancestor items::<q>[[Child TopicClass::{{{term|}}}]]</q>]]|headers=hide|link=none}}|,|}}<!--
-->{{#arrayunique:varSubsumeArray}}<!--
-->{{#arrayprint:varSubsumeArray||@@@@|{{#set:Ancestor items=@@@@}}|}}<!--

Navigation menu