Open main menu

Changes

1,866 bytes added ,  15:17, 21 January 2023
no edit summary
|History=
|Current View=
|Parent Topic= //This will be deprecated. It will be calculated automatically in an agent-relative way following the current inheritance hierarchy of that agent. For now it is allowed as a backdoor so that it can be assigned manually.
|Related Topics= //This will be deprecated. It will be calculated automatically in an agent-relative way following the current inheritance hierarchy of that agent.
|Page Status=
-->Page Status={{{Page Status|Stub}}}|<!--
-->Editor Notes={{{Editor Notes|}}}|<!--
-->Parent Topic={{{Parent Topic|}}}|<!--this allows for a backdoor to assign parent topics manually
-->Authors List={{{Authors List|}}}|<!--
-->}}<!-- set
-->}}<!-- if subject order is given
-->{{#set:Order={{#var: varOrder}}|}}<!--
--><!--
--><!-- set the inherited from and heritable
-->{{#if: {{{Inherited From|}}}<!--
-->{{#arrayunique:varSubsumeArray}}<!--
-->{{#arrayprint:varSubsumeArray||@@@@|{{#set:Subsumes items=@@@@}}|}}<!--
--><!--
--><!--
--><!-- set parent topic
-->{{#if: {{{Inherited From|}}}<!--
-->|<!--
--><!-- Get the properties required to format the title from Inherited From
-->{{#vardefine: varTitleFormula| {{#show: {{{Inherited From|}}}|?Question Title Formula|link=none}} }}<!--
-->{{#vardefine: varPredicate| {{#show: {{{Inherited From|}}}|?Predicate|link=none}} }}<!--
-->{{#vardefine: varOnject| {{#show: {{{Inherited From|}}}|?Object Class|link=none}} }}<!--
--><!--
--><!-- get the inherited topic's subject
-->{{#vardefine: varInheritedSubject| {{#show: {{{Inherited From|}}}|?Subject|link=none}} }}<!--
--><!--
--><!-- Get the list of all the classes that the Subject of the Inherited From subsumes
-->{{#arraydefine: arraySubsumesTerms|{{#ask: [[-Subsumes items::{{#var: varInheritedSubject}}]]|link=none}} | , |unique}}<!--
--><!--
--><!-- Get the list of all the parent classes of the Subject of the question
-->{{#arraydefine: arrayParentTerms|{{GetPropertyValues|object={{{Subject|}}}|property=Parent Class|link=none}} | , |unique}}<!--
--><!--
--><!-- Get the intersection of the two arrays
-->{{#arrayintersect: arrayIntersectTerms|arraySubsumesTerms|arrayParentTerms|}}<!--
--><!--
--><!-- For each item in the intersection array, format the question page title according to the formula taken from Inherited From
-->{{#arrayprint: arrayIntersectTerms||varTerm<!--
-->|<!--
-->{{#vardefine: varTitle| {{DecodeTitleFormula|formula={{#var: varTitleFormula}}|subject=varTerm|predicate={{#var: varPredicate}}|object={{#var: varOnject}}|}} }}<!--
--><!--
-->{{#set: Parent Topic=varTitle}}<!--
--><!--
-->}}<!-- arrayprint
--><!--
--><!--
-->}}<!-- if inherited from
--><!--
--><!--