]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph
Adding new mappable attributes for vertices and edges
[simantics/district.git] / org.simantics.district.network.ontology / graph / DistrictNetwork.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 DIA = <http://www.simantics.org/Diagram-2.2>
3 STR = <http://www.simantics.org/Structural-1.2>
4 MOD = <http://www.simantics.org/Modeling-1.2>
5 VP = <http://www.simantics.org/Viewpoint-1.2>
6 IMAGE = <http://www.simantics.org/Image2-1.2>
7 SEL = <http://www.simantics.org/SelectionView-1.2>
8 SEL_UI = <http://www.simantics.org/SelectionViewUI-1.1>
9 G2D = <http://www.simantics.org/G2D-1.1>
10
11 DN = <http://www.simantics.org/DistrictNetwork-1.0> : L0.Ontology
12     @L0.new
13     L0.Ontology.global true
14     L0.HasResourceClass "org.simantics.district.network.ontology.DistrictNetworkResource"
15
16 // ----------------------------------------------------------------------------
17
18 DN.SCLMain : L0.SCLModule
19     L0.SCLModule.definition
20         """
21 include "Simantics/District/SCLMain"
22 """
23
24 // ----------------------------------------------------------------------------
25
26 defProperty : L0.Template
27     @template %subject %label %range
28         %subject <R L0.HasProperty : SEL.GenericParameterType
29             L0.HasLabel %label : L0.String
30             L0.HasRange %range
31
32 // ----------------------------------------------------------------------------
33
34 DN.Diagram <T DIA.Diagram
35     >-- DN.Diagram.trackChangesEnabled <R L0.HasProperty : SEL.GenericParameterType
36         --> L0.Boolean
37         L0.HasLabel "Track changes"
38     >-- DN.Diagram.splitToMultipleEnabled <R L0.HasProperty : SEL.GenericParameterType
39         --> L0.Boolean
40         L0.HasLabel "Split To Multiple Diagrams"
41     
42     @L0.assert DN.Diagram.trackChangesEnabled true
43     @L0.assert DN.Diagram.splitToMultipleEnabled true
44
45 DN.Layer <T DIA.Layer
46 DN.Connection <T DIA.Connection
47 DN.Element <T DIA.Element : L0.Type
48
49 DN.Vertex <T DN.Element
50     >-- DN.Vertex.HasDiameter
51         @defProperty "Diameter" L0.Double
52     >-- DN.Vertex.HasElevation
53         @defProperty "Elevation" L0.Double
54     >-- DN.Vertex.HasAltElevation
55         @defProperty "Alternative Elevation" L0.Double
56     >-- DN.Vertex.HasAddress
57         @defProperty "Address" L0.String
58     >-- DN.Vertex.HasSupplyTemperature
59         @defProperty "Supply Temperature" L0.Double 
60     >-- DN.Vertex.HasReturnTemperature 
61         @defProperty "Return Temperature" L0.Double
62     >-- DN.Vertex.HasSupplyPressure
63         @defProperty "Supply Pressure" L0.Double 
64     >-- DN.Vertex.HasReturnPressure
65         @defProperty "Return Pressure" L0.Double 
66     >-- DN.Vertex.HasDeltaPressure
67         @defProperty "Delta pressure" L0.Double 
68     >-- DN.Vertex.HasDeltaTemperature
69         @defProperty "Delta temperature" L0.Double
70     >-- DN.Vertex.HasNominalDT
71         @defProperty "Nominal DT" L0.Double
72     >-- DN.Vertex.HasHeatPower
73         @defProperty "Heat Power" L0.Double
74     >-- DN.Vertex.HasPeakPower
75         @defProperty "Peak Power" L0.Double 
76     >-- DN.Vertex.HasNominalHeadM
77         @defProperty "NominalHeadM" L0.Double 
78     >-- DN.Vertex.HasNominalHeadB
79         @defProperty "NominalHeadB" L0.Double 
80     >-- DN.Vertex.HasNominalFlow
81         @defProperty "Nominal Flow" L0.Double 
82     >-- DN.Vertex.HasMaximumHeadM
83         @defProperty "Maximum head M" L0.Double 
84     >-- DN.Vertex.HasHeatLoadDs
85         @defProperty "Heat Load ds" L0.Double 
86     >-- DN.Vertex.HasMassFlow
87         @defProperty "Mass Flow" L0.Double 
88     >-- DN.Vertex.HasVolFlow
89         @defProperty "Vol Flow" L0.Double 
90     >-- DN.Vertex.HasVelocity
91         @defProperty "Velocity" L0.Double 
92     >-- DN.Vertex.HasFlowArea
93         @defProperty "Flow Area" L0.Double 
94     >-- DN.Vertex.HasValvePosition
95         @defProperty "Valve position" L0.Double 
96     >-- DN.Vertex.HasNominalPressureLoss
97         @defProperty "Nominal Pressure Loss" L0.Double
98     >-- DN.Vertex.HasPumpInReturnLine
99         @defProperty "Pump in Return Line" L0.Double
100     >-- DN.Vertex.HasHeadPumpMaximum
101         @defProperty "Head pump maximum" L0.Double
102     >-- DN.Vertex.HasHeadPumpNominal
103         @defProperty "Head pump nominal" L0.Double
104     >-- DN.Vertex.HasFrequencyConverterControlled
105         @defProperty "Frequency Converter Controlled" L0.Double
106     >-- DN.Vertex.HasInternalValveMeasurement
107         @defProperty "Internal Valve Measurement" L0.Double
108     >-- DN.Vertex.HasPumpMassFlowNominal
109         @defProperty "Pump Mass Flow Nominal" L0.Double
110     >-- DN.Vertex.HasPumpMeMax
111         @defProperty "Pump Me Max" L0.Double
112     >-- DN.Vertex.HasPumpMeMin
113         @defProperty "Pump Me Min" L0.Double
114     >-- DN.Vertex.HasPumpSpeedMax
115         @defProperty "Pump Speed Max" L0.Double
116     >-- DN.Vertex.HasPumpSpeedMin
117         @defProperty "Pump Speed Min" L0.Double
118     >-- DN.Vertex.HasPumpSupplyOn
119         @defProperty "Pump Supply On" L0.Boolean
120     >-- DN.Vertex.HasPumpReturnOn
121         @defProperty "Pump Return On" L0.Boolean
122     >-- DN.Vertex.HasPumpInSupplyLine
123         @defProperty "Pump In Supply Line" L0.Boolean
124     >-- DN.Vertex.HasValveReturnLine
125         @defProperty "Valve Return Line" L0.Double
126     >-- DN.Vertex.HasValveMeMax
127         @defProperty "Valve Me Max" L0.Double
128     >-- DN.Vertex.HasValveMeMin
129         @defProperty "Valve Me Min" L0.Double
130     >-- DN.Vertex.HasValveMinPosition
131         @defProperty "Valve Min Position" L0.Double
132     >-- DN.Vertex.HasValveOutletMode
133         @defProperty "Valve Outlet Mode" L0.Double
134     >-- DN.Vertex.HasValvePressLossNominal
135         @defProperty "Valve Press Loss Nominal" L0.Double
136     >-- DN.Vertex.HasOpeningTime 
137         @defProperty "Opening Time" L0.Double
138     @L0.assert DN.Vertex.HasElevation 0.0
139
140 DN.Edge <T DN.Element
141     >-- DN.Edge.HasElevation
142         @defProperty "Elevation" L0.Double
143     >-- DN.Edge.HasLength 
144         @defProperty "Length" L0.Double
145         L0.readOnly true
146     >-- DN.Edge.HasGeometry
147         @defProperty "Detailed Geometry" L0.DoubleArray
148     >-- DN.Edge.HasDiameter
149         @defProperty "Diameter" L0.Double
150     >-- DN.Edge.HasOuterDiameter
151         @defProperty "Outer Diameter" L0.Double
152     >-- DN.Edge.HasNominalMassFlow
153         @defProperty "Nominal Mass Flow" L0.Double
154     >-- DN.Edge.HasFlowArea
155         @defProperty "Flow Area" L0.Double
156     >-- DN.Edge.HasKReturn
157         @defProperty "K Return" L0.Double
158     >-- DN.Edge.HasKSupply
159         @defProperty "K Supply" L0.Double
160     >-- DN.Edge.HasTGround
161         @defProperty "T Ground" L0.Double
162     >-- DN.Edge.HasType
163         @defProperty "Pipe Type" L0.String
164     >-- DN.Edge.HasPipeCode
165         @defProperty "Pipe Code" L0.String
166     >-- DN.Edge.HasInstallationYear
167         @defProperty "Installation Year" L0.Integer
168     >-- DN.Edge.HasWallThickness
169         @defProperty "Wall Thickness" L0.Double
170     >-- DN.Edge.HasInsulationConductivity
171         @defProperty "Insulation Conductivity" L0.Double
172     >-- DN.Edge.HasPipeSizeDN
173         @defProperty "Pipe Size DN" L0.Integer
174     >-- DN.Edge.HasRoughness
175         @defProperty "Roughness" L0.Double
176     >-- DN.Edge.HasStructure
177         @defProperty "Structure" L0.String
178     >-- DN.Edge.HasInsulationClass
179         @defProperty "Insulation Class" L0.String
180     >-- DN.Edge.HasConductance
181         @defProperty "Conductance" L0.Double
182     @L0.assert DN.Edge.HasDiameter 100.0
183     @L0.assert DN.Edge.HasOuterDiameter 125.0
184
185 // ----------------------------------------------------------------------------
186
187 DN.EdgeDefaultMapping <R L0.HasProperty : DN.EdgeMappingParameterType
188     L0.HasLabel "Default Edge mapping"
189
190 DN.VertexDefaultMapping <R L0.HasProperty : DN.VertexMappingParameterType
191     L0.HasLabel "Default Vertex mapping"
192
193 DN.RightClickDefaultMapping <R L0.HasProperty : DN.VertexMappingParameterType
194     L0.HasLabel "Right click Vertex mapping"
195
196 DN.LeftClickDefaultMapping <R L0.HasProperty : DN.VertexMappingParameterType
197     L0.HasLabel "Left click Vertex mapping"
198
199 DN.Diagram.DefaultPipeTechTypeId <R L0.HasProperty : SEL.GenericParameterType
200     L0.HasLabel "Default Pipe Tech Type ID"
201
202
203 // ----------------------------------------------------------------------------
204
205 DN.Functions : L0.Library
206
207 DN.VertexMappingParameterType <T SEL.GenericParameterType
208   @L0.assert SEL.HasDisplayValue
209     _ : SEL.DisplayValue
210       SEL.HasEnumerationValues DN.Functions.enumerationValues : L0.Function
211       SEL.HasCustomModifier DN.Functions.defaultVertexMappingModifier : L0.Function
212
213 DN.EdgeMappingParameterType <T SEL.GenericParameterType
214   @L0.assert SEL.HasDisplayValue
215     _ : SEL.DisplayValue
216       SEL.HasEnumerationValues DN.Functions.enumerationValues
217       SEL.HasCustomModifier DN.Functions.defaultEdgeMappingModifier : L0.Function
218
219 DN.MappingParameterType <T SEL.GenericParameterType
220   @L0.assert SEL.HasDisplayValue
221     _ : SEL.DisplayValue
222       SEL.HasEnumerationValues DN.Functions.enumerationValues
223       SEL.HasCustomModifier DN.Functions.mappingModifier : L0.Function
224
225 // ----------------------------------------------------------------------------
226
227 DN.HasMapping <R L0.HasProperty : DN.MappingParameterType
228     L0.HasLabel "Mapping"
229
230 DN.HasId --> L0.String <R L0.HasProperty : SEL.GenericParameterType
231     L0.HasLabel "Id"
232     L0.readOnly false
233
234 DN.HasRegion --> L0.String <R L0.HasProperty : SEL.GenericParameterType
235     L0.HasLabel "Region"
236     L0.readOnly false
237
238 DN.InLayer
239     @L0.defTag 
240     @L0.tag L0.Abstract
241
242 DN.HasInLayerTag <R L0.HasProperty
243     L0.HasRange L0.Tag
244
245 // For associating diagram source and instance structures with each other
246 DN.Diagram.MappedDiagram <R L0.IsWeaklyRelatedTo
247     L0.InverseOf DN.Diagram.MappedFromDiagram <R L0.IsWeaklyRelatedTo
248 DN.MappedComponent <R L0.IsWeaklyRelatedTo
249     L0.InverseOf DN.MappedFromElement <R L0.IsWeaklyRelatedTo
250
251 // Dynamic Visualisations
252
253 DN.VisualisationsFolder <T L0.Entity
254
255 DN.Diagram.Visualisations <T L0.Entity
256     >-- DN.Diagram.Visualisations.Interval
257         @defProperty "Interval" L0.Long
258     >-- DN.Diagram.Visualisations.DisabledUpdates
259         @defProperty "Disabled Updates" L0.Boolean
260     >-- DN.Diagram.Visualisations.ResetVisualisation
261         @defProperty "Reset Visualisations" L0.Boolean
262     >-- DN.Diagram.Visualisations.ShowColorBars
263         @defProperty "Show Color Bars" L0.Boolean
264     >-- DN.Diagram.Visualisations.ShowColorBarTicks
265         @defProperty "Show Color Bar Ticks" L0.Boolean
266     >-- DN.Diagram.Visualisations.UseColorBarGradients
267         @defProperty "Use Color Bar Gradients" L0.Boolean
268     >-- DN.Diagram.Visualisations.ColorBarLocation
269         @defProperty "Color Bar Location" L0.String
270     >-- DN.Diagram.Visualisations.ColorBarSize
271         @defProperty "Color Bar Size" L0.String
272     >-- DN.Diagram.Visualisations.ShowSizeBars
273         @defProperty "Show Size Bars" L0.Boolean
274     >-- DN.Diagram.Visualisations.ShowSizeBarTicks
275         @defProperty "Show Size Bar Ticks" L0.Boolean
276     >-- DN.Diagram.Visualisations.UseSizeBarGradients
277         @defProperty "Use Size Bar Gradients" L0.Boolean
278     >-- DN.Diagram.Visualisations.SizeBarLocation
279         @defProperty "Size Bar Location" L0.String
280     >-- DN.Diagram.Visualisations.SizeBarSize
281         @defProperty "Size Bar Size" L0.String
282     >-- DN.Diagram.Visualisations.HideEdges
283         @defProperty "Hide Edges" L0.Boolean
284     >-- DN.Diagram.Visualisations.HidePoints
285         @defProperty "Hide Points" L0.Boolean
286     >-- DN.Diagram.Visualisations.HideConsumers
287         @defProperty "Hide Consumers" L0.Boolean
288     >-- DN.Diagram.Visualisations.HideProducers
289         @defProperty "Hide Producers" L0.Boolean
290     >-- DN.Diagram.Visualisations.HideValves
291         @defProperty "Hide Valves" L0.Boolean
292     >-- DN.Diagram.Visualisations.HidePumpingStations
293         @defProperty "Hide Pumping Stations" L0.Boolean
294     >-- DN.Diagram.Visualisations.StaticPropertiesNetworkBranches
295         @defProperty "Static Properties Network Branches" L0.Boolean
296     >-- DN.Diagram.Visualisations.StaticPropertiesPoints
297         @defProperty "Static Properties Points" L0.Boolean
298     >-- DN.Diagram.Visualisations.StaticPropertiesConsumers
299         @defProperty "Static Properties Consumers" L0.Boolean
300     >-- DN.Diagram.Visualisations.DynamicSymbolsShutoffValves
301         @defProperty "Dynamic Symbols Shutoff Valves" L0.Boolean
302     >-- DN.Diagram.Visualisations.DynamicSymbolsProducers
303         @defProperty "Dynamic Symbols Producers" L0.Boolean
304     >-- DN.Diagram.Visualisations.DynamicSymbolsValves
305         @defProperty "Dynamic Symbols Valves" L0.Boolean
306     >-- DN.Diagram.Visualisations.DynamicSymbolsPumpingStations
307         @defProperty "Dynamic Symbols Pumping Stations" L0.Boolean
308     >-- DN.Diagram.Visualisations.KeyVariableVertexHover
309         @defProperty "Key Variables for Vertices on Hover" L0.Boolean
310     >-- DN.Diagram.Visualisations.KeyVariableEdgeHover
311         @defProperty "Key Variables for Edges on Hover" L0.Boolean
312     >-- DN.Diagram.Visualisations.ShowElevationServerBoundingBox
313         @defProperty "Show Elevation server bounding box" L0.Boolean
314     >-- DN.Diagram.Visualisations.NotInSimulation
315         @defProperty "Not in Simulation" L0.Boolean
316     >-- DN.Diagram.Visualisations.ShowConnectedComponents
317         @defProperty "Show Connected Components" L0.Boolean
318
319 DN.Diagram.Visualisations.ColorContribution <T L0.Entity
320 DN.Diagram.Visualisations.SizeContribution <T L0.Entity
321 DN.Diagram.Visualisations.ArrowContribution <T L0.Entity
322
323 DN.Diagram.Visualisations.colorContributions <R L0.HasProperty
324 DN.Diagram.Visualisations.sizeContributions <R L0.HasProperty
325 DN.Diagram.Visualisations.arrowContributions <R L0.HasProperty
326
327 DN.Diagram.Visualisations.colorContributionContributorName <R L0.HasProperty
328 DN.Diagram.Visualisations.colorContributionLabel <R L0.HasProperty
329 DN.Diagram.Visualisations.colorContributionModuleName <R L0.HasProperty
330 DN.Diagram.Visualisations.colorContributionModuleAttribute <R L0.HasProperty
331 DN.Diagram.Visualisations.colorContributionUnit <R L0.HasProperty
332 DN.Diagram.Visualisations.colorContributionVariableGain <R L0.HasProperty
333 DN.Diagram.Visualisations.colorContributionVariableBias <R L0.HasProperty
334 DN.Diagram.Visualisations.colorContributionDefaultColorMap <R L0.HasProperty
335 DN.Diagram.Visualisations.colorContributionDefaultMin <R L0.HasProperty
336 DN.Diagram.Visualisations.colorContributionDefaultMax <R L0.HasProperty
337 // for graph persistence only
338 DN.Diagram.Visualisations.colorContributionUsed <R L0.HasProperty
339 DN.Diagram.Visualisations.colorContributionUseDefault <R L0.HasProperty
340
341 DN.Diagram.Visualisations.sizeContributionContributorName <R L0.HasProperty
342 DN.Diagram.Visualisations.sizeContributionLabel <R L0.HasProperty
343 DN.Diagram.Visualisations.sizeContributionModuleName <R L0.HasProperty
344 DN.Diagram.Visualisations.sizeContributionModuleAttribute <R L0.HasProperty
345 DN.Diagram.Visualisations.sizeContributionUnit <R L0.HasProperty
346 DN.Diagram.Visualisations.sizeContributionVariableGain <R L0.HasProperty
347 DN.Diagram.Visualisations.sizeContributionVariableBias <R L0.HasProperty
348 DN.Diagram.Visualisations.sizeContributionDefaultSizeMap <R L0.HasProperty
349 DN.Diagram.Visualisations.sizeContributionDefaultMin <R L0.HasProperty
350 DN.Diagram.Visualisations.sizeContributionDefaultMax <R L0.HasProperty
351 // for graph persistence only
352 DN.Diagram.Visualisations.sizeContributionUsed <R L0.HasProperty
353 DN.Diagram.Visualisations.sizeContributionUseDefault <R L0.HasProperty
354
355 DN.Diagram.Visualisations.arrowContributionContributorName <R L0.HasProperty
356 DN.Diagram.Visualisations.arrowContributionLabel <R L0.HasProperty
357 DN.Diagram.Visualisations.arrowContributionModuleName <R L0.HasProperty
358 DN.Diagram.Visualisations.arrowContributionModuleAttribute <R L0.HasProperty
359 DN.Diagram.Visualisations.arrowContributionVariableGain <R L0.HasProperty
360 DN.Diagram.Visualisations.arrowContributionVariableBias <R L0.HasProperty
361 // for graph persistence only
362 DN.Diagram.Visualisations.arrowContributionUsed <R L0.HasProperty
363 DN.Diagram.Visualisations.arrowContributionUseDefault <R L0.HasProperty
364
365 // End of dynamic visualisations
366
367 DN.AddLayerToDNDiagramTemplate <T L0.Template
368
369 DN.EPSG_4326 : DN.SpatialRefSystem
370     L0.HasLabel "EPSG:4326"
371     DN.HasSRID 4326
372
373 DN.SpatialRefSystem <T L0.Property
374     L0.readOnly true
375
376 DN.HasSpatialRefSystem <R L0.HasProperty : SEL.GenericParameterType
377     L0.HasRange DN.SpatialRefSystem
378     L0.HasLabel "Spatial Reference System"
379
380 DN.HasSRID <R L0.HasProperty
381     L0.HasRange L0.Integer
382
383 DN.HasSRTEXT <R L0.HasProperty
384     L0.HasRange L0.String
385
386 DN.Functions.compositeInstantiator : L0.ExternalValue
387
388 DN.Composite <T STR.Composite
389     STR.Composite.instantiationFunction DN.Functions.compositeInstantiator
390     @L0.assert MOD.HasModelingTemplate
391         _ : MOD.DiagramTemplate
392             MOD.HasDiagramType DN.Diagram
393     @L0.assert MOD.HasModelingTemplate
394         _ : DN.AddLayerToDNDiagramTemplate
395
396 DN.HasStartVertex <R L0.DependsOn
397     L0.HasDomain DN.Edge
398     L0.HasRange DN.Vertex
399     L0.InverseOf DN.HasStartVertex_Inverse <R L0.IsRelatedTo
400
401 DN.HasEndVertex <R L0.DependsOn
402     L0.HasDomain DN.Edge
403     L0.HasRange DN.Vertex
404     L0.InverseOf DN.HasEndVertex_Inverse <R L0.IsRelatedTo
405
406 // ----------------------------------------------------------------------------
407
408 // Component MAPPING
409 DN.Mapping <T L0.Library
410
411 DN.Functions.convertToValue : L0.ExternalValue
412
413 DN.Mapping.Base <T L0.Value
414   >-- DN.Mapping.Id --> L0.String <R L0.HasProperty
415   >-- DN.Mapping.Region --> L0.String <R L0.HasProperty
416   >-- DN.Mapping.ComponentType --> STR.ComponentType <R L0.DependsOn
417   >-- DN.Mapping.Terminals --> DN.Mapping.TerminalPair <R L0.HasProperty
418   @L0.assert L0.ConvertsToValueWith DN.Functions.convertToValue
419
420 DN.Mapping.HasPropertyRelation <R L0.HasProperty
421
422 DN.Mapping.Terminal <T L0.Entity
423     L0.HasRange L0.String
424
425 DN.Mapping.TerminalPair <T L0.Property
426     >-- DN.Mapping.InputTerminal --> DN.Mapping.Terminal <R L0.HasProperty
427     >-- DN.Mapping.OutputTerminal --> DN.Mapping.Terminal <R L0.HasProperty
428
429 DN.Mapping.VertexMapping <T DN.Mapping.Base
430     // Common
431     >-- DN.Mapping.VertexMapping.ElevationAttribute --> L0.String <R L0.HasProperty
432         DN.Mapping.HasPropertyRelation DN.Vertex.HasElevation
433     >-- DN.Mapping.VertexMapping.ElevationAltAttribute --> L0.String <R L0.HasProperty
434         DN.Mapping.HasPropertyRelation DN.Vertex.HasAltElevation
435     >-- DN.Mapping.VertexMapping.SupplyTemperatureAttribute --> L0.String <R L0.HasProperty
436         DN.Mapping.HasPropertyRelation DN.Vertex.HasSupplyTemperature
437     >-- DN.Mapping.VertexMapping.ReturnTemperatureAttribute --> L0.String <R L0.HasProperty
438         DN.Mapping.HasPropertyRelation DN.Vertex.HasReturnTemperature
439     >-- DN.Mapping.VertexMapping.SupplyPressureAttribute --> L0.String <R L0.HasProperty
440         DN.Mapping.HasPropertyRelation DN.Vertex.HasSupplyPressure
441     >-- DN.Mapping.VertexMapping.ReturnPressureAttribute --> L0.String <R L0.HasProperty
442         DN.Mapping.HasPropertyRelation DN.Vertex.HasReturnPressure
443     >-- DN.Mapping.VertexMapping.DeltaPressureAttribute --> L0.String <R L0.HasProperty
444         DN.Mapping.HasPropertyRelation DN.Vertex.HasDeltaPressure
445     >-- DN.Mapping.VertexMapping.DeltaTemperatureAttribute --> L0.String <R L0.HasProperty
446         DN.Mapping.HasPropertyRelation DN.Vertex.HasDeltaTemperature
447     >-- DN.Mapping.VertexMapping.XAttribute --> L0.String <R L0.HasProperty
448     >-- DN.Mapping.VertexMapping.YAttribute --> L0.String <R L0.HasProperty
449     >-- DN.Mapping.VertexMapping.DiameterAttribute --> L0.String <R L0.HasProperty
450         DN.Mapping.HasPropertyRelation DN.Vertex.HasDiameter
451     // Production
452     >-- DN.Mapping.VertexMapping.dpAttribute --> L0.String <R L0.HasProperty
453         DN.Mapping.HasPropertyRelation DN.Vertex.HasDeltaPressure
454     >-- DN.Mapping.VertexMapping.dtAttribute --> L0.String <R L0.HasProperty
455         DN.Mapping.HasPropertyRelation DN.Vertex.HasDeltaTemperature
456     >-- DN.Mapping.VertexMapping.HeatPowerAttribute --> L0.String <R L0.HasProperty
457         DN.Mapping.HasPropertyRelation DN.Vertex.HasHeatPower
458     >-- DN.Mapping.VertexMapping.PeakPowerAttribute --> L0.String <R L0.HasProperty
459         DN.Mapping.HasPropertyRelation DN.Vertex.HasPeakPower
460     >-- DN.Mapping.VertexMapping.NominalHeadMAttribute --> L0.String <R L0.HasProperty
461         DN.Mapping.HasPropertyRelation DN.Vertex.HasNominalHeadM
462     >-- DN.Mapping.VertexMapping.NominalHeadBAttribute --> L0.String <R L0.HasProperty
463         DN.Mapping.HasPropertyRelation DN.Vertex.HasNominalHeadB
464     >-- DN.Mapping.VertexMapping.NominalFlowAttribute --> L0.String <R L0.HasProperty
465         DN.Mapping.HasPropertyRelation DN.Vertex.HasNominalFlow
466     >-- DN.Mapping.VertexMapping.MaximumHeadMAttribute --> L0.String <R L0.HasProperty
467         DN.Mapping.HasPropertyRelation DN.Vertex.HasMaximumHeadM
468     // Consumers
469     >-- DN.Mapping.VertexMapping.HeatLoadDsAttribute --> L0.String <R L0.HasProperty
470         DN.Mapping.HasPropertyRelation DN.Vertex.HasHeatLoadDs
471     >-- DN.Mapping.VertexMapping.AddressAttribute --> L0.String <R L0.HasProperty
472         DN.Mapping.HasPropertyRelation DN.Vertex.HasAddress
473     >-- DN.Mapping.VertexMapping.MassFlowAttribute --> L0.String <R L0.HasProperty
474         DN.Mapping.HasPropertyRelation DN.Vertex.HasMassFlow
475     >-- DN.Mapping.VertexMapping.VolFlowAttribute --> L0.String <R L0.HasProperty
476         DN.Mapping.HasPropertyRelation DN.Vertex.HasVolFlow
477     >-- DN.Mapping.VertexMapping.VelocityAttribute --> L0.String <R L0.HasProperty
478         DN.Mapping.HasPropertyRelation DN.Vertex.HasVelocity
479     >-- DN.Mapping.VertexMapping.FlowAreaAttribute --> L0.String <R L0.HasProperty
480         DN.Mapping.HasPropertyRelation DN.Vertex.HasFlowArea
481     >-- DN.Mapping.VertexMapping.ValvePositionAttribute --> L0.String <R L0.HasProperty
482         DN.Mapping.HasPropertyRelation DN.Vertex.HasValvePosition
483     >-- DN.Mapping.VertexMapping.NominalPressureLossAttribute --> L0.String <R L0.HasProperty
484         DN.Mapping.HasPropertyRelation DN.Vertex.HasNominalPressureLoss
485     >-- DN.Mapping.VertexMapping.NominalMassFlowAttribute --> L0.String <R L0.HasProperty
486         DN.Mapping.HasPropertyRelation DN.Vertex.HasNominalFlow
487
488     // pumping station
489     >-- DN.Mapping.VertexMapping.HeadPumpMaximumAttribute --> L0.String <R L0.HasProperty
490         DN.Mapping.HasPropertyRelation DN.Vertex.HasHeadPumpMaximum
491     >-- DN.Mapping.VertexMapping.HeadPumpNominalAttribute --> L0.String <R L0.HasProperty
492         DN.Mapping.HasPropertyRelation DN.Vertex.HasHeadPumpNominal
493     >-- DN.Mapping.VertexMapping.FrequencyConverterControlledAttribute --> L0.String <R L0.HasProperty
494         DN.Mapping.HasPropertyRelation DN.Vertex.HasFrequencyConverterControlled
495     >-- DN.Mapping.VertexMapping.InternalValveMeasurementAttribute --> L0.String <R L0.HasProperty
496         DN.Mapping.HasPropertyRelation DN.Vertex.HasInternalValveMeasurement
497     >-- DN.Mapping.VertexMapping.PumpInSupplyLineAttribute --> L0.String <R L0.HasProperty
498         DN.Mapping.HasPropertyRelation DN.Vertex.HasPumpInSupplyLine
499     >-- DN.Mapping.VertexMapping.PumpInReturnLineAttribute --> L0.String <R L0.HasProperty
500         DN.Mapping.HasPropertyRelation DN.Vertex.HasPumpInReturnLine
501     >-- DN.Mapping.VertexMapping.PumpMassFlowNominalAttribute --> L0.String <R L0.HasProperty
502         DN.Mapping.HasPropertyRelation DN.Vertex.HasPumpMassFlowNominal
503     >-- DN.Mapping.VertexMapping.PumpMeMaxAttribute --> L0.String <R L0.HasProperty
504         DN.Mapping.HasPropertyRelation DN.Vertex.HasPumpMeMax
505     >-- DN.Mapping.VertexMapping.PumpMeMinAttribute --> L0.String <R L0.HasProperty
506         DN.Mapping.HasPropertyRelation DN.Vertex.HasPumpMeMin
507     >-- DN.Mapping.VertexMapping.PumpSpeedMaxAttribute --> L0.String <R L0.HasProperty
508         DN.Mapping.HasPropertyRelation DN.Vertex.HasPumpSpeedMax
509     >-- DN.Mapping.VertexMapping.PumpSpeedMinAttribute --> L0.String <R L0.HasProperty
510         DN.Mapping.HasPropertyRelation DN.Vertex.HasPumpSpeedMin
511     >-- DN.Mapping.VertexMapping.ValveReturnLineAttribute --> L0.String <R L0.HasProperty
512         DN.Mapping.HasPropertyRelation DN.Vertex.HasValveReturnLine
513     >-- DN.Mapping.VertexMapping.ValveMeMaxAttribute --> L0.String <R L0.HasProperty
514         DN.Mapping.HasPropertyRelation DN.Vertex.HasValveMeMax
515     >-- DN.Mapping.VertexMapping.ValveMeMinAttribute --> L0.String <R L0.HasProperty
516         DN.Mapping.HasPropertyRelation DN.Vertex.HasValveMeMin
517     >-- DN.Mapping.VertexMapping.ValveMinPositionAttribute --> L0.String <R L0.HasProperty
518         DN.Mapping.HasPropertyRelation DN.Vertex.HasValveMinPosition
519     >-- DN.Mapping.VertexMapping.ValveOutletModeAttribute --> L0.String <R L0.HasProperty
520         DN.Mapping.HasPropertyRelation DN.Vertex.HasValveOutletMode
521     >-- DN.Mapping.VertexMapping.ValvePressLossNominalAttribute --> L0.String <R L0.HasProperty
522         DN.Mapping.HasPropertyRelation DN.Vertex.HasValvePressLossNominal
523     >-- DN.Mapping.VertexMapping.PumpSupplyOnAttribute --> L0.String <R L0.HasProperty
524         DN.Mapping.HasPropertyRelation DN.Vertex.HasPumpSupplyOn
525     >-- DN.Mapping.VertexMapping.PumpReturnOnAttribute --> L0.String <R L0.HasProperty
526         DN.Mapping.HasPropertyRelation DN.Vertex.HasPumpReturnOn
527     >-- DN.Mapping.VertexMapping.NominalDTAttribute --> L0.String <R L0.HasProperty
528         DN.Mapping.HasPropertyRelation DN.Vertex.HasNominalDT
529     
530     // valve
531     >-- DN.Mapping.VertexMapping.OpeningTimeAttribute --> L0.String <R L0.HasProperty
532         DN.Mapping.HasPropertyRelation DN.Vertex.HasOpeningTime
533     
534 DN.Mapping.EdgeMapping <T DN.Mapping.Base
535     >-- DN.Mapping.EdgeMapping.LengthAttribute --> L0.String <R L0.HasProperty
536         DN.Mapping.HasPropertyRelation DN.Edge.HasLength 
537     >-- DN.Mapping.EdgeMapping.DiameterAttribute --> L0.String <R L0.HasProperty
538         DN.Mapping.HasPropertyRelation DN.Edge.HasDiameter
539     >-- DN.Mapping.EdgeMapping.OuterDiameterAttribute --> L0.String <R L0.HasProperty
540         DN.Mapping.HasPropertyRelation DN.Edge.HasOuterDiameter
541     >-- DN.Mapping.EdgeMapping.NominalMassFlowAttribute --> L0.String <R L0.HasProperty
542         DN.Mapping.HasPropertyRelation DN.Edge.HasNominalMassFlow
543     >-- DN.Mapping.EdgeMapping.FlowAreaAttribute --> L0.String <R L0.HasProperty
544         DN.Mapping.HasPropertyRelation DN.Edge.HasFlowArea
545     >-- DN.Mapping.EdgeMapping.KReturnAttribute --> L0.String <R L0.HasProperty
546         DN.Mapping.HasPropertyRelation DN.Edge.HasKReturn
547     >-- DN.Mapping.EdgeMapping.KSupplyAttribute --> L0.String <R L0.HasProperty
548         DN.Mapping.HasPropertyRelation DN.Edge.HasKSupply
549     >-- DN.Mapping.EdgeMapping.TGroundAttribute --> L0.String <R L0.HasProperty
550         DN.Mapping.HasPropertyRelation DN.Edge.HasTGround
551     >-- DN.Mapping.EdgeMapping.ElevationAttribute --> L0.String <R L0.HasProperty
552         DN.Mapping.HasPropertyRelation DN.Edge.HasElevation
553     >-- DN.Mapping.EdgeMapping.PipeTypeAttribute --> L0.String <R L0.HasProperty
554         DN.Mapping.HasPropertyRelation DN.Edge.HasType
555     >-- DN.Mapping.EdgeMapping.PipeCodeAttribute --> L0.String <R L0.HasProperty
556         DN.Mapping.HasPropertyRelation DN.Edge.HasPipeCode
557     >-- DN.Mapping.EdgeMapping.InstallationYearAttribute --> L0.String <R L0.HasProperty
558         DN.Mapping.HasPropertyRelation DN.Edge.HasInstallationYear
559     >-- DN.Mapping.EdgeMapping.WallThicknessAttribute --> L0.String <R L0.HasProperty
560         DN.Mapping.HasPropertyRelation DN.Edge.HasWallThickness
561     >-- DN.Mapping.EdgeMapping.InsulationConductivityAttribute --> L0.String <R L0.HasProperty
562         DN.Mapping.HasPropertyRelation DN.Edge.HasInsulationConductivity
563     >-- DN.Mapping.EdgeMapping.PipeSizeDNAttribute --> L0.String <R L0.HasProperty
564         DN.Mapping.HasPropertyRelation DN.Edge.HasPipeSizeDN
565     >-- DN.Mapping.EdgeMapping.RoughnessAttribute --> L0.String <R L0.HasProperty
566         DN.Mapping.HasPropertyRelation DN.Edge.HasRoughness
567     >-- DN.Mapping.EdgeMapping.StructureAttribute --> L0.String <R L0.HasProperty
568         DN.Mapping.HasPropertyRelation DN.Edge.HasStructure
569     >-- DN.Mapping.EdgeMapping.InsulationClassAttribute --> L0.String <R L0.HasProperty
570         DN.Mapping.HasPropertyRelation DN.Edge.HasInsulationClass
571     >-- DN.Mapping.EdgeMapping.ConductanceAttribute --> L0.String <R L0.HasProperty
572         DN.Mapping.HasPropertyRelation DN.Edge.HasConductance
573     >-- DN.Mapping.EdgeMapping.ConductivityAttribute --> L0.String <R L0.HasProperty
574         DN.Mapping.HasPropertyRelation DN.Edge.HasConductance
575
576 // Allowed connection types
577 DN.SupplyConnectionType <T STR.ConnectionType
578
579 DN.SupplyInConnectionType : DN.SupplyConnectionType : STR.InputDirection
580     STR.SupportsDirection DN.SupplyOutConnectionType
581     STR.ConnectionType.isUserSelectable true
582
583 DN.SupplyOutConnectionType : DN.SupplyConnectionType : STR.OutputDirection
584     STR.SupportsDirection DN.SupplyInConnectionType
585     STR.ConnectionType.isUserSelectable true
586
587 DN.ReturnConnectionType <T STR.ConnectionType
588
589 DN.ReturnInConnectionType : DN.ReturnConnectionType : STR.InputDirection
590     STR.SupportsDirection DN.ReturnOutConnectionType
591     STR.ConnectionType.isUserSelectable true
592
593 DN.ReturnOutConnectionType : DN.ReturnConnectionType : STR.OutputDirection
594     STR.SupportsDirection DN.ReturnInConnectionType
595     STR.ConnectionType.isUserSelectable true