<?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>PositionOfIndividualIn3DCoordinateSystem</TemplateName>
	<defaultRdsId>R71A46C18FADE4BCF994B33005A2F0151</defaultRdsId>
	<Status>UPDATED MAR2023</Status>
	<TIPPredicate>isLocatedIn3dCoordinates</TIPPredicate><Description>The location of a PossibleIndividual is expressed in coordinates of a given three-dimensional coordinate system.</Description>
<Example>Valve, installed at functional location FCV-128, is located at {23.76,34.98,12.33 } metre in site coordinate system.</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>TemplateForLocationOfIndividual</SubClassOf><Definition>[EssentialType] individual [hasPositioned] is located at coordinates ([valXCoordinate], [valYCoordinate], [valZCoordinate]) [hasScale] in [hasCoordinateSystem]</Definition><ScopeNote>The [hasScale] shall be derived from the definition of the CoordinateSystem[2]</ScopeNote><AdminNote/><LiftedAndLoweredGraph>IN-LOCTN-400-20221030.png</LiftedAndLoweredGraph>
	<LiftedTemplate>
	    	<LiftedTemplateElements><Ref>1</Ref>
	    		<URI>dm:SpatialLocation</URI>
	    	</LiftedTemplateElements>
	    	<LiftedTemplateElements><Ref>2</Ref>
	    		<URI>dm:CoordinateSystem</URI>
	    	</LiftedTemplateElements>
	    	<LiftedTemplateElements><Ref>3</Ref>
	    		<URI>dm:ExpressReal</URI>
	    	</LiftedTemplateElements>
	<LiftedTemplateElements><Ref>4</Ref><URI>dm:ExpressReal</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>5</Ref><URI>dm:ExpressReal</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>6</Ref><URI>dm:TemporalWholePart</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>7</Ref><URI>dm:SpatialLocation</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>8</Ref><URI>dm:Classification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>9</Ref><URI>dm:PropertyQuantification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>10</Ref><URI>dm:MultidimensionalNumber</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>11</Ref><URI>dm:RealNumber</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>12</Ref><URI>dm:ClassOfIdentification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>13</Ref><URI>dm:RealNumber</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>14</Ref><URI>dm:ClassOfIdentification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>15</Ref><URI>dm:RealNumber</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>16</Ref><URI>dm:ClassOfIdentification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>17</Ref><URI>dm:Beginning</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>18</Ref><URI>dm:PointInTime</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>19</Ref><URI>dm:ClassOfIdentification</URI></LiftedTemplateElements><LiftedTemplateElements><Ref>20</Ref><URI>dm:RepresentationOfGregorianDateAndUtcTime</URI></LiftedTemplateElements></LiftedTemplate>
	<PropertiesOfLoweredTemplate>



  	<TemplateSignature><RoleNo>1</RoleNo><RoleName>hasPositioned</RoleName><RoleObjectType>dm:PossibleIndividual</RoleObjectType><RoleExample/></TemplateSignature><TemplateSignature><RoleNo>2</RoleNo><RoleName>hasCoordinateSystem</RoleName><RoleObjectType>dm:CoordinateSystem</RoleObjectType><RoleExample/></TemplateSignature><TemplateSignature><RoleNo>3</RoleNo><RoleName>valXCoordinate</RoleName><RoleObjectType>dm:ExpressReal</RoleObjectType><RoleExample>any xsd:decimal</RoleExample></TemplateSignature><TemplateSignature><RoleNo>4</RoleNo><RoleName>valYCoordinate</RoleName><RoleObjectType>dm:ExpressReal</RoleObjectType><RoleExample>any xsd:decimal</RoleExample></TemplateSignature><TemplateSignature><RoleNo>5</RoleNo><RoleName>valZCoordinate</RoleName><RoleObjectType>dm:ExpressReal</RoleObjectType><RoleExample>any xsd:decimal</RoleExample></TemplateSignature></PropertiesOfLoweredTemplate>
	<LoweredTemplateOWLcode>
    		<![CDATA[
		]]>
 	 </LoweredTemplateOWLcode>
	<LoweredTemplateFOLcode><![CDATA[PositionOfAnIndividualIn3DCoordinateSystem(hasPositioned, hasCoordinateSystem, valXCoordinate, valYCoordinate, valZCoordinate) <->
SpatialLocation(hasPositioned) &
CoordinateSystem(hasCoordinateSystem) &
ExpressReal(valXCoordinate) &
ExpressReal(valYCoordinate) &
ExpressReal(valZCoordinate) &
exists u1 exists u3 exists u4 exists u5 exists u6 exists u7 exists u8 exists u9(
      SpatialLocation(u1) &
      TemporalWholePartTemplate(u1, hasPositioned) &
      ClassificationTemplate(u7, u1) &
      dm:MultidimensionalProperty(u2) &
      PropertyQuantificationTriple(u3, u2, u4) &
      ClassificationTemplate(u3, hasCoordinateSystem) &
      MultidimensionalNumber(u4) &
            hasElement1(u4, u5) &
            hasElement2(u4, u6) &
            hasElement3(u4, u7) &
      ClassOfIdentificationTemplate(valXCoordinate, u5) &
      ClassOfIdentificationTemplate(valYCoordinate, u6) &
      ClassOfIdentificationTemplate(valZCoordinate, u7) &
      BeginningTemplate(u8, u1) &
      PointInTime(u8) &
      ClassOfIdentificationTemplate(u9, u8) &
      RepresentationOfGregorianDateAndUtcTime(u9)) .]]>
</LoweredTemplateFOLcode>

<LoweredTemplateInstanceListing>
<![CDATA[GENERIC DEFINITION

tpl:PositionOfIndividualIn3DCoordinateSystem
      rdfs:subClassOf dm:Template ;
      rdfs:isDefinedBy tpl:IN-LOCTN-400.xml ;
      tpl:hasPositioned  dm:SpatialLocation ;
      tpl:hasCoordinateSystem  dm:CoordinateSystem ;
      tpl:valXCoordinate xsd:decimal ;
      tpl:valYCoordinate xsd:decimal ;
      tpl:valZCoordinate xsd:decimal ;
      meta:valEffectiveDate xsd:dateTime .

# EXAMPLE - Valve, installed at functional location FCV-128, is located at {23.76,34.98,12.33 } metre in our site coordinate system

ex:5742f5f3-eeca-4054-ac3a-a4d67b8bdd16
      rdf:type tpl:PositionOfIndividualIn3DCoordinateSystem ;
      tpl:hasPositioned  ex:e73b386f-9e2c-47a3-8ea4-16d5a805b90d ; # Valve, installed at functional location FCV-128
      tpl:hasCoordinateSystem  ex:29b16f70-c451-4970-8414-3e08da5a445a ; # Site coordinate system in metres, subClassOf rdl:RDS2220045
      tpl:valXCoordinate "23.76"^^xsd:decimal ;
      tpl:valYCoordinate "34.98"^^xsd:decimal ;
      tpl:valZCoordinate "12.33"^^xsd:decimal ;
      meta:valEffectiveDate "2021-11-15T16:33:00Z"^^xsd:dateTime .
]]>
</LoweredTemplateInstanceListing>
</TemplateSpecification>
