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