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