<?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>ApprovalWithStatusOfRelationshipInTemplate</TemplateName>
	<defaultRdsId>R8DDACCB5C7444B9C9047D6E43C3283B3</defaultRdsId>
	<Status>UPDATED MAR2023</Status>
	<TIPPredicate>approvesRelationshipInsideTemplate</TIPPredicate><Description>A PossibleIndividual approves a Relationship, as represented by a Template, where that approval is classified with a ClassOfApprovalByStatus.</Description>
<Example>John Doe has approved the direct connection between the physical implementations of Line RZ17801 and Pump P-101 with the status "APPROVED".</Example>
	<Notes><![CDATA[At instantiation of this template it is mandatory to add meta:valEffectiveDate with the dateTime that the represented information became effective.
]]></Notes>
	<SubClassOf>TemplateForApproval</SubClassOf><Definition>The approval of the relationship represented by [hasRepresentingTemplate] by [EssentialType] individual [hasApprover] has the status [hasStatus]</Definition><ScopeNote>Direct approval of a Relationship is impossible because that Relationship is not explictely present in any template signature. The information, represented by the template, is approved.</ScopeNote><AdminNote/><LiftedAndLoweredGraph>IN-ACTIV-480-20220202.png</LiftedAndLoweredGraph>
	<LiftedTemplate>
	    	
	    	<LiftedTemplateElements><Ref>1</Ref>
	    		<URI>dm:PhysicalObject</URI>
	    	</LiftedTemplateElements><LiftedTemplateElements><Ref>2</Ref><URI>dm:ClassOfApprovalByStatus</URI></LiftedTemplateElements>
	    	
	<LiftedTemplateElements><Ref>3</Ref><URI>lci:Template</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>4</Ref><URI>dm:TemporalWholePart</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>5</Ref><URI>dm:PhysicalObject</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>6</Ref><URI>dm:Classification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>7</Ref><URI>dm:Approval</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>8</Ref><URI>dm:Classification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>9</Ref><URI>dm:OtherRelationship</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>10</Ref><URI>dm:Beginning</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>11</Ref><URI>dm:PointInTime</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>12</Ref><URI>dm:ClassOfIdentification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>13</Ref><URI>dm:RepresentationOfGregorianDateAndUtcTime</URI></LiftedTemplateElements></LiftedTemplate>
	<PropertiesOfLoweredTemplate>



  	<TemplateSignature><RoleNo>1</RoleNo><RoleName>hasApprover</RoleName><RoleObjectType>dm:PhysicalObject</RoleObjectType><RoleExample/></TemplateSignature><TemplateSignature><RoleNo>2</RoleNo><RoleName>hasStatus</RoleName><RoleObjectType>dm:ClassOfApprovalByStatus</RoleObjectType><RoleExample/></TemplateSignature><TemplateSignature><RoleNo>3</RoleNo><RoleName>hasRepresentingTemplate</RoleName><RoleObjectType>lci:Template</RoleObjectType><RoleExample/></TemplateSignature></PropertiesOfLoweredTemplate>
	<LoweredTemplateOWLcode>
    		<![CDATA[
		]]>
 	 </LoweredTemplateOWLcode>
	<LoweredTemplateFOLcode><![CDATA[ApprovalWithStatusOfRelationshipInTemplate(hasApprover, hasStatus, hasRepresentingTemplate) <->
PhysicalObject(hasApprover) &
ClassOfApprovalByStatus(hasStatus) &
Template(hasRepresentingTemplate) &
exists u1 exists u2 exists u3 exists u4 exists u5(
      PossibleIndividual(u1) &
      TemporalWholePartTemplate(u1, hasApprover) &
      ApprovalTriple(u2, u3, u1) &
      ClassificationTemplate(u2, hasStatus) &
      Relationship(u3) &
      RepresentationOfThingTemplate(u3, hasRepresentingTemplate) &
      BeginningTemplate(u4, u1) &
      PointInTime(u4) &
      ClassOfIdentificationTemplate(u5, u4) &
      RepresentationOfGregorianDateAndUtcTime(u5)) .]]>
</LoweredTemplateFOLcode>

<LoweredTemplateInstanceListing>
<![CDATA[GENERIC DEFINITION

tpl:ApprovalWithStatusOfRelationshipInTemplate
      rdfs:subClassOf dm:Template ;
      rdfs:isDefinedBy  tpl:IN-ACTIV-480.xml ;
      tpl:hasApprover dm:PhysicalObject ;
      tpl:hasStatus dm:Status ;
      tpl:hasRepresentingTemplate lci:Template ;
      meta:valEffectiveDate xsd:dateTime .

# EXAMPLE - John Doe has approved the direct connection between the physical implementations of Line RZ17801 and Pump P-101 with the status "Approved".
      
ex:89b0cf09-2179-4041-9bee-aef605e6f227
      rdf:type tpl:ApprovalWithStatusOfRelationshipInTemplate ;
      tpl:hasApprover ex:c7f173bb-e15c-4f86-8eac-66715067fd54 ; # John Doe
      tpl:hasStatus rdl:RDS222617 ; # APPROVED
      tpl:hasRepresentingTemplate "ex:67c2704f-6af6-49b6-9147-e9b39042b53b"^^xsd:anyUri ;
      meta:valEffectiveDate "2021-12-16T14:07:00Z"^^xsd:dateTime .
]]>
</LoweredTemplateInstanceListing>
</TemplateSpecification>
