<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet type="text/xsl" href="xsl-for-template-specification.xsl"?>
<TemplateSpecification xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="xml-schema-for-template-specification.xsd">
	<TemplateName>FunctionalMappingOf2ExpressReals</TemplateName>
	<defaultRdsId>R70563E38752B44D3BB50336A9CEEFEED</defaultRdsId>
	<Status>UPDATED MAR2023</Status>
	<TIPPredicate>equationWithTwoRealsInputs</TIPPredicate><Description>Equation with two instances of ExpressReal as inputs and one instance of ExpressReal as result.</Description>
	<Example>The bore of an orifice plate has a surface of 3018 mm2 and the cross section of the NPS4/Sch40 pipe, in which it is mounted, is 8209 mm2, therefore the beta ratio is 3018/8209=0.3676</Example>
	<Notes>At instantiation of this template it is mandatory to add meta:valEffectiveDate with the dateTime that the represented information became effective.</Notes>
	<SubClassOf>TemplateForFunctionOfClass</SubClassOf><Definition>[hasInput1] and [hasInput2] are mapped to [hasFunction] resulting in [hasResult]</Definition><ScopeNote>The inputs may come for query results. Actually this template defies the principle that ISO 15926 deals with facts only. Here the fact is being calculated instead of just recorded. Instead of this template use another one with the result only as instance of dm:Property or dm:IndirectProperty.</ScopeNote><AdminNote/><LiftedAndLoweredGraph>CL-FUNC-100-20210811.png</LiftedAndLoweredGraph>
	<LiftedTemplate>
	    	
	    	<LiftedTemplateElements>
	    		<Ref>1</Ref>
	    		<URI>dm:ExpressReal</URI>
	    	</LiftedTemplateElements>
	    	<LiftedTemplateElements>
	    		<Ref>2</Ref>
	    		<URI>dm:ExpressReal</URI>
	    	</LiftedTemplateElements>
	<LiftedTemplateElements><Ref>3</Ref><URI>dm:ExpressReal</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>4</Ref><URI>dm:ClassOfFunctionalMapping</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>5</Ref><URI>dm:MultidimensionalObject</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>6</Ref><URI>dm:FunctionalMapping</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>7</Ref><URI>dm:Classification</URI></LiftedTemplateElements></LiftedTemplate>
	<PropertiesOfLoweredTemplate>
    		
    		
    		
  	<TemplateSignature><RoleNo>1</RoleNo><RoleName>hasInput1</RoleName><RoleObjectType>dm:ExpressReal</RoleObjectType><RoleExample/></TemplateSignature><TemplateSignature><RoleNo>2</RoleNo><RoleName>hasInput2</RoleName><RoleObjectType>dm:ExpressReal</RoleObjectType><RoleExample/></TemplateSignature><TemplateSignature><RoleNo>3</RoleNo><RoleName>hasResult</RoleName><RoleObjectType>dm:ExpressReal</RoleObjectType><RoleExample/></TemplateSignature><TemplateSignature><RoleNo>4</RoleNo><RoleName>hasFunction</RoleName><RoleObjectType>dm:ClassOfFunctionalMapping</RoleObjectType><RoleExample>use ID from RDL</RoleExample></TemplateSignature></PropertiesOfLoweredTemplate>
	<LoweredTemplateOWLcode>
    		<![CDATA[
		]]>
 	 </LoweredTemplateOWLcode>
	<LoweredTemplateFOLcode><![CDATA[FunctionalMappingOf2ExpressReals(hasInput1, hasInput2, hasResult, hasFunction) <-> 
ExpressReal(hasInput1) &
ExpressReal(hasInput2) &
ExpressReal(hasResult) &
ClassOfFunctionalMapping(hasFunction) &
exists u1 exists u2(
      MultidimensionalObject(u1) &
      hasElement1(u1, hasInput1) &
      hasElement2(u1, hasInput2) &
      FunctionalMappingTriple(u2, u1, hasResult) &
      ClassificationTemplate(u2, hasFunction)) .]]>
</LoweredTemplateFOLcode>

<LoweredTemplateInstanceListing>
<![CDATA[GENERIC DEFINITION

tpl:FunctionalMappingOf2ExpressReals
      rdfs:subClassOf dm:Template ;
      rdfs:isDefinedBy  tpl:CL-FUNC-100.xml ;
      tpl:hasInput1 xsd:decimal  ;
      tpl:hasInput2 xsd:decimal  ;
      tpl:hasResult xsd:decimal  ;
      tpl:hasFunction dm:ClassOfFunctionalMapping ;
      meta:valEffectiveDate xsd:dateTime .

# EXAMPLE - The bore of an orifice plate has a surface of 3018 mm2, and the cross section of the NPS4/Sch40 pipe, in which it is mounted, is 8209 mm2, therefore the beta ratio is 3018/8209=0.3676

ex:ef9adfab-1026-4e7e-962d-6ed0f5019875
      rdf:type tpl:FunctionalMappingOf2ExpressReals ;
      tpl:hasInput1 "3018"^^xsd:decimal ;
      tpl:hasInput2 "8209"^^xsd:decimal ;
      tpl:hasResult "0.3676"^^xsd:decimal  ;
      tpl:hasFunction rdl:RDS11566410 ; # FUNCTION DIV
      meta:valEffectiveDate "2021-08-17T13:19:00Z"^^xsd:dateTime .
]]>
</LoweredTemplateInstanceListing>
</TemplateSpecification>
