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