<?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>EndedParticipationOfClassInActivity</TemplateName>
	<defaultRdsId>55D5FD1BD995404B8A11CAC2271BAC2F</defaultRdsId>
	<Status>UPDATED MAR2023</Status>
	<TIPPredicate>classMemberHasEndedParticipationInActivity</TIPPredicate><Description>An unidentified instance of ClassOfPhysicalObject has ended to participate, in a given Role, in an Activity,on a given dateTime.</Description>
<Example>An unidentified member of the Compressor Class 'MODEL Hm-347x' has been purchased through PURCHASING Activity A5743832.</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>TemplateForIndividualActivity</SubClassOf><Definition>An unidentified member of [EssentialType] class [hasParticipant] has ended, on [valEndDate], its participation in the [EssentialType] Activity [hasActivity] in the Role of [hasParticipantRole].</Definition><ScopeNote/><AdminNote/><LiftedAndLoweredGraph>IN-ACTIV-043-21211224.png</LiftedAndLoweredGraph>
	<LiftedTemplate>
	    	<LiftedTemplateElements><Ref>1</Ref>
	    		<URI>dm:Activity</URI>
	    	</LiftedTemplateElements>
	    	<LiftedTemplateElements><Ref>2</Ref>
	    		<URI>lci:ClassOfPhysicalObject</URI>
	    	</LiftedTemplateElements><LiftedTemplateElements><Ref>3</Ref><URI>dm:Role</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>4</Ref><URI>dm:RepresentationOfGregorianDateAndUtcTime</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>5</Ref><URI>dm:SpecializationByRole</URI></LiftedTemplateElements>
	    	<LiftedTemplateElements><Ref>6</Ref><URI>dm:SpecializationByDomain</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>7</Ref><URI>dm:ParticipatingRoleAndDomain</URI></LiftedTemplateElements>
	<LiftedTemplateElements><Ref>8</Ref><URI>dm:ClassOfParticipation</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>9</Ref><URI>dm:Classification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>10</Ref><URI>dm:TemporalWholePart</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>11</Ref><URI>dm:Activity</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>12</Ref><URI>dm:Participation</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>13</Ref><URI>dm:PhysicalObject</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>14</Ref><URI>dm:TemporalWholePart</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>15</Ref><URI>dm:Classification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>16</Ref><URI>dm:PhysicalObject</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>17</Ref><URI>dm:Ending</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>18</Ref><URI>dm:Ending</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>19</Ref><URI>dm:PointInTime</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>20</Ref><URI>dm:ClassOfIdentification</URI></LiftedTemplateElements></LiftedTemplate>
	<PropertiesOfLoweredTemplate>



  	<TemplateSignature><RoleNo>1</RoleNo><RoleName>hasActivity</RoleName><RoleObjectType>dm:Activity</RoleObjectType><RoleExample/></TemplateSignature><TemplateSignature><RoleNo>2</RoleNo><RoleName>hasParticipantTyoe</RoleName><RoleObjectType>lci:ClassOfPhysicalObject</RoleObjectType><RoleExample/></TemplateSignature><TemplateSignature><RoleNo>3</RoleNo><RoleName>hasParticipantRole</RoleName><RoleObjectType>dm:Role</RoleObjectType><RoleExample>use ID from RDL </RoleExample></TemplateSignature><TemplateSignature><RoleNo>4</RoleNo><RoleName>valEndDate</RoleName><RoleObjectType>dm:RepresentationOfGregorianDateAndUtcTime</RoleObjectType><RoleExample/></TemplateSignature></PropertiesOfLoweredTemplate>
	<LoweredTemplateOWLcode>
    		<![CDATA[
		]]>
 	 </LoweredTemplateOWLcode>
	<LoweredTemplateFOLcode><![CDATA[EndedParticipationOfClassInActivity(hasActivity, hasParticipantType, hasParticipantRole, valEndDate) <->
Activity(hasActivity) &
ClassOfPhysicalObject(hasParticipantType) &
Role(hasParticipantRole) &
RepresentationOfGregorianDateAndUtcTime(valEndDate) &
exists u1 exists u2 exists u3 exists u4 exists u5 exists u6 exists u7(
       SpecializationByRoleTemplate(u5, hasParticipantRole) &
       SpecializationByDomainTemplate(u5, hasParticipantType) &
       RoleAndDomain(u5) &
       classOfPart(u6, u5) &
       ClassOfParticipation(u6) &
       ClassificationTemplate(u2, u6) &
       TemporalWholePartTemplate(u1, hasActivity) &
       Activity(u1) &
       ParticipationTriple(u2, u3, u1) &
       TemporalWholePartTemplate(u3, u4) &
       PhysicalObject(u3) &
       PhysicalObject(u4) &
       ClassificationTemplate(u4, hasParticipantType) &
       EndingTemplate(u7, u1) &
       EndingTemplate(u7, u3) &
       PointInTime(u7) &
       ClassOfIdentificationTemplate(valEndDate, u7)) .]]>
</LoweredTemplateFOLcode>

<LoweredTemplateInstanceListing>
<![CDATA[GENERIC DEFINITION

tpl:EndedParticipationOfClassInActivity
      rdfs:subClassOf dm:Template ;
      rdfs:isDefinedBy  tpl:IN-ACTIV-043.xml ;
      tpl:hasActivity dm:Activity ;
      tpl:hasParticipantType lci:ClassOfPhysicalObject ;
      tpl:hasParticipantRole dm:Role ;
      tpl:valEndDate xsd:dateTime ;
      meta:valEffectiveDate xsd:dateTime .

# EXAMPLE - An unidentified member of the Compressor Class 'MODEL Hm-347x' has been purchased through PURCHASING Activity A5743832.

ex:d3e4cb60-f8c3-4f7a-90ca-8e33ae940f54
      rdf:type tpl:EndedParticipationOfClassInActivity ;
      tpl:hasActivity ex:94341ba9-3c3f-4fc3-9a24-dcf87ecbcd5b ; # A5743832
      tpl:hasParticipantType xyz:Hm-347x ; # MODEL Hm-347x of XYZ Ltd
      tpl:hasParticipantRole rdl:RDS222362 ; # SUBJECT
      tpl:valEndDate "2021-09-21T18:44:00Z"^^xsd:dateTime ;
      meta:valEffectiveDate "2021-09-21T18:44:00Z"^^xsd:dateTime .
]]>
</LoweredTemplateInstanceListing>
</TemplateSpecification>
