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