<?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>ActivityCausesEndedIndividual</TemplateName>
	<defaultRdsId>R619C8EBF1B7C434EA5F3F2A0AB6D31D3</defaultRdsId>
	<Status>UPDATED MAR2023</Status>
	<SubClassOf>TemplateForActivity</SubClassOf>
	<Definition>[EssentialType] [Actual | NonActual] Activity [hasActivity] causes the ending of the existence of [EssentialType] [Actual | NonActual] Individual [hasEndedIndividual]</Definition>
	<TIPPredicate>causesEndingOfIndividual</TIPPredicate><Description>An Activity causes an Event that, in turn, marks the ending of a PossibleIndividual.</Description>
	<Example>The Activity A5833422, classified as DEMOLISHING, ends the existence of Actual PUMP P-101.</Example>
	<Notes>At instantiation of this template it is mandatory to add meta:valEffectiveDate with the dateTime that the represented information became effective.</Notes>
	<ScopeNote>This PossibleIndividual can be a WholeLifeIndividual but also a temporal part of a PossibleIndividual. In the latter case that will be possible only when that temporal part had been declared</ScopeNote>
	<AdminNote/>
	<LiftedAndLoweredGraph>IN-ACTIV-280-20211223.png</LiftedAndLoweredGraph>
	<LiftedTemplate>
    	<LiftedTemplateElements><Ref>1</Ref>
    		<URI>dm:Activity</URI>
    	</LiftedTemplateElements>
    	
    	<LiftedTemplateElements><Ref>2</Ref>
    		<URI>dm:PossibleIndividual</URI>
    	</LiftedTemplateElements>
		
		<LiftedTemplateElements><Ref>3</Ref>
			<URI>dm:CauseOfEvent</URI>
		</LiftedTemplateElements>
	<LiftedTemplateElements><Ref>4</Ref><URI>dm:Event</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>5</Ref><URI>dm:Ending</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>6</Ref><URI>dm:Ending</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>7</Ref><URI>dm:CompositionOfIndividual</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>8</Ref><URI>dm:PointInTime</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>9</Ref><URI>dm:ClassOfIdentification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>10</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>hasEndedIndividual</RoleName><RoleObjectType>dm:PossibleIndividual</RoleObjectType><RoleExample/></TemplateSignature></PropertiesOfLoweredTemplate>
	<LoweredTemplateOWLcode>
    		<![CDATA[
		]]>
 	 </LoweredTemplateOWLcode>
	<LoweredTemplateFOLcode><![CDATA[ActivityCausesEndedIndividual(hasActivity, hasEndedIndividual) <->
Activity(hasActivity) &
PossibleIndividual(hasEndedIndividual) &
exists u1 exists u2 exists u3(
      CauseOfEventTemplatee(u1, hasActivity) &
      Event(u1) &
      EndingTemplate(u1, hasEndedIndividual) &
      EndingTemplate(u2, hasEndedIndividual) &
      CompositionOfIndividualTemplate(u2, u1) &
      PointInTime(u2) &
      ClassOfIdentificationTemplate(u3, u2) &
      RepresentationOfGregorianDateAndUtcTime(u3)) .]]>
</LoweredTemplateFOLcode>

<LoweredTemplateInstanceListing>
<![CDATA[GENERIC DEFINITION
      
tpl:ActivityCausesEndedIndividual
      rdfs:subClassOf dm:Template ;
      rdfs:isDefinedBy  tpl:IN-ACTIV-280.xml ;
      tpl:hasActivity dm:Activity ;
      tpl:hasEndedIndividual dm:PossibleIndividual ;
      meta:valEffectiveDate xsd:dateTime .

# EXAMPLE - The Activity A5833422, classified as DEMOLISHING, ends the existence of Actual PUMP P-101.

ex:533d4596-90f9-4e42-8c8d-8f27c33a95e7
      rdf:type tpl:ActivityCausesEndedIndividual ;
      tpl:hasActivity ex:eb0d6e91-a69f-406c-a7c1-e62ca34b7e69 ; # A5833422
      tpl:hasEndedIndividual ex:cf8ac556-2331-4163-ba3d-79b02bdcda50 ; # myPump
      meta:valEffectiveDate "2021-12-15T14:04:00Z"^^xsd:dateTime .
]]>
</LoweredTemplateInstanceListing>
</TemplateSpecification>
