<?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>PropertyOfClassOfStreamAtClassOfLocation</TemplateName>
	<defaultRdsId>9C10597658DD4E739F814949151C2ABF</defaultRdsId>
	<Status>NEW NOV2024</Status>
	<TIPPredicate>PropertycoStreamAtcoLocation</TIPPredicate>
	<Description>A Member of a ClassOfClassOfPhysicalObject contains a member of a ClassOfStream, and the latter has a Property with a given value on a Scale.</Description>
	<Definition>Any member of [EssentialType] class [hasLocatorType] conains any member of [hasStreamType], that has a [hasPropertyType] of [valPropertyValue] [hasScale]</Definition>
	<Example>Members of CO-P-101-IN (inlet of CO-P-IN) contain members of stream class CO-Nh-43822, and the latters have an PRESSURE of6.8 BAR GAUGE.</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></ScopeNote>
	<AdminNote></AdminNote>
	<LiftedAndLoweredGraph>CL-STRM-300.png</LiftedAndLoweredGraph>
	<LiftedTemplate>
	    	<LiftedTemplateElements>
			<Ref>1</Ref>
	    		<URI>http://data.15926.org/dm/ClassOfPhysicalObject</URI>
	    	</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>2</Ref>
			<URI>http://data.15926.org/dm/ClassOfStream</URI>
		</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>3</Ref>
			<URI>http://data.15926.org/dm/SinglePropertyDimension</URI>
		</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>4</Ref>
	    		<URI>http://data.15926.org/dm/ExpressReal</URI>
	    	</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>5</Ref>
			<URI>http://data.15926.org/dm/Scale</URI>
			</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>6</Ref>
			<URI>http://data.15926.org/dm/ClassOfTemporalWholePart</URI>
		</LiftedTemplateElements>
			<LiftedTemplateElements>
			<Ref>7</Ref>
	    		<URI>http://data.15926.org/dm/ClassOfPhysicalObject</URI>
	    	</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>8</Ref>
			<URI>http://data.15926.org/dm/ClassOfContainmentOfIndividual</URI>
		</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>9</Ref>
			<URI>http://data.15926.org/dm/ClassOfTemporalWholePart</URI>
		</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>10</Ref>
			<URI>http://data.15926.org/dm/ClassOfStream</URI>
		</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>11</Ref>
			<URI>http://data.15926.org/dm/Specialization</URI>
		</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>12</Ref>
			<URI>http://data.15926.org/dm/Property</URI>
		</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>13</Ref>
			<URI>http://data.15926.org/dm/Classification</URI>
		</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>14</Ref>
			<URI>http://data.15926.org/dm/PropertyQuantification</URI>
		</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>15</Ref>
			<URI>http://data.15926.org/dm/Classification</URI>
		</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>16</Ref>
			<URI>http://data.15926.org/dm/RealNumber</URI>
		</LiftedTemplateElements>
		<LiftedTemplateElements>
			<Ref>17</Ref>
			<URI>http://data.15926.org/dm/ClassOfIdentification</URI>
		</LiftedTemplateElements>
	</LiftedTemplate>
	<PropertiesOfLoweredTemplate>
  	<TemplateSignature>
		<RoleNo>1</RoleNo>
		<RoleName>hasLocatorType</RoleName>
		<RoleObjectType>dm:ClassOfPhysicalObject</RoleObjectType>
		<RoleExample/>
	</TemplateSignature>
	<TemplateSignature>
		<RoleNo>2</RoleNo>
		<RoleName>hasStreamType</RoleName>
		<RoleObjectType>dm:ClassOfStream</RoleObjectType>
		<RoleExample/>
	</TemplateSignature>
	<TemplateSignature>
		<RoleNo>3</RoleNo>
		<RoleName>hasPropertyType</RoleName>
		<RoleObjectType>dm:SinglePropertyDimension</RoleObjectType>
		<RoleExample>use ID from RDL</RoleExample>
	</TemplateSignature>
	<TemplateSignature>
		<RoleNo>4</RoleNo>
		<RoleName>valPropertyValue</RoleName>
		<RoleObjectType>xsd:decimal</RoleObjectType>
		<RoleExample></RoleExample>
	</TemplateSignature>
	<TemplateSignature>
		<RoleNo>5</RoleNo>
		<RoleName>hasScale</RoleName>
		<RoleObjectType>dm:Scale</RoleObjectType>
		<RoleExample>use ID from RDL</RoleExample>
	</TemplateSignature>
	</PropertiesOfLoweredTemplate>
	<LoweredTemplateOWLcode>
    		<![CDATA[
		]]>
 	 </LoweredTemplateOWLcode>
	<LoweredTemplateFOLcode><![CDATA[PropertyOfClassOfStreamAtClassOfLocation)(hasLocatorType, hasStreamType, hasPropertyType, valPropertyValue, hasScale)<->
ClassOfPhysicalObjec(hasLocatorType) &
ClassOfStream(hasStreamType) &
SinglePropertyDimension(hasPropertyType) &
ExpressReal(hasPropertyValue) &
Scale(hasScale) &
exists u1 exists u2 exists u3 exists u4 exists u5(
	ClassOfPhysicalObject(u1) &
	ClassOfTemporalWholePartTemplate(u1, hasLocatorType) &
	ClassOfStream(u2) &
	ClassOfTemporalWholePartTemplate(u1, hasStreamType) &
	Property(u3) &
	SpecializationTemplate(u2, u3) &
	ClassificationTemplate(u3, hasPropertyType) &
	RealNumber(u5) &
	PropertyQuantificationTriple(u6, u3, u5) &
	ClassificationTemplate(u4, hasScale) &
	ClassOfIdentificationTemplate(valPropertyValue, u5)) .]]>
</LoweredTemplateFOLcode>
<LoweredTemplateInstanceListing>
<![CDATA[GENERIC DEFINITION

 tpl:PropertyOfClassOfStreamAtClassOfLocation
      rdfs:subClassOf  dm:Template ;
      rdfs:isDefinedBy  tpl:CL-STRM-300.xml ;
      tpl:hasLocatorType dm:ClassOfPhysicalObject ;
      tpl:hasStreamType dm:ClassOfStream ;
      tpl:hasPropertyType dm:SinglePropertyDimension ;
      tpl:valPropertyValue xsd:decimal ;
      tpl:hasScale dm:Scale ;
      meta:valEffectiveDate  xsd:dateTime .

# EXAMPLE - Members of CO-P-101-IN (inlet of CO-P-IN) contain members of stream class CO-Nh-43822, and the latters have an PRESSURE of6.8 BAR GAUGE.

ex:aec2c495-2032-4b28-ae8c-27a99205ad14
      rdf:type tpl:PropertyOfClassOfStreamAtClassOfLocation ;
      tpl:hasLocatorType ex:28214029-a699-48d6-80d6-58f04fa6d709 ; # CO-P-101-IN
      tpl:hasStreamType ex:5a87f41d-9758-4841-be3d-cf9a096ad4e7 ; # CO-Nh-43822
      tpl:hasPropertyType rdl:RDS354194 ; # PRESSURE
      tpl:valPropertyValue "6.8"^^xsd:decimal ;
      tpl:hasScale rdl:RDS1348874 ; # BAR GAUGE
      meta:hasLifecyclActivity rdl:RDS9709622 ; # DETAILED ENGINEERING
      meta:valEffectiveDate "2024-11-16T14:35:00Z"^^xsd:dateTime .
	]]>
	</LoweredTemplateInstanceListing>
</TemplateSpecification>
