<?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>ClassOfOtherRelationshipWithDualParticipation</TemplateName>
	<defaultRdsId>R3475E4B44D104FE9B77D13FDE7F024F7</defaultRdsId>
	<Status>UPDATED MAR2023</Status>
	<TIPPredicate>coOtherRelationWithDualParticipation</TIPPredicate><Description>A ClassOfRelationshipWithSignature is defined, with at boths ends a ClassOfIndividual, participating in the same ClassOfActivity, each end with its Role and  Cardinality.</Description>
	<Example>The ClassOfRelationshipWithSignature IS MANUFACTURED BY is defined by the ClassOfActivity MANUFACTURING, with the ParticipatingRoleAndDomain ARTEFACT in the Role of PROCUCT, and the ParticipatingRoleAndDomain MANUFACTURER in the Role of PERFORMER.</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>TemplateForClassOfOtherRelationship</SubClassOf><Definition>[hasCardinalityOfParticipant2]  members of [EssentialType] class [hasClassOfParticipant1], in the role of [hasRoleOfParticipant1] in the [EssentialType] Activity [hasActivityType], has a [hasDefined] relationship with [hasCardinalityOfParticipant1]  members of [EssentialType] class [hasClassOfParticipant2] in the role of [hasRoleOfParticipant2]</Definition><ScopeNote>Use this generic template only in case a full modeling of the relationship would exceed the business needs, and when you use this template, make sure that its definition is accessible for any system using this information.</ScopeNote><AdminNote/><LiftedAndLoweredGraph>CL-OTHRL-250-20220125.png</LiftedAndLoweredGraph>
	<LiftedTemplate>
	    	
	    	<LiftedTemplateElements><Ref>1</Ref><URI>dm:ClassOfRelationshipWithSignature</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>2</Ref><URI>dm:ClassOfActivity</URI></LiftedTemplateElements>
	    	
	<LiftedTemplateElements><Ref>3</Ref><URI>dm:ClassOfIndividual</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>4</Ref><URI>dm:Role</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>5</Ref><URI>dm:Cardinality</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>6</Ref><URI>dm:ClassOfIndividual</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>7</Ref><URI>dm:Role</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>8</Ref><URI>dm:Cardinality</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>9</Ref><URI>dm:Specialization</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>10</Ref><URI>dm:ClassOfActivity</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>11</Ref><URI>dm:ClassOfParticipation</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>12</Ref><URI>dm:ParticipatingRoleAndDomain</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>13</Ref><URI>dm:SpecializationByDomain</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>14</Ref><URI>dm:SpecializationByRole</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>15</Ref><URI>dm:ClassOfParticipation</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>16</Ref><URI>dm:ParticipatingRoleAndDomain</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>17</Ref><URI>dm:SpecializationByDomain</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>18</Ref><URI>dm:SpecializationByRole</URI></LiftedTemplateElements></LiftedTemplate>
	<PropertiesOfLoweredTemplate>
    		
    		
    		
  	<TemplateSignature><RoleNo>1</RoleNo><RoleName>hasDefined</RoleName><RoleObjectType>dm:ClassOfRelationshipWithSignature</RoleObjectType><RoleExample><![CDATA[to be generated automatically]]></RoleExample></TemplateSignature><TemplateSignature><RoleNo>2</RoleNo><RoleName>hasActivityType</RoleName><RoleObjectType>dm:ClassOfActivity</RoleObjectType><RoleExample><![CDATA[]]></RoleExample></TemplateSignature><TemplateSignature><RoleNo>3</RoleNo><RoleName>hasParticipantType1</RoleName><RoleObjectType>dm:ClassOfIndividual</RoleObjectType><RoleExample><![CDATA[]]></RoleExample></TemplateSignature><TemplateSignature><RoleNo>4</RoleNo><RoleName>hasRoleOfParticipant1</RoleName><RoleObjectType>dm:Role</RoleObjectType><RoleExample><![CDATA[use ID from RDL]]></RoleExample></TemplateSignature><TemplateSignature><RoleNo>5</RoleNo><RoleName>hasCardinalityOfParticipant1</RoleName><RoleObjectType>dm:Cardinality</RoleObjectType><RoleExample>use ID from RDL</RoleExample></TemplateSignature><TemplateSignature><RoleNo>6</RoleNo><RoleName>hasParticipantType2</RoleName><RoleObjectType>dm:ClassOfIndividual</RoleObjectType><RoleExample/></TemplateSignature><TemplateSignature><RoleNo>7</RoleNo><RoleName>hasRoleOfParticipant2</RoleName><RoleObjectType>dm:Role</RoleObjectType><RoleExample><![CDATA[use ID from RDL]]></RoleExample></TemplateSignature><TemplateSignature><RoleNo>8</RoleNo><RoleName>hasCardinalityOfParticipant2</RoleName><RoleObjectType>dm:Cardinality</RoleObjectType><RoleExample><![CDATA[use ID from RDL]]></RoleExample></TemplateSignature></PropertiesOfLoweredTemplate>
	<LoweredTemplateOWLcode>
    		<![CDATA[
		]]>
 	 </LoweredTemplateOWLcode>
	<LoweredTemplateFOLcode><![CDATA[ClassOfOtherRelationshipWithDualParticipation(hasDefined, hasActivityType, hasParticipantType1, hasRoleOfParticipant1, hasCardinalityOfParticipant1, hasParticipantType2, hasRoleOfParticipant2, hasCardinalityOfParticipant2) <->
ClassOfActivity(hasActivityType) &
ClassOfIndividual(hasParticipantType1) &
Role(hasRoleOfParticipant1) &
Cardinality(hasCardinalityOfParticipant1) &
ClassOfIndividual(hasParticipantType2) &
Role(hasRoleOfParticipant2) &
Cardinality(hasCardinalityOfParticipant2) &
exists u1 exists u2 exists u3(
       ClassOfRelationshipWithSignatureTriple(hasDefined, u2, u3) &
          hasEnd2Cardinality(hasDefined, hasCardinalityOfParticipant1) &
          hasEnd1Cardinality(hasDefined, hasCardinalityOfParticipant2) &
       ClassOfActivity(u1) &
       SpecializationTemplate(u1, hasActivityType) &
       ClassOfParticipationTemplate(u2, u1) &
       ParticipatingRoleAndDomain(u2) &
       SpecializationByDomainTemplate(u2, hasParticipantType1) &
       SpecializationByRoleTemplate(u2, hasRoleOfParticipant1) &
       ClassOfParticipationTemplate(u3, u1) &
       ParticipatingRoleAndDomain(u3) &
       SpecializationByDomainTemplate(u3, hasParticipantType2) &
       SpecializationByRoleTemplate(u3, hasRoleOfParticipant2)) .]]>
</LoweredTemplateFOLcode>

<LoweredTemplateInstanceListing>
<![CDATA[GENERIC DEFINITION
      
tpl:ClassOfOtherRelationshipWithDualParticipation
      rdfs:subClassOf dm:Template ;
      rdfs:isDefinedBy  tpl:CL-OTHRL-250.xml ;
      tpl:hasDefined dm:ClassOfRelationshipWithSignature ;
      tpl:hasActivityType dm:ClassOfActivity ;
      tpl:hasParticipantType1 dm:ClassOfIndividual ; 
      tpl:hasRoleOfParticipant1 dm:Role ;
      tpl:hasCardinalityOfParticipant1 dm:Cardinality ;
      tpl:hasParticipantType2 dm:ClassOfIndividual ; 
      tpl:hasRoleOfParticipant2 dm:Role ;
      tpl:hasCardinalityOfParticipant2 dm:Cardinality ;
      meta:valEffetiveDate xsd:dateTime .

# EXAMPLE - The ClassOfRelationshipWithSignature IS MANUFACTURED BY is defined by the ClassOfActivity MANUFACTURING, with the ParticipatingRoleAndDomain ARTEFACT in the Role of PRODUCT, and the ParticipatingRoleAndDomain MANUFACTURER in the Role of PERFORMER.

ex:7256a059-172e-41fb-8991-68b512763649
      rdf:type tpl:ClassOfOtherRelationshipWithDualParticipation ;
      tpl:hasDefined rdl:RDS2229929 ; # IS MANUFACTURED BY
      tpl:hasActivityType rdl:RDS9661877; # MANUFACTURING
      tpl:hasParticipantType1 rdl:RDS422594 ; # ARTEFACT
      tpl:hasRoleOfParticipant1 rdl:RDS13875454 ; # PRODUCT
      tpl:hasCardinalityOfParticipant1 rdl:RDS999900701 ; # ONE TO MANY
      tpl:hasParticipantType2 rdl:RDS4242650 ; # MANUFACTURER
      tpl:hasRoleOfParticipant2 rdl:RDS222365 ; # PERFORMER
      tpl:hasCardinalityOfParticipant2  rdl:RDS999900701 ; # ONE TO MANY
      meta:valEffetiveDate "2021-12-03T13:02:00Z"^^xsd:dateTime .
]]>
</LoweredTemplateInstanceListing>
</TemplateSpecification>
