Equations and Variables

latest update: 30 April 2015     

Introduction

In the topic Process Design an overview is given about how an equation for a Unit Operation can be modeled and how data can be linked to variables in that equation.

In this topic this overview is completely detailed.

Equation

We saw that the head of a pump in metric units can be expressed in metric units as:

    h = 1000*(p2 - p1)/(ρ  g) + v22/(2*g)     

    where

    h = total head developed (m)

    p2 = pressure at outlet (1000*N/m2 = kPa)

    p1 = pressure at inlet (1000*N/m2 = kPa)

    ρ =   density (kg/m3)

    g = acceleration of gravity (9.81)  m/s2

    v2 = velocity at the outlet (m/s)

Modeling an equation

First of all it should be mentioned that the transfer functions and their equations are hidden in the software and are, for the sake of lifecycle information integration, not important. If modeled, they can be represented in MathML, which makes it suitable for handling in an XML environment.

Variables, like the inlet pressure, are represented by means of ISO 15926 templates that have the value in their "signature".

If an equation is modeled, it can be represented in MathML, which makes it suitable for handling in an XML environment.

The relationship between the equation and its variables and constants is shown in the template below:

Functional mapping of the equation for centrifugal pump head

Example

Assume:

  • UO137 - an instance of ClassOfActivity called UO_Centrifugal_Pump;
  • P137 - an instance of ClassOfInanimatePhysicalObject performing UO137;
  • STRM137in - an instance of ClassOfStream being the inlet to P137;
  • STRM137out - an instance of ClassOfStream being the outlet from P137.

and the following process data, as shown in above template:

  • p1 = 211.8 kPa - inlet pressure = pressure of STRM137in;
  • p2 = 584.3 kPa - outlet pressure = pressure of STRM137out;
  • ρ = 1237 kg/m3 - density of STRM137in;
  • v2 = 5.3 m/s - fluid velocity of STRM137out.

and one constant:

  • g = 9.81 m/s2 - accelleration of gravity.

Code for the ClassOfFunctionalMapping

New reference data must be defined:

 

These are temporarily stored in a local RDL extension. The final RDS-numbers of the core RDL will be entered later.

@prefix : <http://www.rdl.xyz-corp.com/> .

@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

@prefix owl: <http://www.w3.org/2002/07/owl#> .

@prefix dc: <http://purl.org/dc/elements/1.1/> .

@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

@prefix dm: <http://data.15926.org/dm/> .

@prefix meta: <http://data.15926.org/meta/> .

@prefix tpl: <http://data.15926.org/tpl/> .

@prefix rdl: <http://data.15926.org/rdl/> .

 

#    //////////////////////////////////////////////////////////////////////////////////////////////////

#    //

#    // THIS ONTOLOGY REPRESENTS ADDITIONAL CONCEPTS FOR THE LOCAL RDL EXTENSION OF THE XYZ CORPORATION

#    //

#    //////////////////////////////////////////////////////////////////////////////////////////////////

 

# Definition of Unit Operation

  

:74B3781BF1F8486E8E8DE34D1193C6D7 rdf:type dm:ClassOfActivity;

     rdfs:subclassOf rdl:RDS9657917 ;

     rdfs:label "UO_CENTRIFUGAL_PUMP"@en ;

     skos:definition "PUMPING with a CENTRIFUGAL PUMP" ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:D7147D26812648EBBAC4AC8C638C87AA rdf:type tpl:ClassifiedDefinitionOfClassOfIndividual;

     tpl:hasDefined :74B3781BF1F8486E8E8DE34D1193C6D7 ;

     tpl:hasDefinition :2C7362C0AF254D62BCF2CC865340E797 ; # UO_CENTRIFUGAL_PUMP TRANSFER FUNCTION

     tpl:hasDefinitionType :8D4FD337B8374E58A0F55480D8FF7ACF ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Equation is a part of Transfer Function

:62A115E6E0FF475BA60F45F5848EA447 rdf:type tpl:ClassOfCompositionDefinition;

     tpl:hasClassOfWhole :2C7362C0AF254D62BCF2CC865340E797 ;

     tpl:hasClassOfPart :4D1F91BF018C4E8793F07EC29C12F502 ;

     tpl:hasCardinalityOfWhole :EDD86D3CD2394A7F93B2C36D80598532 ;

     tpl:hasCardinalityOfPart :C6F96152FFD243369C522E02E1A28366 ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:2C7362C0AF254D62BCF2CC865340E797 rdf:type dm:ClassOfInformationRepresentation;

     rdfs:label "UO_CENTRIFUGAL_PUMP TRANSFER FUNCTION"@en ;

     skos:definition "an ISO 15926-4 INFORMATION REPRESENTATION that represents the transfer function of UO_CENTRIFUGAL_PUMP"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:4D1F91BF018C4E8793F07EC29C12F502 rdf:type dm:ClassOfInformationRepresentation;

     rdfs:label "UO_CENTRIFUGAL_PUMP EQUATION FOR HEAD CALCULATION"@en ;

     skos:definition "an ISO 15926-4 INFORMATION REPRESENTATION that represents the equation for the head calculation of UO_CENTRIFUGAL_PUMP"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Declaration of ClassOfFunctionalMapping

:4EF2213A315240F7A820FCDB2C61C88E rdf:type dm:ClassOfFunctionalMapping;

     dm:codomain :7589B68F300840E5A6E17227DFFF5F72 ; # the RoleAndDomain defining "h AND head in m"

     dm:domain :DCA31CC14D64478CADE5675E0DB2908E ; # the ClassOfMultidimensionalObject defining the variables and constants

     dc:description "pump head equation h = (p2 - p1)/(ρ*g) + v2^2/(2*g)"@en ;

     skos:definition "<math><mrow><mi>h</mi><mo>=</mo><mo>(</mo><mi>p</mi><mn>2</mn><mo>-</mo><mi>p</mi><mn>1</mn><mo>)</mo><mo>/</mo><mi>rho</mi><mo>*</mo><mi>g</mi><mo>+</mo><mi>v</mi><msup><mrow><mn>2</mn></mrow><mrow><mn>2</mn></mrow></msup><mo>/</mo><mn>2</mn><mo>*</mo><mi>g</mi></mrow></math>" ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Definition of the ClassOfFunctionalMapping with an equation

:ED07852320C7449D94BCEC02848E9D33 rdf:type tpl:ClassifiedDefinitionOfClassOfRelationship;

     tpl:hasDefined :4EF2213A315240F7A820FCDB2C61C88E ;

     tpl:hasDefinition :4D1F91BF018C4E8793F07EC29C12F502 ; # UO_CENTRIFUGAL_PUMP EQUATION FOR HEAD CALCULATION

     tpl:hasDefinitionType :8D4FD337B8374E58A0F55480D8FF7ACF ; # DEFINITION OF A CLASS WITH A MATHEMATICAL EQUATION

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:8D4FD337B8374E58A0F55480D8FF7ACF rdf:type  dm:ClassOfClassOfDefinition;

    rdfs:subclassOf rdl: ; # ISO 15926-4 DEFINITION CLASS

    rdfs:label "DEFINITION OF A CLASS WITH A MATHEMATICAL EQUATION"@en ;

    skos:definition "An ISO 15926-4 DEFINITION CLASS that indicates a definition of a Class via a mathematical equation."@en ;

    dm:hasClassOfPattern rdl:RDSNEW310 ; # MATHEMATICAL EQUATION IN ASCII

    dm:hasClassOfRepresented rdl:RDS16735730 ; # ISO 15926-4 CLASS

    meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Definition of ClassOfMultidimensionalobject

:DCA31CC14D64478CADE5675E0DB2908E rdf:type dm:ClassOfMultidimensionalObject;

     :role1 :43B3EFF582C34763B51884CB01054BE4 ; # p1 AND NORMAL INLET PRESSURE IN KILOPASCAL

     :role2 :E14D7271C46140AF8DA32D137352C0A5 ; # p2 AND NORMAL OUTLET PRESSURE IN KILOPASCAL

     :role3 :413DDC0747DD4D338ACE5F827FE2B747 ; # ρ AND DENSITY IN KILOGRAM PER METRE CUBED

     :role4 :2EB8C54A72E64F8DB126F9452E7D848D ; # v2 AND AVERAGE VELOCITY IN METRE PER SECOND

     :role5 :F8554A71EEBC4C92959745A5CA2483C8 ; # 9.81 AND ACCELLERATION OF GRAVITY IN METRE PER SECOND SQUARED

     skos:definition "an ISO 15926-4 CLASS OF MULTIDIMENSIONAL OBJECT that defines four variables and one constant for h = (p2 - p1)/(ρ*g) + v2^2/(2*g)"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Definition of 6 instances of RoleAndDomain

:43B3EFF582C34763B51884CB01054BE4 rdf:type dm:RoleAndDomain;

     rdfs:subclassOf rdl:RDS460952191 ; # ISO 15926-4 ROLE AND DOMAIN INSTANCE

     skos:definition "an ISO 15926-4 ROLE AND DOMAIN INSTANCE that is a variable p1 AND NORMAL INLET PRESSURE IN KILOPASCAL"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:897C983AE38D4FB5BE1A5A56E6E232AB rdf:type tpl:DefinitionOfRoleAndDomain;

     tpl:hasDomain :60C213406AA44BF2B8CC3F9AA1A5702F ; # NORMAL INLET PRESSURE IN KILOPASCAL

     tpl:hasRole :E78BF0D141A04ED7A31657117902E621 ; # p1

     tpl:hasDefined :43B3EFF582C34763B51884CB01054BE4 ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:E14D7271C46140AF8DA32D137352C0A5 rdf:type dm:RoleAndDomain;

     rdfs:subclassOf rdl:RDS460952191 ; # ISO 15926-4 ROLE AND DOMAIN INSTANCE

     skos:definition "an ISO 15926-4 ROLE AND DOMAIN INSTANCE that is a variable p2 AND NORMAL OUTLET PRESSURE IN KILOPASCAL"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:A5C827C08DD245CE84456C64D191929C rdf:type tpl:DefinitionOfRoleAndDomain;

     tpl:hasDomain :C6F4FC97334A42EEB1E65B29C7A5849A ; # NORMAL OUTLET PRESSURE IN KILOPASCAL

     tpl:hasRole :0E9DEEF7F5C9494592488CE4A0BB0DA6 ; # p2

     tpl:hasDefined :E14D7271C46140AF8DA32D137352C0A5 ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:413DDC0747DD4D338ACE5F827FE2B747 rdf:type dm:RoleAndDomain;

     rdfs:subclassOf rdl:RDS460952191 ; # ISO 15926-4 ROLE AND DOMAIN INSTANCE

     skos:definition "an ISO 15926-4 ROLE AND DOMAIN INSTANCE that is a variable ρ AND DENSITY IN KILOGRAM PER METRE CUBED"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:AB126315D5264FDAAA0D03E5EDDEE7BC rdf:type tpl:DefinitionOfRoleAndDomain;

     tpl:hasDomain :B0680CE8FC714E6086DE23105A57EEA8 ; # DENSITY IN KILOGRAM PER METRE CUBED

     tpl:hasRole :0A0211667B5C45CF99887B3D16BDFB54 ; # ρ

     tpl:hasDefined :413DDC0747DD4D338ACE5F827FE2B747 ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:2EB8C54A72E64F8DB126F9452E7D848D rdf:type dm:RoleAndDomain;

     rdfs:subclassOf rdl:RDS460952191 ; # ISO 15926-4 ROLE AND DOMAIN INSTANCE

     skos:definition "an ISO 15926-4 ROLE AND DOMAIN INSTANCE that is a variable v2 AND AVERAGE VELOCITY IN METRE PER SECOND"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:D03D9DD5FAE140B1859353F733114D0F rdf:type tpl:DefinitionOfRoleAndDomain;

     tpl:hasDomain :CB119DD8E10847DBB72B293A837C58C3 ; # AVERAGE VELOCITY IN METRE PER SECOND

     tpl:hasRole :F6B278A5CFA945059204E3EF6C7F2A28 ; # v2

     tpl:hasDefined :2EB8C54A72E64F8DB126F9452E7D848D ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:F8554A71EEBC4C92959745A5CA2483C8 rdf:type dm:RoleAndDomain;

     rdfs:subclassOf rdl:RDS460952191 ; # ISO 15926-4 ROLE AND DOMAIN INSTANCE

     skos:definition "an ISO 15926-4 ROLE AND DOMAIN INSTANCE that is a constant (9.81) AND ACCELLERATION OF GRAVITY IN METRE PER SECOND SQUARED"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:540A3F31A39041E18780A6456D3277E5 rdf:type tpl:DefinitionOfRoleAndDomain;

     tpl:hasDomain :CC3E589E120D4E1BACF31E279DF627A3 ; # ACCELLERATION OF GRAVITY IN METRE PER SECOND SQUARED

     tpl:hasRole :02FB5C3088BB4956AFE8A8BF16969ACC ; # g

     tpl:hasDefined :F8554A71EEBC4C92959745A5CA2483C8 ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:B273151247244835BA017401B091107D rdf:type dm:RoleAndDomain;

     rdfs:subclassOf rdl:RDS460952191 ; # ISO 15926-4 ROLE AND DOMAIN INSTANCE

     skos:definition "an ISO 15926-4 ROLE AND DOMAIN INSTANCE that is a variable h AND HEAD IN METRE"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:6F70F10B81E644EFAE57229CD9250801 rdf:type tpl:DefinitionOfRoleAndDomain;

     tpl:hasDomain :C6BD19B16A5A4DBC859C0249EE979021 ; # HEAD IN METRE

     tpl:hasRole :C6BD19B16A5A4DBC859C0249EE979021 ; # h

     tpl:hasDefined :B273151247244835BA017401B091107D ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Definition of 6 Roles

:4F723A02486D4E74B6642E572E94ED8D rdf:type dm:Role;

     rdfs:subclassOf rdl:RDS327144371 ; # ISO 15926-4 ROLE INSTANCE

     rdfs:label "VARIABLE IN EQUATION" ;

     skos:definition "an ISO 15926-4 ROLE INSTANCE that is a variable playing a role in an equation"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:52532BA7DCD64EB4BA728DFF4B819F1A rdf:type dm:Role;

     rdfs:subclassOf rdl:RDS327144371 ; # ISO 15926-4 ROLE INSTANCE

     rdfs:label "CONSTANT IN EQUATION" ;

     skos:definition "an ISO 15926-4 ROLE INSTANCE that is a constant playing a role in an equation"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:E78BF0D141A04ED7A31657117902E621 rdf:type dm:Role;

     rdfs:subclassOf :4F723A02486D4E74B6642E572E94ED8D ; # VARIABLE IN EQUATION

     rdfs:label "p1" ;

     dc:description "a VARIABLE IN EQUATION that is a symbol for inlet pressure"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:0E9DEEF7F5C9494592488CE4A0BB0DA6 rdf:type dm:Role;

     rdfs:subclassOf :4F723A02486D4E74B6642E572E94ED8D ; # VARIABLE IN EQUATION

     rdfs:label "p2" ;

     dc:description "a VARIABLE IN EQUATION that is a symbol for outlet pressure"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:0A0211667B5C45CF99887B3D16BDFB54 rdf:type dm:Role;

     rdfs:subclassOf :4F723A02486D4E74B6642E572E94ED8D ; # VARIABLE IN EQUATION

     rdfs:label "ρ" ;

     dc:description "a VARIABLE IN EQUATION that is a symbol for density"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:F6B278A5CFA945059204E3EF6C7F2A28 rdf:type dm:Role;

     rdfs:subclassOf :4F723A02486D4E74B6642E572E94ED8D ; # VARIABLE IN EQUATION

     rdfs:label "v2" ;

     dc:description "a VARIABLE IN EQUATION that is a symbol for outlet fluid velocity"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:02FB5C3088BB4956AFE8A8BF16969ACC rdf:type dm:Role;

     rdfs:subclassOf :52532BA7DCD64EB4BA728DFF4B819F1A ; # CONSTANT IN EQUATION

     rdfs:label "g" ;

     dc:description "a CONSTANT IN EQUATION that is a symbol for accelleration of gravity"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:C6BD19B16A5A4DBC859C0249EE979021 rdf:type dm:Role;

     rdfs:subclassOf :4F723A02486D4E74B6642E572E94ED8D ; # VARIABLE IN EQUATION

     rdfs:label "h" ;

     dc:description "a VARIABLE IN EQUATION that is a symbol for pump head"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Definition of 5 (Indirect)Properties with predefined Scale

:60C213406AA44BF2B8CC3F9AA1A5702F rdf:type dm:ClassOfIndirectProperty;

     rdfs:subclassOf rdl:RDS7343782 ; # NORMAL INLET PRESSURE

     skos:definition "a NORMAL INLET PRESSURE of which the value is mapped to the Scale KILOPASCAL"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:C6F4FC97334A42EEB1E65B29C7A5849A rdf:type dm:ClassOfIndirectProperty;

     rdfs:subclassOf rdl:RDS14261705 ; # NORMAL OUTLET PRESSURE

     skos:definition "a NORMAL OUTLET PRESSURE of which the value is mapped to the Scale KILOPASCAL"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:B0680CE8FC714E6086DE23105A57EEA8 rdf:type dm:ClassOfIndirectProperty;

     rdfs:subclassOf rdl:RDS358874 ; # DENSITY

     skos:definition "a DENSITY of which the value is mapped to the Scale KILOGRAM PER METRE CUBED"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:CB119DD8E10847DBB72B293A837C58C3 rdf:type dm:ClassOfIndirectProperty;

     rdfs:subclassOf rdl:RDS13107740 ; # AVERAGE VELOCITY

     skos:definition "an AVERAGE VELOCITY of which the value is mapped to the Scale METRE PER SECOND"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:CC3E589E120D4E1BACF31E279DF627A3 rdf:type dm:ClassOfIndirectProperty;

     rdfs:subclassOf rdl:RDS362609 ; # HEAD

     skos:definition "a HEAD of which the value is mapped to the Scale METRE"@en ;

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# NOTE - In order to make these six definitions computer-interpretable we would need to use templates. That has been left out here.


Code for the variables

@prefix : <http://www.p1234.xyz-corp.com/> .

@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

@prefix owl: <http://www.w3.org/2002/07/owl#> .

@prefix skos: <http://www.w3.org/2004/02/skos/core#> .

@prefix dm: <http://data.15926.org/dm/> .

@prefix edm: <http://data.15926.org/edm/> .

@prefix meta: <http://data.15926.org/meta/> .

@prefix tpl: <http://data.15926.org/tpl/> .

@prefix rdl: <http://data.15926.org/rdl/> .

@prefix xyzrdl: <http://www.rdl.xyz-corp.com/> . # local RDL extension

 

#    ////////////////////////////////////////////////////////////////

#    //

#    // THIS ONTOLOGY REPRESENTS AN EQUATION WITH DETAILED VARIABLES

#    //

#    ////////////////////////////////////////////////////////////////

 

#    ///////////////////

#    //

#    // DECLARED OBJECTS

#    //

#    ///////////////////

 

# Declaration and tagging of Unit Operation UO137

:UO137 rdf:type dm:ClassOfActivity ;

     rdfs:subclassOf xyzrdl:74B3781BF1F8486E8E8DE34D1193C6D7 ; # UO_CENTRIFUGAL_PUMP

     meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:AFD07A9DE0F14E14AA05A84CBFAA2897 rdf:type tpl:ClassifiedIdentificationOfIndividual ;

     tpl:hasIdentifier :UO137 ;

     tpl:valIdentifier "UO137" ;

     tpl:hasIdentificationType rdl:RDSNEW002 ; # IDENTIFICATION WITH PROCESS DESIGN TAG

     meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Declaration and tagging of Pump P137

:P137 rdf:type dm:ClassOfInanimatePhysicalObject ;

     rdfs:subclassOf rdl:RDS416834 ; # CENTRIFUGAL PUMP

     meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:753DB726F46145E18CB632823225DA00 rdf:type tpl:ClassifiedIdentificationOfIndividual ;

     tpl:hasIdentifier :P137 ;

     tpl:valIdentifier "P137" ;

     tpl:hasIdentificationType rdl:RDSNEW002 ; # IDENTIFICATION WITH PROCESS DESIGN TAG

     meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Declaration and tagging of Stream STRM137in

:STRM137in rdf:type edm:ClassOfStream ;

     rdfs:subclassOf rdl:RDS436813371 ; # ISO 15926-4 STREAM

     meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:20EF46BE74AB48208011DB2DEF12B7E8 rdf:type tpl:ClassifiedIdentificationOfIndividual ;

     tpl:hasIdentifier :STRM137in ;

     tpl:valIdentifier "STRM137in" ;

     tpl:hasIdentificationType rdl:RDSNEW002 ; # IDENTIFICATION WITH PROCESS DESIGN TAG

     meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Declaration and tagging of Stream STRM137out

:STRM137out rdf:type edm:ClassOfStream ;

     rdfs:subclassOf rdl:RDS436813371 ; # ISO 15926-4 STREAM

     meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

:D0798298B72941EBB2340D4E30C12A7C rdf:type tpl:ClassifiedIdentificationOfIndividual ;

     tpl:hasIdentifier :STRM137out ;

     tpl:valIdentifier "STRM137out" ;

     tpl:hasIdentificationType rdl:RDSNEW002 ; # IDENTIFICATION WITH PROCESS DESIGN TAG

     meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

     meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

 

#    //////////////////////////////////////////////////////////////

#    //

#    // INSTANTIATING THE TEMPLATE FunctionalMappingOf5ExpressReals

#    //

#    //////////////////////////////////////////////////////////////

 

:87D68D3F4F6448B3ABC99D4424206362 rdf:type tpl:FunctionalMappingOf5ExpressReals ;

    tpl:valInput1 "211.8"^^xsd:decimal ;

    tpl:valInput2 "584.3"^^xsd:decimal ;

    tpl:valInput3 "1237"^^xsd:decimal ;

    tpl:valInput4 "5.3"^^xsd:decimal ;

    tpl:valInput5 "9.81"^^xsd:decimal ;

    tpl:valResult "32.12"^^xsd:decimal ;

    tpl:hasFunction xyzrdl:4EF2213A315240F7A820FCDB2C61C88E ;

    meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

    meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# NOTE - The above template instance can only be populated with a SPARQL query result, where the values of the role tpl:valPropertyValue of the templates for variables (below) are being used. There cannot be a permanent link because, other than ExpressReal with its 'content' property, RDF datatypes cannot have a URI.

 

#    ///////////////////////////

#    //

#    // TEMPLATES FOR VARIABLES

#    //

#    ///////////////////////////

 

# Template for inlet pressure p1

:D0798298B72941EBB2340D4E30C12A7C rdf:type tpl:ClassOfIndividualHasIndirectPropertyWithValue ;

    tpl:hasPossessorType :STRM137in ;

    tpl:hasIndirectPropertyType rdl:RDS7343782 ; # NORMAL INLET PRESSURE

    tpl:valPropertyValue "211.8"^^xsd:decimal ;

    tpl:hasScale rdl:RDS1330559 ; # KILOPASCAL

    meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

    meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Template for density ρ

:735EC4CCB35146CA97815C4048B5BB02 rdf:type tpl:ClassOfIndividualHasPropertyWithValue ;

    tpl:hasPossessorType :STRM137in ;

    tpl:hasPropertyType rdl:RDS358874 ; # DENSITY

    tpl:valPropertyValue "1237"^^xsd:decimal ;

    tpl:hasScale rdl:RDS1354454 ; # KILOGRAM PER METRE CUBED

    meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

    meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Template for outlet pressure p2

:6742BC68C09B4D42A463531B194300C0 rdf:type tpl:ClassOfIndividualHasIndirectPropertyWithValue ;

    tpl:hasPossessorType :STRM137out ;

    tpl:hasIndirectPropertyType rdl:RDS14261705 ; # NORMAL OUTLET PRESSURE

    tpl:valPropertyValue "584.3"^^xsd:decimal ;

    tpl:hasScale rdl:RDS1330559 ; # KILOPASCAL

    meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

    meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Template for outlet fluid velocity v2

:835A33699AD042A4A63EE46A41E8ED33 rdf:type tpl:ClassOfIndividualHasIndirectPropertyWithValue ;

    tpl:hasPossessorType :STRM137out ;

    tpl:hasIndirectPropertyType rdl:RDS13107740 ; # AVERAGE VELOCITY

    tpl:valPropertyValue "5.3"^^xsd:decimal ;

    tpl:hasScale rdl:RDS1354499 ; # METRE PER SECOND

    meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

    meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .

# Template for head h

:3CD1FB18A2D84C7680E64D60D1E6864B rdf:type tpl:ClassOfIndividualHasIndirectPropertyWithValue ;

    tpl:hasPossessorType :P137 ;

    tpl:hasIndirectPropertyType rdl:RDS362609 ; # HEAD

    tpl:valPropertyValue "32.12"^^xsd:decimal ;

    tpl:hasScale rdl:RDS1332674 ; # METRE

    meta:lifecycleActivity rdl:RDS9648872 ; # PROCESS DESIGN

    meta:valEffectiveDate "2015-04-26T11:41:35Z"^^xsd:dateTime .