1 package org.simantics.district.network.ontology;
3 import org.simantics.db.RequestProcessor;
4 import org.simantics.db.Resource;
5 import org.simantics.db.ReadGraph;
6 import org.simantics.db.request.Read;
7 import org.simantics.db.Session;
8 import org.simantics.db.exception.DatabaseException;
9 import org.simantics.db.service.QueryControl;
11 public class DistrictNetworkResource {
13 public final Resource ActionContext;
14 public final Resource ActionContext_newDiagramContribution;
15 public final Resource Actions;
16 public final Resource Actions_NewDNDiagram;
17 public final Resource AddLayerToDNDiagramTemplate;
18 public final Resource BrowseContext;
19 public final Resource ComponentIdStyle;
20 public final Resource ComponentNameStyle;
21 public final Resource Composite;
22 public final Resource Connection;
23 public final Resource Diagram;
24 public final Resource Diagram_MappedDiagram;
25 public final Resource DistrictProfile;
26 public final Resource DistrictProfile_entry;
27 public final Resource DistrictProfile_entry1;
28 public final Resource DistrictProfile_entry2;
29 public final Resource EPSG_4326;
30 public final Resource Edge;
31 public final Resource EdgeDefaultMapping;
32 public final Resource EdgeDefaultMapping_Inverse;
33 public final Resource EdgeMappingParameterType;
34 public final Resource EdgeNodeStyle;
35 public final Resource Edge_HasDiameter;
36 public final Resource Edge_HasDiameter_Inverse;
37 public final Resource Edge_HasFlowArea;
38 public final Resource Edge_HasFlowArea_Inverse;
39 public final Resource Edge_HasKReturn;
40 public final Resource Edge_HasKReturn_Inverse;
41 public final Resource Edge_HasKSupply;
42 public final Resource Edge_HasKSupply_Inverse;
43 public final Resource Edge_HasLength;
44 public final Resource Edge_HasLength_Inverse;
45 public final Resource Edge_HasNominalMassFlow;
46 public final Resource Edge_HasNominalMassFlow_Inverse;
47 public final Resource Edge_HasOuterDiameter;
48 public final Resource Edge_HasOuterDiameter_Inverse;
49 public final Resource Edge_HasTGround;
50 public final Resource Edge_HasTGround_Inverse;
51 public final Resource Functions;
52 public final Resource Functions_compositeInstantiator;
53 public final Resource Functions_convertToValue;
54 public final Resource Functions_defaultEdgeMappingModifier;
55 public final Resource Functions_defaultVertexMappingModifier;
56 public final Resource Functions_enumerationValues;
57 public final Resource Functions_mappingModifier;
58 public final Resource Groups;
59 public final Resource Groups_ElementGroup;
60 public final Resource HasEndVertex;
61 public final Resource HasEndVertex_Inverse;
62 public final Resource HasId;
63 public final Resource HasId_Inverse;
64 public final Resource HasInLayerTag;
65 public final Resource HasInLayerTag_Inverse;
66 public final Resource HasMapping;
67 public final Resource HasMapping_Inverse;
68 public final Resource HasSRID;
69 public final Resource HasSRID_Inverse;
70 public final Resource HasSRTEXT;
71 public final Resource HasSRTEXT_Inverse;
72 public final Resource HasSolverRVI;
73 public final Resource HasSolverRVI_Inverse;
74 public final Resource HasSpatialRefSystem;
75 public final Resource HasSpatialRefSystem_Inverse;
76 public final Resource HasStartVertex;
77 public final Resource HasStartVertex_Inverse;
78 public final Resource Images;
79 public final Resource Images_MapImage;
80 public final Resource InLayer;
81 public final Resource Layer;
82 public final Resource MappedComponent;
83 public final Resource Mapping;
84 public final Resource MappingParameterType;
85 public final Resource Mapping_Base;
86 public final Resource Mapping_ComponentType;
87 public final Resource Mapping_ComponentType_Inverse;
88 public final Resource Mapping_EdgeMapping;
89 public final Resource Mapping_EdgeMapping_DiameterAttribute;
90 public final Resource Mapping_EdgeMapping_DiameterAttribute_Inverse;
91 public final Resource Mapping_EdgeMapping_FlowAreaAttribute;
92 public final Resource Mapping_EdgeMapping_FlowAreaAttribute_Inverse;
93 public final Resource Mapping_EdgeMapping_KReturnAttribute;
94 public final Resource Mapping_EdgeMapping_KReturnAttribute_Inverse;
95 public final Resource Mapping_EdgeMapping_KSupplyAttribute;
96 public final Resource Mapping_EdgeMapping_KSupplyAttribute_Inverse;
97 public final Resource Mapping_EdgeMapping_LengthAttribute;
98 public final Resource Mapping_EdgeMapping_LengthAttribute_Inverse;
99 public final Resource Mapping_EdgeMapping_NominalMassFlowAttribute;
100 public final Resource Mapping_EdgeMapping_NominalMassFlowAttribute_Inverse;
101 public final Resource Mapping_EdgeMapping_OuterDiameterAttribute;
102 public final Resource Mapping_EdgeMapping_OuterDiameterAttribute_Inverse;
103 public final Resource Mapping_EdgeMapping_TGroundAttribute;
104 public final Resource Mapping_EdgeMapping_TGroundAttribute_Inverse;
105 public final Resource Mapping_Id;
106 public final Resource Mapping_Id_Inverse;
107 public final Resource Mapping_InputTerminal;
108 public final Resource Mapping_InputTerminal_Inverse;
109 public final Resource Mapping_OutputTerminal;
110 public final Resource Mapping_OutputTerminal_Inverse;
111 public final Resource Mapping_Terminal;
112 public final Resource Mapping_TerminalPair;
113 public final Resource Mapping_Terminals;
114 public final Resource Mapping_Terminals_Inverse;
115 public final Resource Mapping_VertexMapping;
116 public final Resource Mapping_VertexMapping_DeltaPressureAttribute;
117 public final Resource Mapping_VertexMapping_DeltaPressureAttribute_Inverse;
118 public final Resource Mapping_VertexMapping_DeltaTemperatureAttribute;
119 public final Resource Mapping_VertexMapping_DeltaTemperatureAttribute_Inverse;
120 public final Resource Mapping_VertexMapping_ElevationAttribute;
121 public final Resource Mapping_VertexMapping_ElevationAttribute_Inverse;
122 public final Resource Mapping_VertexMapping_FlowAreaAttribute;
123 public final Resource Mapping_VertexMapping_FlowAreaAttribute_Inverse;
124 public final Resource Mapping_VertexMapping_HeatLoadDsAttribute;
125 public final Resource Mapping_VertexMapping_HeatLoadDsAttribute_Inverse;
126 public final Resource Mapping_VertexMapping_HeatPowerAttribute;
127 public final Resource Mapping_VertexMapping_HeatPowerAttribute_Inverse;
128 public final Resource Mapping_VertexMapping_MassFlowAttribute;
129 public final Resource Mapping_VertexMapping_MassFlowAttribute_Inverse;
130 public final Resource Mapping_VertexMapping_MaximumHeadMAttribute;
131 public final Resource Mapping_VertexMapping_MaximumHeadMAttribute_Inverse;
132 public final Resource Mapping_VertexMapping_NominalFlowAttribute;
133 public final Resource Mapping_VertexMapping_NominalFlowAttribute_Inverse;
134 public final Resource Mapping_VertexMapping_NominalHeadBAttribute;
135 public final Resource Mapping_VertexMapping_NominalHeadBAttribute_Inverse;
136 public final Resource Mapping_VertexMapping_NominalHeadMAttribute;
137 public final Resource Mapping_VertexMapping_NominalHeadMAttribute_Inverse;
138 public final Resource Mapping_VertexMapping_NominalMassFlowAttribute;
139 public final Resource Mapping_VertexMapping_NominalMassFlowAttribute_Inverse;
140 public final Resource Mapping_VertexMapping_NominalPressureLossAttribute;
141 public final Resource Mapping_VertexMapping_NominalPressureLossAttribute_Inverse;
142 public final Resource Mapping_VertexMapping_ReturnPressureAttribute;
143 public final Resource Mapping_VertexMapping_ReturnPressureAttribute_Inverse;
144 public final Resource Mapping_VertexMapping_ReturnTemperatureAttribute;
145 public final Resource Mapping_VertexMapping_ReturnTemperatureAttribute_Inverse;
146 public final Resource Mapping_VertexMapping_SupplyPressureAttribute;
147 public final Resource Mapping_VertexMapping_SupplyPressureAttribute_Inverse;
148 public final Resource Mapping_VertexMapping_SupplyTemperatureAttribute;
149 public final Resource Mapping_VertexMapping_SupplyTemperatureAttribute_Inverse;
150 public final Resource Mapping_VertexMapping_ValvePositionAttribute;
151 public final Resource Mapping_VertexMapping_ValvePositionAttribute_Inverse;
152 public final Resource Mapping_VertexMapping_VelocityAttribute;
153 public final Resource Mapping_VertexMapping_VelocityAttribute_Inverse;
154 public final Resource Mapping_VertexMapping_VolFlowAttribute;
155 public final Resource Mapping_VertexMapping_VolFlowAttribute_Inverse;
156 public final Resource Mapping_VertexMapping_dpAttribute;
157 public final Resource Mapping_VertexMapping_dpAttribute_Inverse;
158 public final Resource Mapping_VertexMapping_dtAttribute;
159 public final Resource Mapping_VertexMapping_dtAttribute_Inverse;
160 public final Resource SCLMain;
161 public final Resource SpatialRefSystem;
162 public final Resource Vertex;
163 public final Resource VertexDefaultMapping;
164 public final Resource VertexDefaultMapping_Inverse;
165 public final Resource VertexMappingParameterType;
166 public final Resource Vertex_HasDeltaPressure;
167 public final Resource Vertex_HasDeltaPressure_Inverse;
168 public final Resource Vertex_HasDeltaTemperature;
169 public final Resource Vertex_HasDeltaTemperature_Inverse;
170 public final Resource Vertex_HasElevation;
171 public final Resource Vertex_HasElevation_Inverse;
172 public final Resource Vertex_HasFlowArea;
173 public final Resource Vertex_HasFlowArea_Inverse;
174 public final Resource Vertex_HasHeatLoadDs;
175 public final Resource Vertex_HasHeatLoadDs_Inverse;
176 public final Resource Vertex_HasHeatPower;
177 public final Resource Vertex_HasHeatPower_Inverse;
178 public final Resource Vertex_HasMassFlow;
179 public final Resource Vertex_HasMassFlow_Inverse;
180 public final Resource Vertex_HasMaximumHeadM;
181 public final Resource Vertex_HasMaximumHeadM_Inverse;
182 public final Resource Vertex_HasNominalFlow;
183 public final Resource Vertex_HasNominalFlow_Inverse;
184 public final Resource Vertex_HasNominalHeadB;
185 public final Resource Vertex_HasNominalHeadB_Inverse;
186 public final Resource Vertex_HasNominalHeadM;
187 public final Resource Vertex_HasNominalHeadM_Inverse;
188 public final Resource Vertex_HasNominalPressureLoss;
189 public final Resource Vertex_HasNominalPressureLoss_Inverse;
190 public final Resource Vertex_HasReturnPressure;
191 public final Resource Vertex_HasReturnPressure_Inverse;
192 public final Resource Vertex_HasReturnTemperature;
193 public final Resource Vertex_HasReturnTemperature_Inverse;
194 public final Resource Vertex_HasSupplyPressure;
195 public final Resource Vertex_HasSupplyPressure_Inverse;
196 public final Resource Vertex_HasSupplyTemperature;
197 public final Resource Vertex_HasSupplyTemperature_Inverse;
198 public final Resource Vertex_HasValvePosition;
199 public final Resource Vertex_HasValvePosition_Inverse;
200 public final Resource Vertex_HasVelocity;
201 public final Resource Vertex_HasVelocity_Inverse;
202 public final Resource Vertex_HasVolFlow;
203 public final Resource Vertex_HasVolFlow_Inverse;
205 public static class URIs {
206 public static final String ActionContext = "http://www.simantics.org/DistrictNetwork-1.0/ActionContext";
207 public static final String ActionContext_newDiagramContribution = "http://www.simantics.org/DistrictNetwork-1.0/ActionContext/newDiagramContribution";
208 public static final String Actions = "http://www.simantics.org/DistrictNetwork-1.0/Actions";
209 public static final String Actions_NewDNDiagram = "http://www.simantics.org/DistrictNetwork-1.0/Actions/NewDNDiagram";
210 public static final String AddLayerToDNDiagramTemplate = "http://www.simantics.org/DistrictNetwork-1.0/AddLayerToDNDiagramTemplate";
211 public static final String BrowseContext = "http://www.simantics.org/DistrictNetwork-1.0/BrowseContext";
212 public static final String ComponentIdStyle = "http://www.simantics.org/DistrictNetwork-1.0/ComponentIdStyle";
213 public static final String ComponentNameStyle = "http://www.simantics.org/DistrictNetwork-1.0/ComponentNameStyle";
214 public static final String Composite = "http://www.simantics.org/DistrictNetwork-1.0/Composite";
215 public static final String Connection = "http://www.simantics.org/DistrictNetwork-1.0/Connection";
216 public static final String Diagram = "http://www.simantics.org/DistrictNetwork-1.0/Diagram";
217 public static final String Diagram_MappedDiagram = "http://www.simantics.org/DistrictNetwork-1.0/Diagram/MappedDiagram";
218 public static final String DistrictProfile = "http://www.simantics.org/DistrictNetwork-1.0/DistrictProfile";
219 public static final String DistrictProfile_entry = "http://www.simantics.org/DistrictNetwork-1.0/DistrictProfile/entry";
220 public static final String DistrictProfile_entry1 = "http://www.simantics.org/DistrictNetwork-1.0/DistrictProfile/entry1";
221 public static final String DistrictProfile_entry2 = "http://www.simantics.org/DistrictNetwork-1.0/DistrictProfile/entry2";
222 public static final String EPSG_4326 = "http://www.simantics.org/DistrictNetwork-1.0/EPSG_4326";
223 public static final String Edge = "http://www.simantics.org/DistrictNetwork-1.0/Edge";
224 public static final String EdgeDefaultMapping = "http://www.simantics.org/DistrictNetwork-1.0/EdgeDefaultMapping";
225 public static final String EdgeDefaultMapping_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/EdgeDefaultMapping/Inverse";
226 public static final String EdgeMappingParameterType = "http://www.simantics.org/DistrictNetwork-1.0/EdgeMappingParameterType";
227 public static final String EdgeNodeStyle = "http://www.simantics.org/DistrictNetwork-1.0/EdgeNodeStyle";
228 public static final String Edge_HasDiameter = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasDiameter";
229 public static final String Edge_HasDiameter_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasDiameter/Inverse";
230 public static final String Edge_HasFlowArea = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasFlowArea";
231 public static final String Edge_HasFlowArea_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasFlowArea/Inverse";
232 public static final String Edge_HasKReturn = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasKReturn";
233 public static final String Edge_HasKReturn_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasKReturn/Inverse";
234 public static final String Edge_HasKSupply = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasKSupply";
235 public static final String Edge_HasKSupply_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasKSupply/Inverse";
236 public static final String Edge_HasLength = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasLength";
237 public static final String Edge_HasLength_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasLength/Inverse";
238 public static final String Edge_HasNominalMassFlow = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasNominalMassFlow";
239 public static final String Edge_HasNominalMassFlow_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasNominalMassFlow/Inverse";
240 public static final String Edge_HasOuterDiameter = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasOuterDiameter";
241 public static final String Edge_HasOuterDiameter_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasOuterDiameter/Inverse";
242 public static final String Edge_HasTGround = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasTGround";
243 public static final String Edge_HasTGround_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasTGround/Inverse";
244 public static final String Functions = "http://www.simantics.org/DistrictNetwork-1.0/Functions";
245 public static final String Functions_compositeInstantiator = "http://www.simantics.org/DistrictNetwork-1.0/Functions/compositeInstantiator";
246 public static final String Functions_convertToValue = "http://www.simantics.org/DistrictNetwork-1.0/Functions/convertToValue";
247 public static final String Functions_defaultEdgeMappingModifier = "http://www.simantics.org/DistrictNetwork-1.0/Functions/defaultEdgeMappingModifier";
248 public static final String Functions_defaultVertexMappingModifier = "http://www.simantics.org/DistrictNetwork-1.0/Functions/defaultVertexMappingModifier";
249 public static final String Functions_enumerationValues = "http://www.simantics.org/DistrictNetwork-1.0/Functions/enumerationValues";
250 public static final String Functions_mappingModifier = "http://www.simantics.org/DistrictNetwork-1.0/Functions/mappingModifier";
251 public static final String Groups = "http://www.simantics.org/DistrictNetwork-1.0/Groups";
252 public static final String Groups_ElementGroup = "http://www.simantics.org/DistrictNetwork-1.0/Groups/ElementGroup";
253 public static final String HasEndVertex = "http://www.simantics.org/DistrictNetwork-1.0/HasEndVertex";
254 public static final String HasEndVertex_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasEndVertex_Inverse";
255 public static final String HasId = "http://www.simantics.org/DistrictNetwork-1.0/HasId";
256 public static final String HasId_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasId/Inverse";
257 public static final String HasInLayerTag = "http://www.simantics.org/DistrictNetwork-1.0/HasInLayerTag";
258 public static final String HasInLayerTag_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasInLayerTag/Inverse";
259 public static final String HasMapping = "http://www.simantics.org/DistrictNetwork-1.0/HasMapping";
260 public static final String HasMapping_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasMapping/Inverse";
261 public static final String HasSRID = "http://www.simantics.org/DistrictNetwork-1.0/HasSRID";
262 public static final String HasSRID_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasSRID/Inverse";
263 public static final String HasSRTEXT = "http://www.simantics.org/DistrictNetwork-1.0/HasSRTEXT";
264 public static final String HasSRTEXT_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasSRTEXT/Inverse";
265 public static final String HasSolverRVI = "http://www.simantics.org/DistrictNetwork-1.0/HasSolverRVI";
266 public static final String HasSolverRVI_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasSolverRVI/Inverse";
267 public static final String HasSpatialRefSystem = "http://www.simantics.org/DistrictNetwork-1.0/HasSpatialRefSystem";
268 public static final String HasSpatialRefSystem_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasSpatialRefSystem/Inverse";
269 public static final String HasStartVertex = "http://www.simantics.org/DistrictNetwork-1.0/HasStartVertex";
270 public static final String HasStartVertex_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasStartVertex_Inverse";
271 public static final String Images = "http://www.simantics.org/DistrictNetwork-1.0/Images";
272 public static final String Images_MapImage = "http://www.simantics.org/DistrictNetwork-1.0/Images/MapImage";
273 public static final String InLayer = "http://www.simantics.org/DistrictNetwork-1.0/InLayer";
274 public static final String Layer = "http://www.simantics.org/DistrictNetwork-1.0/Layer";
275 public static final String MappedComponent = "http://www.simantics.org/DistrictNetwork-1.0/MappedComponent";
276 public static final String Mapping = "http://www.simantics.org/DistrictNetwork-1.0/Mapping";
277 public static final String MappingParameterType = "http://www.simantics.org/DistrictNetwork-1.0/MappingParameterType";
278 public static final String Mapping_Base = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/Base";
279 public static final String Mapping_ComponentType = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/ComponentType";
280 public static final String Mapping_ComponentType_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/ComponentType/Inverse";
281 public static final String Mapping_EdgeMapping = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping";
282 public static final String Mapping_EdgeMapping_DiameterAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/DiameterAttribute";
283 public static final String Mapping_EdgeMapping_DiameterAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/DiameterAttribute/Inverse";
284 public static final String Mapping_EdgeMapping_FlowAreaAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/FlowAreaAttribute";
285 public static final String Mapping_EdgeMapping_FlowAreaAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/FlowAreaAttribute/Inverse";
286 public static final String Mapping_EdgeMapping_KReturnAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/KReturnAttribute";
287 public static final String Mapping_EdgeMapping_KReturnAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/KReturnAttribute/Inverse";
288 public static final String Mapping_EdgeMapping_KSupplyAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/KSupplyAttribute";
289 public static final String Mapping_EdgeMapping_KSupplyAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/KSupplyAttribute/Inverse";
290 public static final String Mapping_EdgeMapping_LengthAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/LengthAttribute";
291 public static final String Mapping_EdgeMapping_LengthAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/LengthAttribute/Inverse";
292 public static final String Mapping_EdgeMapping_NominalMassFlowAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/NominalMassFlowAttribute";
293 public static final String Mapping_EdgeMapping_NominalMassFlowAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/NominalMassFlowAttribute/Inverse";
294 public static final String Mapping_EdgeMapping_OuterDiameterAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/OuterDiameterAttribute";
295 public static final String Mapping_EdgeMapping_OuterDiameterAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/OuterDiameterAttribute/Inverse";
296 public static final String Mapping_EdgeMapping_TGroundAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/TGroundAttribute";
297 public static final String Mapping_EdgeMapping_TGroundAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/TGroundAttribute/Inverse";
298 public static final String Mapping_Id = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/Id";
299 public static final String Mapping_Id_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/Id/Inverse";
300 public static final String Mapping_InputTerminal = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/InputTerminal";
301 public static final String Mapping_InputTerminal_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/InputTerminal/Inverse";
302 public static final String Mapping_OutputTerminal = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/OutputTerminal";
303 public static final String Mapping_OutputTerminal_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/OutputTerminal/Inverse";
304 public static final String Mapping_Terminal = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/Terminal";
305 public static final String Mapping_TerminalPair = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/TerminalPair";
306 public static final String Mapping_Terminals = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/Terminals";
307 public static final String Mapping_Terminals_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/Terminals/Inverse";
308 public static final String Mapping_VertexMapping = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping";
309 public static final String Mapping_VertexMapping_DeltaPressureAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/DeltaPressureAttribute";
310 public static final String Mapping_VertexMapping_DeltaPressureAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/DeltaPressureAttribute/Inverse";
311 public static final String Mapping_VertexMapping_DeltaTemperatureAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/DeltaTemperatureAttribute";
312 public static final String Mapping_VertexMapping_DeltaTemperatureAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/DeltaTemperatureAttribute/Inverse";
313 public static final String Mapping_VertexMapping_ElevationAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ElevationAttribute";
314 public static final String Mapping_VertexMapping_ElevationAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ElevationAttribute/Inverse";
315 public static final String Mapping_VertexMapping_FlowAreaAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/FlowAreaAttribute";
316 public static final String Mapping_VertexMapping_FlowAreaAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/FlowAreaAttribute/Inverse";
317 public static final String Mapping_VertexMapping_HeatLoadDsAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/HeatLoadDsAttribute";
318 public static final String Mapping_VertexMapping_HeatLoadDsAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/HeatLoadDsAttribute/Inverse";
319 public static final String Mapping_VertexMapping_HeatPowerAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/HeatPowerAttribute";
320 public static final String Mapping_VertexMapping_HeatPowerAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/HeatPowerAttribute/Inverse";
321 public static final String Mapping_VertexMapping_MassFlowAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/MassFlowAttribute";
322 public static final String Mapping_VertexMapping_MassFlowAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/MassFlowAttribute/Inverse";
323 public static final String Mapping_VertexMapping_MaximumHeadMAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/MaximumHeadMAttribute";
324 public static final String Mapping_VertexMapping_MaximumHeadMAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/MaximumHeadMAttribute/Inverse";
325 public static final String Mapping_VertexMapping_NominalFlowAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalFlowAttribute";
326 public static final String Mapping_VertexMapping_NominalFlowAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalFlowAttribute/Inverse";
327 public static final String Mapping_VertexMapping_NominalHeadBAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalHeadBAttribute";
328 public static final String Mapping_VertexMapping_NominalHeadBAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalHeadBAttribute/Inverse";
329 public static final String Mapping_VertexMapping_NominalHeadMAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalHeadMAttribute";
330 public static final String Mapping_VertexMapping_NominalHeadMAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalHeadMAttribute/Inverse";
331 public static final String Mapping_VertexMapping_NominalMassFlowAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalMassFlowAttribute";
332 public static final String Mapping_VertexMapping_NominalMassFlowAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalMassFlowAttribute/Inverse";
333 public static final String Mapping_VertexMapping_NominalPressureLossAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalPressureLossAttribute";
334 public static final String Mapping_VertexMapping_NominalPressureLossAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalPressureLossAttribute/Inverse";
335 public static final String Mapping_VertexMapping_ReturnPressureAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ReturnPressureAttribute";
336 public static final String Mapping_VertexMapping_ReturnPressureAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ReturnPressureAttribute/Inverse";
337 public static final String Mapping_VertexMapping_ReturnTemperatureAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ReturnTemperatureAttribute";
338 public static final String Mapping_VertexMapping_ReturnTemperatureAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ReturnTemperatureAttribute/Inverse";
339 public static final String Mapping_VertexMapping_SupplyPressureAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/SupplyPressureAttribute";
340 public static final String Mapping_VertexMapping_SupplyPressureAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/SupplyPressureAttribute/Inverse";
341 public static final String Mapping_VertexMapping_SupplyTemperatureAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/SupplyTemperatureAttribute";
342 public static final String Mapping_VertexMapping_SupplyTemperatureAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/SupplyTemperatureAttribute/Inverse";
343 public static final String Mapping_VertexMapping_ValvePositionAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ValvePositionAttribute";
344 public static final String Mapping_VertexMapping_ValvePositionAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ValvePositionAttribute/Inverse";
345 public static final String Mapping_VertexMapping_VelocityAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/VelocityAttribute";
346 public static final String Mapping_VertexMapping_VelocityAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/VelocityAttribute/Inverse";
347 public static final String Mapping_VertexMapping_VolFlowAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/VolFlowAttribute";
348 public static final String Mapping_VertexMapping_VolFlowAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/VolFlowAttribute/Inverse";
349 public static final String Mapping_VertexMapping_dpAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/dpAttribute";
350 public static final String Mapping_VertexMapping_dpAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/dpAttribute/Inverse";
351 public static final String Mapping_VertexMapping_dtAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/dtAttribute";
352 public static final String Mapping_VertexMapping_dtAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/dtAttribute/Inverse";
353 public static final String SCLMain = "http://www.simantics.org/DistrictNetwork-1.0/SCLMain";
354 public static final String SpatialRefSystem = "http://www.simantics.org/DistrictNetwork-1.0/SpatialRefSystem";
355 public static final String Vertex = "http://www.simantics.org/DistrictNetwork-1.0/Vertex";
356 public static final String VertexDefaultMapping = "http://www.simantics.org/DistrictNetwork-1.0/VertexDefaultMapping";
357 public static final String VertexDefaultMapping_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/VertexDefaultMapping/Inverse";
358 public static final String VertexMappingParameterType = "http://www.simantics.org/DistrictNetwork-1.0/VertexMappingParameterType";
359 public static final String Vertex_HasDeltaPressure = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasDeltaPressure";
360 public static final String Vertex_HasDeltaPressure_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasDeltaPressure/Inverse";
361 public static final String Vertex_HasDeltaTemperature = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasDeltaTemperature";
362 public static final String Vertex_HasDeltaTemperature_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasDeltaTemperature/Inverse";
363 public static final String Vertex_HasElevation = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasElevation";
364 public static final String Vertex_HasElevation_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasElevation/Inverse";
365 public static final String Vertex_HasFlowArea = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasFlowArea";
366 public static final String Vertex_HasFlowArea_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasFlowArea/Inverse";
367 public static final String Vertex_HasHeatLoadDs = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasHeatLoadDs";
368 public static final String Vertex_HasHeatLoadDs_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasHeatLoadDs/Inverse";
369 public static final String Vertex_HasHeatPower = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasHeatPower";
370 public static final String Vertex_HasHeatPower_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasHeatPower/Inverse";
371 public static final String Vertex_HasMassFlow = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasMassFlow";
372 public static final String Vertex_HasMassFlow_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasMassFlow/Inverse";
373 public static final String Vertex_HasMaximumHeadM = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasMaximumHeadM";
374 public static final String Vertex_HasMaximumHeadM_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasMaximumHeadM/Inverse";
375 public static final String Vertex_HasNominalFlow = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalFlow";
376 public static final String Vertex_HasNominalFlow_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalFlow/Inverse";
377 public static final String Vertex_HasNominalHeadB = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalHeadB";
378 public static final String Vertex_HasNominalHeadB_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalHeadB/Inverse";
379 public static final String Vertex_HasNominalHeadM = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalHeadM";
380 public static final String Vertex_HasNominalHeadM_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalHeadM/Inverse";
381 public static final String Vertex_HasNominalPressureLoss = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalPressureLoss";
382 public static final String Vertex_HasNominalPressureLoss_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalPressureLoss/Inverse";
383 public static final String Vertex_HasReturnPressure = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasReturnPressure";
384 public static final String Vertex_HasReturnPressure_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasReturnPressure/Inverse";
385 public static final String Vertex_HasReturnTemperature = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasReturnTemperature";
386 public static final String Vertex_HasReturnTemperature_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasReturnTemperature/Inverse";
387 public static final String Vertex_HasSupplyPressure = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasSupplyPressure";
388 public static final String Vertex_HasSupplyPressure_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasSupplyPressure/Inverse";
389 public static final String Vertex_HasSupplyTemperature = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasSupplyTemperature";
390 public static final String Vertex_HasSupplyTemperature_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasSupplyTemperature/Inverse";
391 public static final String Vertex_HasValvePosition = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasValvePosition";
392 public static final String Vertex_HasValvePosition_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasValvePosition/Inverse";
393 public static final String Vertex_HasVelocity = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasVelocity";
394 public static final String Vertex_HasVelocity_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasVelocity/Inverse";
395 public static final String Vertex_HasVolFlow = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasVolFlow";
396 public static final String Vertex_HasVolFlow_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasVolFlow/Inverse";
399 public static Resource getResourceOrNull(ReadGraph graph, String uri) {
401 return graph.getResource(uri);
402 } catch(DatabaseException e) {
403 System.err.println(e.getMessage());
408 public DistrictNetworkResource(ReadGraph graph) {
409 ActionContext = getResourceOrNull(graph, URIs.ActionContext);
410 ActionContext_newDiagramContribution = getResourceOrNull(graph, URIs.ActionContext_newDiagramContribution);
411 Actions = getResourceOrNull(graph, URIs.Actions);
412 Actions_NewDNDiagram = getResourceOrNull(graph, URIs.Actions_NewDNDiagram);
413 AddLayerToDNDiagramTemplate = getResourceOrNull(graph, URIs.AddLayerToDNDiagramTemplate);
414 BrowseContext = getResourceOrNull(graph, URIs.BrowseContext);
415 ComponentIdStyle = getResourceOrNull(graph, URIs.ComponentIdStyle);
416 ComponentNameStyle = getResourceOrNull(graph, URIs.ComponentNameStyle);
417 Composite = getResourceOrNull(graph, URIs.Composite);
418 Connection = getResourceOrNull(graph, URIs.Connection);
419 Diagram = getResourceOrNull(graph, URIs.Diagram);
420 Diagram_MappedDiagram = getResourceOrNull(graph, URIs.Diagram_MappedDiagram);
421 DistrictProfile = getResourceOrNull(graph, URIs.DistrictProfile);
422 DistrictProfile_entry = getResourceOrNull(graph, URIs.DistrictProfile_entry);
423 DistrictProfile_entry1 = getResourceOrNull(graph, URIs.DistrictProfile_entry1);
424 DistrictProfile_entry2 = getResourceOrNull(graph, URIs.DistrictProfile_entry2);
425 EPSG_4326 = getResourceOrNull(graph, URIs.EPSG_4326);
426 Edge = getResourceOrNull(graph, URIs.Edge);
427 EdgeDefaultMapping = getResourceOrNull(graph, URIs.EdgeDefaultMapping);
428 EdgeDefaultMapping_Inverse = getResourceOrNull(graph, URIs.EdgeDefaultMapping_Inverse);
429 EdgeMappingParameterType = getResourceOrNull(graph, URIs.EdgeMappingParameterType);
430 EdgeNodeStyle = getResourceOrNull(graph, URIs.EdgeNodeStyle);
431 Edge_HasDiameter = getResourceOrNull(graph, URIs.Edge_HasDiameter);
432 Edge_HasDiameter_Inverse = getResourceOrNull(graph, URIs.Edge_HasDiameter_Inverse);
433 Edge_HasFlowArea = getResourceOrNull(graph, URIs.Edge_HasFlowArea);
434 Edge_HasFlowArea_Inverse = getResourceOrNull(graph, URIs.Edge_HasFlowArea_Inverse);
435 Edge_HasKReturn = getResourceOrNull(graph, URIs.Edge_HasKReturn);
436 Edge_HasKReturn_Inverse = getResourceOrNull(graph, URIs.Edge_HasKReturn_Inverse);
437 Edge_HasKSupply = getResourceOrNull(graph, URIs.Edge_HasKSupply);
438 Edge_HasKSupply_Inverse = getResourceOrNull(graph, URIs.Edge_HasKSupply_Inverse);
439 Edge_HasLength = getResourceOrNull(graph, URIs.Edge_HasLength);
440 Edge_HasLength_Inverse = getResourceOrNull(graph, URIs.Edge_HasLength_Inverse);
441 Edge_HasNominalMassFlow = getResourceOrNull(graph, URIs.Edge_HasNominalMassFlow);
442 Edge_HasNominalMassFlow_Inverse = getResourceOrNull(graph, URIs.Edge_HasNominalMassFlow_Inverse);
443 Edge_HasOuterDiameter = getResourceOrNull(graph, URIs.Edge_HasOuterDiameter);
444 Edge_HasOuterDiameter_Inverse = getResourceOrNull(graph, URIs.Edge_HasOuterDiameter_Inverse);
445 Edge_HasTGround = getResourceOrNull(graph, URIs.Edge_HasTGround);
446 Edge_HasTGround_Inverse = getResourceOrNull(graph, URIs.Edge_HasTGround_Inverse);
447 Functions = getResourceOrNull(graph, URIs.Functions);
448 Functions_compositeInstantiator = getResourceOrNull(graph, URIs.Functions_compositeInstantiator);
449 Functions_convertToValue = getResourceOrNull(graph, URIs.Functions_convertToValue);
450 Functions_defaultEdgeMappingModifier = getResourceOrNull(graph, URIs.Functions_defaultEdgeMappingModifier);
451 Functions_defaultVertexMappingModifier = getResourceOrNull(graph, URIs.Functions_defaultVertexMappingModifier);
452 Functions_enumerationValues = getResourceOrNull(graph, URIs.Functions_enumerationValues);
453 Functions_mappingModifier = getResourceOrNull(graph, URIs.Functions_mappingModifier);
454 Groups = getResourceOrNull(graph, URIs.Groups);
455 Groups_ElementGroup = getResourceOrNull(graph, URIs.Groups_ElementGroup);
456 HasEndVertex = getResourceOrNull(graph, URIs.HasEndVertex);
457 HasEndVertex_Inverse = getResourceOrNull(graph, URIs.HasEndVertex_Inverse);
458 HasId = getResourceOrNull(graph, URIs.HasId);
459 HasId_Inverse = getResourceOrNull(graph, URIs.HasId_Inverse);
460 HasInLayerTag = getResourceOrNull(graph, URIs.HasInLayerTag);
461 HasInLayerTag_Inverse = getResourceOrNull(graph, URIs.HasInLayerTag_Inverse);
462 HasMapping = getResourceOrNull(graph, URIs.HasMapping);
463 HasMapping_Inverse = getResourceOrNull(graph, URIs.HasMapping_Inverse);
464 HasSRID = getResourceOrNull(graph, URIs.HasSRID);
465 HasSRID_Inverse = getResourceOrNull(graph, URIs.HasSRID_Inverse);
466 HasSRTEXT = getResourceOrNull(graph, URIs.HasSRTEXT);
467 HasSRTEXT_Inverse = getResourceOrNull(graph, URIs.HasSRTEXT_Inverse);
468 HasSolverRVI = getResourceOrNull(graph, URIs.HasSolverRVI);
469 HasSolverRVI_Inverse = getResourceOrNull(graph, URIs.HasSolverRVI_Inverse);
470 HasSpatialRefSystem = getResourceOrNull(graph, URIs.HasSpatialRefSystem);
471 HasSpatialRefSystem_Inverse = getResourceOrNull(graph, URIs.HasSpatialRefSystem_Inverse);
472 HasStartVertex = getResourceOrNull(graph, URIs.HasStartVertex);
473 HasStartVertex_Inverse = getResourceOrNull(graph, URIs.HasStartVertex_Inverse);
474 Images = getResourceOrNull(graph, URIs.Images);
475 Images_MapImage = getResourceOrNull(graph, URIs.Images_MapImage);
476 InLayer = getResourceOrNull(graph, URIs.InLayer);
477 Layer = getResourceOrNull(graph, URIs.Layer);
478 MappedComponent = getResourceOrNull(graph, URIs.MappedComponent);
479 Mapping = getResourceOrNull(graph, URIs.Mapping);
480 MappingParameterType = getResourceOrNull(graph, URIs.MappingParameterType);
481 Mapping_Base = getResourceOrNull(graph, URIs.Mapping_Base);
482 Mapping_ComponentType = getResourceOrNull(graph, URIs.Mapping_ComponentType);
483 Mapping_ComponentType_Inverse = getResourceOrNull(graph, URIs.Mapping_ComponentType_Inverse);
484 Mapping_EdgeMapping = getResourceOrNull(graph, URIs.Mapping_EdgeMapping);
485 Mapping_EdgeMapping_DiameterAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_DiameterAttribute);
486 Mapping_EdgeMapping_DiameterAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_DiameterAttribute_Inverse);
487 Mapping_EdgeMapping_FlowAreaAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_FlowAreaAttribute);
488 Mapping_EdgeMapping_FlowAreaAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_FlowAreaAttribute_Inverse);
489 Mapping_EdgeMapping_KReturnAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_KReturnAttribute);
490 Mapping_EdgeMapping_KReturnAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_KReturnAttribute_Inverse);
491 Mapping_EdgeMapping_KSupplyAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_KSupplyAttribute);
492 Mapping_EdgeMapping_KSupplyAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_KSupplyAttribute_Inverse);
493 Mapping_EdgeMapping_LengthAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_LengthAttribute);
494 Mapping_EdgeMapping_LengthAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_LengthAttribute_Inverse);
495 Mapping_EdgeMapping_NominalMassFlowAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_NominalMassFlowAttribute);
496 Mapping_EdgeMapping_NominalMassFlowAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_NominalMassFlowAttribute_Inverse);
497 Mapping_EdgeMapping_OuterDiameterAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_OuterDiameterAttribute);
498 Mapping_EdgeMapping_OuterDiameterAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_OuterDiameterAttribute_Inverse);
499 Mapping_EdgeMapping_TGroundAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_TGroundAttribute);
500 Mapping_EdgeMapping_TGroundAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_TGroundAttribute_Inverse);
501 Mapping_Id = getResourceOrNull(graph, URIs.Mapping_Id);
502 Mapping_Id_Inverse = getResourceOrNull(graph, URIs.Mapping_Id_Inverse);
503 Mapping_InputTerminal = getResourceOrNull(graph, URIs.Mapping_InputTerminal);
504 Mapping_InputTerminal_Inverse = getResourceOrNull(graph, URIs.Mapping_InputTerminal_Inverse);
505 Mapping_OutputTerminal = getResourceOrNull(graph, URIs.Mapping_OutputTerminal);
506 Mapping_OutputTerminal_Inverse = getResourceOrNull(graph, URIs.Mapping_OutputTerminal_Inverse);
507 Mapping_Terminal = getResourceOrNull(graph, URIs.Mapping_Terminal);
508 Mapping_TerminalPair = getResourceOrNull(graph, URIs.Mapping_TerminalPair);
509 Mapping_Terminals = getResourceOrNull(graph, URIs.Mapping_Terminals);
510 Mapping_Terminals_Inverse = getResourceOrNull(graph, URIs.Mapping_Terminals_Inverse);
511 Mapping_VertexMapping = getResourceOrNull(graph, URIs.Mapping_VertexMapping);
512 Mapping_VertexMapping_DeltaPressureAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_DeltaPressureAttribute);
513 Mapping_VertexMapping_DeltaPressureAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_DeltaPressureAttribute_Inverse);
514 Mapping_VertexMapping_DeltaTemperatureAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_DeltaTemperatureAttribute);
515 Mapping_VertexMapping_DeltaTemperatureAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_DeltaTemperatureAttribute_Inverse);
516 Mapping_VertexMapping_ElevationAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ElevationAttribute);
517 Mapping_VertexMapping_ElevationAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ElevationAttribute_Inverse);
518 Mapping_VertexMapping_FlowAreaAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_FlowAreaAttribute);
519 Mapping_VertexMapping_FlowAreaAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_FlowAreaAttribute_Inverse);
520 Mapping_VertexMapping_HeatLoadDsAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_HeatLoadDsAttribute);
521 Mapping_VertexMapping_HeatLoadDsAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_HeatLoadDsAttribute_Inverse);
522 Mapping_VertexMapping_HeatPowerAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_HeatPowerAttribute);
523 Mapping_VertexMapping_HeatPowerAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_HeatPowerAttribute_Inverse);
524 Mapping_VertexMapping_MassFlowAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_MassFlowAttribute);
525 Mapping_VertexMapping_MassFlowAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_MassFlowAttribute_Inverse);
526 Mapping_VertexMapping_MaximumHeadMAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_MaximumHeadMAttribute);
527 Mapping_VertexMapping_MaximumHeadMAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_MaximumHeadMAttribute_Inverse);
528 Mapping_VertexMapping_NominalFlowAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalFlowAttribute);
529 Mapping_VertexMapping_NominalFlowAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalFlowAttribute_Inverse);
530 Mapping_VertexMapping_NominalHeadBAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalHeadBAttribute);
531 Mapping_VertexMapping_NominalHeadBAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalHeadBAttribute_Inverse);
532 Mapping_VertexMapping_NominalHeadMAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalHeadMAttribute);
533 Mapping_VertexMapping_NominalHeadMAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalHeadMAttribute_Inverse);
534 Mapping_VertexMapping_NominalMassFlowAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalMassFlowAttribute);
535 Mapping_VertexMapping_NominalMassFlowAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalMassFlowAttribute_Inverse);
536 Mapping_VertexMapping_NominalPressureLossAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalPressureLossAttribute);
537 Mapping_VertexMapping_NominalPressureLossAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalPressureLossAttribute_Inverse);
538 Mapping_VertexMapping_ReturnPressureAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ReturnPressureAttribute);
539 Mapping_VertexMapping_ReturnPressureAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ReturnPressureAttribute_Inverse);
540 Mapping_VertexMapping_ReturnTemperatureAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ReturnTemperatureAttribute);
541 Mapping_VertexMapping_ReturnTemperatureAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ReturnTemperatureAttribute_Inverse);
542 Mapping_VertexMapping_SupplyPressureAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_SupplyPressureAttribute);
543 Mapping_VertexMapping_SupplyPressureAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_SupplyPressureAttribute_Inverse);
544 Mapping_VertexMapping_SupplyTemperatureAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_SupplyTemperatureAttribute);
545 Mapping_VertexMapping_SupplyTemperatureAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_SupplyTemperatureAttribute_Inverse);
546 Mapping_VertexMapping_ValvePositionAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ValvePositionAttribute);
547 Mapping_VertexMapping_ValvePositionAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ValvePositionAttribute_Inverse);
548 Mapping_VertexMapping_VelocityAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_VelocityAttribute);
549 Mapping_VertexMapping_VelocityAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_VelocityAttribute_Inverse);
550 Mapping_VertexMapping_VolFlowAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_VolFlowAttribute);
551 Mapping_VertexMapping_VolFlowAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_VolFlowAttribute_Inverse);
552 Mapping_VertexMapping_dpAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_dpAttribute);
553 Mapping_VertexMapping_dpAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_dpAttribute_Inverse);
554 Mapping_VertexMapping_dtAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_dtAttribute);
555 Mapping_VertexMapping_dtAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_dtAttribute_Inverse);
556 SCLMain = getResourceOrNull(graph, URIs.SCLMain);
557 SpatialRefSystem = getResourceOrNull(graph, URIs.SpatialRefSystem);
558 Vertex = getResourceOrNull(graph, URIs.Vertex);
559 VertexDefaultMapping = getResourceOrNull(graph, URIs.VertexDefaultMapping);
560 VertexDefaultMapping_Inverse = getResourceOrNull(graph, URIs.VertexDefaultMapping_Inverse);
561 VertexMappingParameterType = getResourceOrNull(graph, URIs.VertexMappingParameterType);
562 Vertex_HasDeltaPressure = getResourceOrNull(graph, URIs.Vertex_HasDeltaPressure);
563 Vertex_HasDeltaPressure_Inverse = getResourceOrNull(graph, URIs.Vertex_HasDeltaPressure_Inverse);
564 Vertex_HasDeltaTemperature = getResourceOrNull(graph, URIs.Vertex_HasDeltaTemperature);
565 Vertex_HasDeltaTemperature_Inverse = getResourceOrNull(graph, URIs.Vertex_HasDeltaTemperature_Inverse);
566 Vertex_HasElevation = getResourceOrNull(graph, URIs.Vertex_HasElevation);
567 Vertex_HasElevation_Inverse = getResourceOrNull(graph, URIs.Vertex_HasElevation_Inverse);
568 Vertex_HasFlowArea = getResourceOrNull(graph, URIs.Vertex_HasFlowArea);
569 Vertex_HasFlowArea_Inverse = getResourceOrNull(graph, URIs.Vertex_HasFlowArea_Inverse);
570 Vertex_HasHeatLoadDs = getResourceOrNull(graph, URIs.Vertex_HasHeatLoadDs);
571 Vertex_HasHeatLoadDs_Inverse = getResourceOrNull(graph, URIs.Vertex_HasHeatLoadDs_Inverse);
572 Vertex_HasHeatPower = getResourceOrNull(graph, URIs.Vertex_HasHeatPower);
573 Vertex_HasHeatPower_Inverse = getResourceOrNull(graph, URIs.Vertex_HasHeatPower_Inverse);
574 Vertex_HasMassFlow = getResourceOrNull(graph, URIs.Vertex_HasMassFlow);
575 Vertex_HasMassFlow_Inverse = getResourceOrNull(graph, URIs.Vertex_HasMassFlow_Inverse);
576 Vertex_HasMaximumHeadM = getResourceOrNull(graph, URIs.Vertex_HasMaximumHeadM);
577 Vertex_HasMaximumHeadM_Inverse = getResourceOrNull(graph, URIs.Vertex_HasMaximumHeadM_Inverse);
578 Vertex_HasNominalFlow = getResourceOrNull(graph, URIs.Vertex_HasNominalFlow);
579 Vertex_HasNominalFlow_Inverse = getResourceOrNull(graph, URIs.Vertex_HasNominalFlow_Inverse);
580 Vertex_HasNominalHeadB = getResourceOrNull(graph, URIs.Vertex_HasNominalHeadB);
581 Vertex_HasNominalHeadB_Inverse = getResourceOrNull(graph, URIs.Vertex_HasNominalHeadB_Inverse);
582 Vertex_HasNominalHeadM = getResourceOrNull(graph, URIs.Vertex_HasNominalHeadM);
583 Vertex_HasNominalHeadM_Inverse = getResourceOrNull(graph, URIs.Vertex_HasNominalHeadM_Inverse);
584 Vertex_HasNominalPressureLoss = getResourceOrNull(graph, URIs.Vertex_HasNominalPressureLoss);
585 Vertex_HasNominalPressureLoss_Inverse = getResourceOrNull(graph, URIs.Vertex_HasNominalPressureLoss_Inverse);
586 Vertex_HasReturnPressure = getResourceOrNull(graph, URIs.Vertex_HasReturnPressure);
587 Vertex_HasReturnPressure_Inverse = getResourceOrNull(graph, URIs.Vertex_HasReturnPressure_Inverse);
588 Vertex_HasReturnTemperature = getResourceOrNull(graph, URIs.Vertex_HasReturnTemperature);
589 Vertex_HasReturnTemperature_Inverse = getResourceOrNull(graph, URIs.Vertex_HasReturnTemperature_Inverse);
590 Vertex_HasSupplyPressure = getResourceOrNull(graph, URIs.Vertex_HasSupplyPressure);
591 Vertex_HasSupplyPressure_Inverse = getResourceOrNull(graph, URIs.Vertex_HasSupplyPressure_Inverse);
592 Vertex_HasSupplyTemperature = getResourceOrNull(graph, URIs.Vertex_HasSupplyTemperature);
593 Vertex_HasSupplyTemperature_Inverse = getResourceOrNull(graph, URIs.Vertex_HasSupplyTemperature_Inverse);
594 Vertex_HasValvePosition = getResourceOrNull(graph, URIs.Vertex_HasValvePosition);
595 Vertex_HasValvePosition_Inverse = getResourceOrNull(graph, URIs.Vertex_HasValvePosition_Inverse);
596 Vertex_HasVelocity = getResourceOrNull(graph, URIs.Vertex_HasVelocity);
597 Vertex_HasVelocity_Inverse = getResourceOrNull(graph, URIs.Vertex_HasVelocity_Inverse);
598 Vertex_HasVolFlow = getResourceOrNull(graph, URIs.Vertex_HasVolFlow);
599 Vertex_HasVolFlow_Inverse = getResourceOrNull(graph, URIs.Vertex_HasVolFlow_Inverse);
602 public static DistrictNetworkResource getInstance(ReadGraph graph) {
603 Session session = graph.getSession();
604 DistrictNetworkResource ret = session.peekService(DistrictNetworkResource.class);
606 QueryControl qc = graph.getService(QueryControl.class);
607 ret = new DistrictNetworkResource(qc.getIndependentGraph(graph));
608 session.registerService(DistrictNetworkResource.class, ret);
613 public static DistrictNetworkResource getInstance(RequestProcessor session) throws DatabaseException {
614 DistrictNetworkResource ret = session.peekService(DistrictNetworkResource.class);
616 ret = session.syncRequest(new Read<DistrictNetworkResource>() {
617 public DistrictNetworkResource perform(ReadGraph graph) throws DatabaseException {
618 QueryControl qc = graph.getService(QueryControl.class);
619 return new DistrictNetworkResource(qc.getIndependentGraph(graph));
622 session.registerService(DistrictNetworkResource.class, ret);