Object

From KIproBatt Wiki
(Updated with content from Extension:OpenSemanticLab version 0.0.3)
 
(Updated with content from Extension:OpenSemanticLab version 0.0.3)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#subobject: {{#explode:{{{1}}}|###|0}}
+
<includeonly><!-- print out the identifier for inline declaration -->{{{name|{{{id|}}}}}};<!--
|@category=LabProcessObject
+
create object, identified by name (if specified) or id => e.g. #ObjectName or #220504-sist-0010-mi
|Display title of={{#explode:{{{1}}}|###|0}}
+
-->{{#subobject: {{{name|{{{id|}}}}}}
|HasName={{#explode:{{{1}}}|###|0}}
+
|@category=LabProcess/Object;LabProcessObject<!--
}}{{#set: HasObject={{FULLPAGENAME}}#{{#explode:{{{1}}}|###|0}}}}<!-- Subobject for products
+
-->{{#if: {{{global|}}} |<!--
-->{{#if:{{#explode:{{{1}}}|###|1}}|{{#subobject: {{#replace:{{#replace:{{PAGENAME}}|00-pi|}}|00-pt|}}{{#explode:{{{1}}}|###|1}}  
+
  -->;LabProcessOutput;LabProcess/GlobalObject<!--
|@category=LabProcessOutput|+sep=;
+
-->|}}|+sep=;
|HasId={{#replace:{{#replace:{{PAGENAME}}|00-pi|}}|00-pt|}}{{#explode:{{{1}}}|###|1}}
+
|HasName={{{name|}}}
|HasWikiId={{FULLPAGENAME}}#{{#replace:{{#replace:{{PAGENAME}}|00-pi|}}|00-pt|}}{{#explode:{{{1}}}|###|1}}
+
|HasDisplayName={{{label|}}}
|Display title of={{#replace:{{#replace:{{PAGENAME}}|00-pi|}}|00-pt|}}{{#explode:{{{1}}}|###|1}}
+
|Display title of=<!--
|HasProcessObject={{FULLPAGENAME}}#{{#explode:{{{1}}}|###|0}}
+
-->{{#ifeq:{{NAMESPACE}}|LabObject<!--
|IsInstanceOf={{#if:{{#explode:{{{1}}}|###|2}}|{{#explode:{{{1}}}|###|2}}|
+
  -->|{{#if: {{{global|}}} | {{{id}}} | {{{label|{{{name|}}}}}} }}<!-- use id for global object
{{#ask: [[{{FULLPAGENAME}}]] |?HasOutputType= |mainlabel=- |link=none |format=plain}}}}
+
  -->|{{{label|{{{name|}}}}}}<!-- always use label/name in process templates
}}{{#set: HasOutput={{FULLPAGENAME}}#{{#replace:{{#replace:{{PAGENAME}}|00-pi|}}|00-pt|}}{{#explode:{{{1}}}|###|1}}}}
+
-->}}
|}}</includeonly>
+
|HasId={{{id|}}}
 +
|HasWikiId={{FULLPAGENAME}}#{{{name|{{{id|}}}}}}
 +
<!-- |IsInstanceOf=Term:Process/Object/Global;-->
 +
|{{#ifeq:{{NAMESPACE}}|LabObject|IsInstanceOf|IsA}}=<!--process type->abstract object, process instance->object instance
 +
-->{{#if: {{{global|}}} | <!--
 +
  -->{{#if:{{{type|}}} | {{{type}}} | {{#ask: [[{{FULLPAGENAME}}]] |?HasOutputType= |mainlabel=- |link=none |format=plain}} }} <!--
 +
-->|}}|+sep=;
 +
}}<!--
 +
-->{{#set: HasObject={{FULLPAGENAME}}#{{{name|{{{id|}}}}}} }}<!--
 +
--><!-- {{#ifeq:{{NAMESPACE}}|LabObject|  --><!-- only for process instances, not types
 +
  -->{{#if: {{{global|}}}|<!--
 +
    -->{{#set: HasOutput={{FULLPAGENAME}}#{{{name|{{{id|}}}}}} }}<!-- 
 +
  -->}}<!--
 +
--><!-- }} --></includeonly>

Latest revision as of 03:47, 20 May 2022