<?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>EndingOfParticipationOf2PhysicalObjectsInSameActivity</TemplateName>
	<defaultRdsId>B1F8A116820B4FE7BE49BD448A022AAE</defaultRdsId>
	<Status>UPDATED MAR2023</Status>
	<TIPPredicate>endedDualParticipationInSameActivity</TIPPredicate><Description>Ending of a Participation of two PhysicalObjects in one Activity, each in their Role.</Description>
<Example>A pump for tag P-101 in the Role of MANUFACTURED OBJECT has been manufactured by XYZ Ltd in the Role of MANUFACTURER(role) in an ended Activity A374221 classified as MANUFACTURING.</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>[EssentialType] individual [hasParticipant1] participated, in a role of [hasParticipationRole1], and [EssentialType] individual [hasParticipant2] participated, in a role of [hasParticipationRole2], in the same, ended, [EssentialType] Activity [hasActivity]</Definition><ScopeNote>This template is handy in cases where the PERFORMER and the SUBJECT are implied in the semantics of a data element.</ScopeNote><AdminNote/><LiftedAndLoweredGraph>IN-ACTIV-060-20230306.png</LiftedAndLoweredGraph>
	<LiftedTemplate>
	    	<LiftedTemplateElements><Ref>1</Ref>
	    		<URI>dm:Activity</URI>
	    	</LiftedTemplateElements>
	    	<LiftedTemplateElements><Ref>2</Ref>
	    		<URI>dm:PhysicalObject</URI>
	    	</LiftedTemplateElements><LiftedTemplateElements><Ref>3</Ref><URI>dm:Role</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>4</Ref><URI>dm:PhysicalObject</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>5</Ref><URI>dm:Role</URI></LiftedTemplateElements>
	    	<LiftedTemplateElements><Ref>6</Ref><URI>dm:TemporalWholePart</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>7</Ref><URI>dm:Activity</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>8</Ref><URI>dm:SpecializationByRole</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>9</Ref><URI>dm:ParticipatingRoleAndDomain</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>10</Ref><URI>dm:ClassOfParticipation</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>11</Ref><URI>dm:Classification</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:SpecializationByRole</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>16</Ref><URI>dm:ParticipatingRoleAndDomain</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>17</Ref><URI>dm:ClassOfParticipation</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>18</Ref><URI>dm:Classification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>19</Ref><URI>dm:Participation</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>20</Ref><URI>dm:PhysicalObject</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>21</Ref><URI>dm:TemporalWholePart</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>22</Ref><URI>dm:PointInTime</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>23</Ref><URI>dm:Ending</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>24</Ref><URI>dm:Ending</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>25</Ref><URI>dm:Ending</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>26</Ref><URI>dm:ClassOfIdentification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>27</Ref><URI>dm:RepresentationOfGregorianDateAndUtcTime</URI></LiftedTemplateElements></LiftedTemplate>
	<PropertiesOfLoweredTemplate>



  	<TemplateSignature><RoleNo>1</RoleNo><RoleName>hasActivity</RoleName><RoleObjectType>dm:Activity</RoleObjectType><RoleExample/></TemplateSignature><TemplateSignature><RoleNo>2</RoleNo><RoleName>hasParticipant1</RoleName><RoleObjectType>dm:PhysicalObject</RoleObjectType><RoleExample/></TemplateSignature><TemplateSignature><RoleNo>3</RoleNo><RoleName>hasParticipantRole1</RoleName><RoleObjectType>dm:Role</RoleObjectType><RoleExample>use ID from RDL</RoleExample></TemplateSignature><TemplateSignature><RoleNo>4</RoleNo><RoleName>hasParticipant2</RoleName><RoleObjectType>dm:PhysicalObject</RoleObjectType><RoleExample/></TemplateSignature><TemplateSignature><RoleNo>5</RoleNo><RoleName>hasParticipantRole2</RoleName><RoleObjectType>dm:Role</RoleObjectType><RoleExample/></TemplateSignature></PropertiesOfLoweredTemplate>
	<LoweredTemplateOWLcode>
    		<![CDATA[
		]]>
 	 </LoweredTemplateOWLcode>
	<LoweredTemplateFOLcode><![CDATA[EndingOfParticipationOfTwoPhysicalObjectsInSameActivity(hasActivity, hasParticipant1, hasParticipantRole1, hasParticipant2, hasParticipantRole2) <->
Activity(hasActivity) &
PhysicalObject(hasParticipant1) &
Role(hasParticipantRole1) &
PhysicalObject(hasParticipant2) &
Role(hasParticipantRole2) &
exists u1 exists u2 exists u3 exists u4 exists u5 exists u6 exists u7 exists u8 exists u9 exists u10 exists u11(
       Activity(u1) &
       ParticipatingRoleAndDomain(u2) &
       ClassOfParticipationTemplate(u3, u2, %) &
       ParticipationTriple(u4, u5, u1) &
       PhysicalObject(u5) &
       ParticipatingRoleAndDomain(u6) &
       ClassOfParticipationTemplate(u7, u6, %) &
       ParticipationTriple(u8, u9, u1) &
       PhysicalObject(u9) &
       PointInTime(u10) &
       RepresentationOfGregorianDateAndUtcTime(u11) &
       TemporalWholePartTemplate(u1, hasActivity) &
       SpecializationByRoleTemplate(u2, hasParticipantRole1) &
       ClassificationTemplate(u4, u3) &
       TemporalWholePartTemplate(u5, hasParticipant1) &
       SpecializationByRoleTemplate(u6, hasParticipantRole2) &
       ClassificationTemplate(u8, u7) &
       TemporalWholePartTemplate(u9, hasParticipant2) &
       EndingTemplate(u10, u1) &
       EndingTemplate(u10, u5) &
       EndingTemplate(u10, u9) &
       ClassOfIdentificationTemplate(u11, u10)) .]]>
</LoweredTemplateFOLcode>

<LoweredTemplateInstanceListing>
<![CDATA[GENERIC DEFINITION
      
tpl:EndingOfParticipationOfTwoPhysicalObjectsInSameActivity
      rdfs:subClassOf dm:Template ;
      rdfs:isDefinedBy  tpl:IN-ACTIV-060.xml ;
      tpl:hasActivity dm:Activity ;
      tpl:hasParticipant1 dm:PhysicalObject ;
      tpl:hasParticipantRole1 dm:Role ;
      tpl:hasParticipant2 dm:PhysicalObject ;
      tpl:hasParticipantRole2 dm:Role ;
      meta:valEffectiveDate xsd:dateTime .

# EXAMPLE - A pump for tag P-101 in the Role of MANUFACTURED OBJECT has been manufactured by XYZ Ltd in the Role of MANUFACTURER(role) in an ended Activity A374221 classified as MANUFACTURING.

ex:3a2e2228-7238-4e7e-bf80-5e3b79e79d31
      rdf:type tpl:EndingOfParticipationOfTwoPhysicalObjectsInSameActivity ;
      tpl:hasActivity ex:58540b60-6064-4d56-bb65-be1800a9a3b5 ; # A374221
      tpl:hasParticipant1 ex:7e16af6f-10b5-44f5-823a-c94954bfe135 ; # pump for tag P-101
      tpl:hasParticipantRole1 rdl:RDS2226060 ; # MANUFACTURED OBJECT
      tpl:hasParticipant2 ex:e4d2bc19-a5a8-4f2c-b935-0d77547a2a2a ; # XYZ Ltd
      tpl:hasParticipantRole2 rdl:RDS2223263 ; # MANUFACTURER(role)
      meta:valEffectiveDate "2021-12-14T14:07:00Z"^^xsd:dateTime .
]]>
</LoweredTemplateInstanceListing>
</TemplateSpecification>
