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