]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Added gitignore for graph.tg files and removed generated resource files 23/2123/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 6 Sep 2018 06:50:52 +0000 (09:50 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 6 Sep 2018 06:53:13 +0000 (09:53 +0300)
gitlab #2

Change-Id: Ibd866521c61d81d57ad33af4a20a3427a3993159

org.simantics.district.network.ontology/.gitignore [new file with mode: 0644]
org.simantics.district.network.ontology/src/org/simantics/district/network/ontology/.keep [new file with mode: 0644]
org.simantics.district.network.ontology/src/org/simantics/district/network/ontology/DistrictNetworkResource.java [deleted file]
org.simantics.district.network.ui.ontology/.gitignore [new file with mode: 0644]
org.simantics.district.network.ui.ontology/src/org/simantics/district/network/ui/ontology/.keep [new file with mode: 0644]
org.simantics.district.network.ui.ontology/src/org/simantics/district/network/ui/ontology/DistrictNetworkUIResource.java [deleted file]

diff --git a/org.simantics.district.network.ontology/.gitignore b/org.simantics.district.network.ontology/.gitignore
new file mode 100644 (file)
index 0000000..eb92844
--- /dev/null
@@ -0,0 +1 @@
+/graph.tg
diff --git a/org.simantics.district.network.ontology/src/org/simantics/district/network/ontology/.keep b/org.simantics.district.network.ontology/src/org/simantics/district/network/ontology/.keep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/org.simantics.district.network.ontology/src/org/simantics/district/network/ontology/DistrictNetworkResource.java b/org.simantics.district.network.ontology/src/org/simantics/district/network/ontology/DistrictNetworkResource.java
deleted file mode 100644 (file)
index e7e7bf6..0000000
+++ /dev/null
@@ -1,694 +0,0 @@
-package org.simantics.district.network.ontology;
-
-import org.simantics.db.RequestProcessor;
-import org.simantics.db.Resource;
-import org.simantics.db.ReadGraph;
-import org.simantics.db.request.Read;
-import org.simantics.db.Session;
-import org.simantics.db.exception.DatabaseException;
-import org.simantics.db.service.QueryControl;
-
-public class DistrictNetworkResource {
-    
-    public final Resource ActionContext;
-    public final Resource ActionContext_newDiagramContribution;
-    public final Resource Actions;
-    public final Resource Actions_NewDNDiagram;
-    public final Resource AddLayerToDNDiagramTemplate;
-    public final Resource BrowseContext;
-    public final Resource Composite;
-    public final Resource Connection;
-    public final Resource Diagram;
-    public final Resource Diagram_MappedDiagram;
-    public final Resource Diagram_MappedFromDiagram;
-    public final Resource Diagram_edgeThicknessProperty;
-    public final Resource Diagram_edgeThicknessProperty_Inverse;
-    public final Resource Diagram_edgeThicknessScale;
-    public final Resource Diagram_edgeThicknessScale_Inverse;
-    public final Resource EPSG_4326;
-    public final Resource Edge;
-    public final Resource EdgeDefaultMapping;
-    public final Resource EdgeDefaultMapping_Inverse;
-    public final Resource EdgeMappingParameterType;
-    public final Resource EdgeStyle;
-    public final Resource EdgeThicknessPropertyParameterType;
-    public final Resource Edge_HasDiameter;
-    public final Resource Edge_HasDiameter_Inverse;
-    public final Resource Edge_HasFlowArea;
-    public final Resource Edge_HasFlowArea_Inverse;
-    public final Resource Edge_HasKReturn;
-    public final Resource Edge_HasKReturn_Inverse;
-    public final Resource Edge_HasKSupply;
-    public final Resource Edge_HasKSupply_Inverse;
-    public final Resource Edge_HasLength;
-    public final Resource Edge_HasLength_Inverse;
-    public final Resource Edge_HasNominalMassFlow;
-    public final Resource Edge_HasNominalMassFlow_Inverse;
-    public final Resource Edge_HasOuterDiameter;
-    public final Resource Edge_HasOuterDiameter_Inverse;
-    public final Resource Edge_HasTGround;
-    public final Resource Edge_HasTGround_Inverse;
-    public final Resource Edge_ThicknessProperty;
-    public final Resource Edge_ThicknessProperty_Diameter;
-    public final Resource Edge_ThicknessProperty_NominalMassFlow;
-    public final Resource Edge_ThicknessProperty_scale;
-    public final Resource Edge_ThicknessProperty_scale_Inverse;
-    public final Resource Edge_ThicknessProperty_value;
-    public final Resource Edge_ThicknessProperty_value_Inverse;
-    public final Resource Element;
-    public final Resource Functions;
-    public final Resource Functions_compositeInstantiator;
-    public final Resource Functions_convertToValue;
-    public final Resource Functions_defaultEdgeMappingModifier;
-    public final Resource Functions_defaultVertexMappingModifier;
-    public final Resource Functions_edgeThicknessPropertyEnumerationValues;
-    public final Resource Functions_edgeThicknessPropertyModifier;
-    public final Resource Functions_enumerationValues;
-    public final Resource Functions_mappingModifier;
-    public final Resource Groups;
-    public final Resource Groups_EdgeGroup;
-    public final Resource Groups_VertexGroup;
-    public final Resource HasEndVertex;
-    public final Resource HasEndVertex_Inverse;
-    public final Resource HasId;
-    public final Resource HasId_Inverse;
-    public final Resource HasInLayerTag;
-    public final Resource HasInLayerTag_Inverse;
-    public final Resource HasMapping;
-    public final Resource HasMapping_Inverse;
-    public final Resource HasSRID;
-    public final Resource HasSRID_Inverse;
-    public final Resource HasSRTEXT;
-    public final Resource HasSRTEXT_Inverse;
-    public final Resource HasSpatialRefSystem;
-    public final Resource HasSpatialRefSystem_Inverse;
-    public final Resource HasStartVertex;
-    public final Resource HasStartVertex_Inverse;
-    public final Resource Images;
-    public final Resource Images_MapImage;
-    public final Resource InLayer;
-    public final Resource Layer;
-    public final Resource MappedComponent;
-    public final Resource MappedFromElement;
-    public final Resource Mapping;
-    public final Resource MappingParameterType;
-    public final Resource Mapping_Base;
-    public final Resource Mapping_ComponentType;
-    public final Resource Mapping_ComponentType_Inverse;
-    public final Resource Mapping_EdgeMapping;
-    public final Resource Mapping_EdgeMapping_DiameterAttribute;
-    public final Resource Mapping_EdgeMapping_DiameterAttribute_Inverse;
-    public final Resource Mapping_EdgeMapping_FlowAreaAttribute;
-    public final Resource Mapping_EdgeMapping_FlowAreaAttribute_Inverse;
-    public final Resource Mapping_EdgeMapping_KReturnAttribute;
-    public final Resource Mapping_EdgeMapping_KReturnAttribute_Inverse;
-    public final Resource Mapping_EdgeMapping_KSupplyAttribute;
-    public final Resource Mapping_EdgeMapping_KSupplyAttribute_Inverse;
-    public final Resource Mapping_EdgeMapping_LengthAttribute;
-    public final Resource Mapping_EdgeMapping_LengthAttribute_Inverse;
-    public final Resource Mapping_EdgeMapping_NominalMassFlowAttribute;
-    public final Resource Mapping_EdgeMapping_NominalMassFlowAttribute_Inverse;
-    public final Resource Mapping_EdgeMapping_OuterDiameterAttribute;
-    public final Resource Mapping_EdgeMapping_OuterDiameterAttribute_Inverse;
-    public final Resource Mapping_EdgeMapping_TGroundAttribute;
-    public final Resource Mapping_EdgeMapping_TGroundAttribute_Inverse;
-    public final Resource Mapping_Id;
-    public final Resource Mapping_Id_Inverse;
-    public final Resource Mapping_InputTerminal;
-    public final Resource Mapping_InputTerminal_Inverse;
-    public final Resource Mapping_OutputTerminal;
-    public final Resource Mapping_OutputTerminal_Inverse;
-    public final Resource Mapping_Terminal;
-    public final Resource Mapping_TerminalPair;
-    public final Resource Mapping_Terminals;
-    public final Resource Mapping_Terminals_Inverse;
-    public final Resource Mapping_VertexMapping;
-    public final Resource Mapping_VertexMapping_AddressAttribute;
-    public final Resource Mapping_VertexMapping_AddressAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_DeltaPressureAttribute;
-    public final Resource Mapping_VertexMapping_DeltaPressureAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_DeltaTemperatureAttribute;
-    public final Resource Mapping_VertexMapping_DeltaTemperatureAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_ElevationAttribute;
-    public final Resource Mapping_VertexMapping_ElevationAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_FlowAreaAttribute;
-    public final Resource Mapping_VertexMapping_FlowAreaAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_HeatLoadDsAttribute;
-    public final Resource Mapping_VertexMapping_HeatLoadDsAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_HeatPowerAttribute;
-    public final Resource Mapping_VertexMapping_HeatPowerAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_MassFlowAttribute;
-    public final Resource Mapping_VertexMapping_MassFlowAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_MaximumHeadMAttribute;
-    public final Resource Mapping_VertexMapping_MaximumHeadMAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_NominalFlowAttribute;
-    public final Resource Mapping_VertexMapping_NominalFlowAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_NominalHeadBAttribute;
-    public final Resource Mapping_VertexMapping_NominalHeadBAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_NominalHeadMAttribute;
-    public final Resource Mapping_VertexMapping_NominalHeadMAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_NominalMassFlowAttribute;
-    public final Resource Mapping_VertexMapping_NominalMassFlowAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_NominalPressureLossAttribute;
-    public final Resource Mapping_VertexMapping_NominalPressureLossAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_ReturnPressureAttribute;
-    public final Resource Mapping_VertexMapping_ReturnPressureAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_ReturnTemperatureAttribute;
-    public final Resource Mapping_VertexMapping_ReturnTemperatureAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_SupplyPressureAttribute;
-    public final Resource Mapping_VertexMapping_SupplyPressureAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_SupplyTemperatureAttribute;
-    public final Resource Mapping_VertexMapping_SupplyTemperatureAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_ValvePositionAttribute;
-    public final Resource Mapping_VertexMapping_ValvePositionAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_VelocityAttribute;
-    public final Resource Mapping_VertexMapping_VelocityAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_VolFlowAttribute;
-    public final Resource Mapping_VertexMapping_VolFlowAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_dpAttribute;
-    public final Resource Mapping_VertexMapping_dpAttribute_Inverse;
-    public final Resource Mapping_VertexMapping_dtAttribute;
-    public final Resource Mapping_VertexMapping_dtAttribute_Inverse;
-    public final Resource SCLMain;
-    public final Resource SpatialRefSystem;
-    public final Resource Vertex;
-    public final Resource VertexDefaultMapping;
-    public final Resource VertexDefaultMapping_Inverse;
-    public final Resource VertexMappingParameterType;
-    public final Resource VertexStyle;
-    public final Resource Vertex_ColorProperty;
-    public final Resource Vertex_HasAddress;
-    public final Resource Vertex_HasAddress_Inverse;
-    public final Resource Vertex_HasDeltaPressure;
-    public final Resource Vertex_HasDeltaPressure_Inverse;
-    public final Resource Vertex_HasDeltaTemperature;
-    public final Resource Vertex_HasDeltaTemperature_Inverse;
-    public final Resource Vertex_HasElevation;
-    public final Resource Vertex_HasElevation_Inverse;
-    public final Resource Vertex_HasFlowArea;
-    public final Resource Vertex_HasFlowArea_Inverse;
-    public final Resource Vertex_HasHeatLoadDs;
-    public final Resource Vertex_HasHeatLoadDs_Inverse;
-    public final Resource Vertex_HasHeatPower;
-    public final Resource Vertex_HasHeatPower_Inverse;
-    public final Resource Vertex_HasMassFlow;
-    public final Resource Vertex_HasMassFlow_Inverse;
-    public final Resource Vertex_HasMaximumHeadM;
-    public final Resource Vertex_HasMaximumHeadM_Inverse;
-    public final Resource Vertex_HasNominalFlow;
-    public final Resource Vertex_HasNominalFlow_Inverse;
-    public final Resource Vertex_HasNominalHeadB;
-    public final Resource Vertex_HasNominalHeadB_Inverse;
-    public final Resource Vertex_HasNominalHeadM;
-    public final Resource Vertex_HasNominalHeadM_Inverse;
-    public final Resource Vertex_HasNominalPressureLoss;
-    public final Resource Vertex_HasNominalPressureLoss_Inverse;
-    public final Resource Vertex_HasReturnPressure;
-    public final Resource Vertex_HasReturnPressure_Inverse;
-    public final Resource Vertex_HasReturnTemperature;
-    public final Resource Vertex_HasReturnTemperature_Inverse;
-    public final Resource Vertex_HasSupplyPressure;
-    public final Resource Vertex_HasSupplyPressure_Inverse;
-    public final Resource Vertex_HasSupplyTemperature;
-    public final Resource Vertex_HasSupplyTemperature_Inverse;
-    public final Resource Vertex_HasValvePosition;
-    public final Resource Vertex_HasValvePosition_Inverse;
-    public final Resource Vertex_HasVelocity;
-    public final Resource Vertex_HasVelocity_Inverse;
-    public final Resource Vertex_HasVolFlow;
-    public final Resource Vertex_HasVolFlow_Inverse;
-    public final Resource Vertex_ScaleProperty;
-    public final Resource Vertex_ScaleProperty_SupplyPressure;
-    public final Resource Vertex_ScaleProperty_scale;
-    public final Resource Vertex_ScaleProperty_scale_Inverse;
-    public final Resource Vertex_ScaleProperty_value;
-    public final Resource Vertex_ScaleProperty_value_Inverse;
-        
-    public static class URIs {
-        public static final String ActionContext = "http://www.simantics.org/DistrictNetwork-1.0/ActionContext";
-        public static final String ActionContext_newDiagramContribution = "http://www.simantics.org/DistrictNetwork-1.0/ActionContext/newDiagramContribution";
-        public static final String Actions = "http://www.simantics.org/DistrictNetwork-1.0/Actions";
-        public static final String Actions_NewDNDiagram = "http://www.simantics.org/DistrictNetwork-1.0/Actions/NewDNDiagram";
-        public static final String AddLayerToDNDiagramTemplate = "http://www.simantics.org/DistrictNetwork-1.0/AddLayerToDNDiagramTemplate";
-        public static final String BrowseContext = "http://www.simantics.org/DistrictNetwork-1.0/BrowseContext";
-        public static final String Composite = "http://www.simantics.org/DistrictNetwork-1.0/Composite";
-        public static final String Connection = "http://www.simantics.org/DistrictNetwork-1.0/Connection";
-        public static final String Diagram = "http://www.simantics.org/DistrictNetwork-1.0/Diagram";
-        public static final String Diagram_MappedDiagram = "http://www.simantics.org/DistrictNetwork-1.0/Diagram/MappedDiagram";
-        public static final String Diagram_MappedFromDiagram = "http://www.simantics.org/DistrictNetwork-1.0/Diagram/MappedFromDiagram";
-        public static final String Diagram_edgeThicknessProperty = "http://www.simantics.org/DistrictNetwork-1.0/Diagram/edgeThicknessProperty";
-        public static final String Diagram_edgeThicknessProperty_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Diagram/edgeThicknessProperty/Inverse";
-        public static final String Diagram_edgeThicknessScale = "http://www.simantics.org/DistrictNetwork-1.0/Diagram/edgeThicknessScale";
-        public static final String Diagram_edgeThicknessScale_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Diagram/edgeThicknessScale/Inverse";
-        public static final String EPSG_4326 = "http://www.simantics.org/DistrictNetwork-1.0/EPSG_4326";
-        public static final String Edge = "http://www.simantics.org/DistrictNetwork-1.0/Edge";
-        public static final String EdgeDefaultMapping = "http://www.simantics.org/DistrictNetwork-1.0/EdgeDefaultMapping";
-        public static final String EdgeDefaultMapping_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/EdgeDefaultMapping/Inverse";
-        public static final String EdgeMappingParameterType = "http://www.simantics.org/DistrictNetwork-1.0/EdgeMappingParameterType";
-        public static final String EdgeStyle = "http://www.simantics.org/DistrictNetwork-1.0/EdgeStyle";
-        public static final String EdgeThicknessPropertyParameterType = "http://www.simantics.org/DistrictNetwork-1.0/EdgeThicknessPropertyParameterType";
-        public static final String Edge_HasDiameter = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasDiameter";
-        public static final String Edge_HasDiameter_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasDiameter/Inverse";
-        public static final String Edge_HasFlowArea = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasFlowArea";
-        public static final String Edge_HasFlowArea_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasFlowArea/Inverse";
-        public static final String Edge_HasKReturn = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasKReturn";
-        public static final String Edge_HasKReturn_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasKReturn/Inverse";
-        public static final String Edge_HasKSupply = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasKSupply";
-        public static final String Edge_HasKSupply_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasKSupply/Inverse";
-        public static final String Edge_HasLength = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasLength";
-        public static final String Edge_HasLength_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasLength/Inverse";
-        public static final String Edge_HasNominalMassFlow = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasNominalMassFlow";
-        public static final String Edge_HasNominalMassFlow_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasNominalMassFlow/Inverse";
-        public static final String Edge_HasOuterDiameter = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasOuterDiameter";
-        public static final String Edge_HasOuterDiameter_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasOuterDiameter/Inverse";
-        public static final String Edge_HasTGround = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasTGround";
-        public static final String Edge_HasTGround_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/HasTGround/Inverse";
-        public static final String Edge_ThicknessProperty = "http://www.simantics.org/DistrictNetwork-1.0/Edge/ThicknessProperty";
-        public static final String Edge_ThicknessProperty_Diameter = "http://www.simantics.org/DistrictNetwork-1.0/Edge/ThicknessProperty/Diameter";
-        public static final String Edge_ThicknessProperty_NominalMassFlow = "http://www.simantics.org/DistrictNetwork-1.0/Edge/ThicknessProperty/NominalMassFlow";
-        public static final String Edge_ThicknessProperty_scale = "http://www.simantics.org/DistrictNetwork-1.0/Edge/ThicknessProperty/scale";
-        public static final String Edge_ThicknessProperty_scale_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/ThicknessProperty/scale/Inverse";
-        public static final String Edge_ThicknessProperty_value = "http://www.simantics.org/DistrictNetwork-1.0/Edge/ThicknessProperty/value";
-        public static final String Edge_ThicknessProperty_value_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Edge/ThicknessProperty/value/Inverse";
-        public static final String Element = "http://www.simantics.org/DistrictNetwork-1.0/Element";
-        public static final String Functions = "http://www.simantics.org/DistrictNetwork-1.0/Functions";
-        public static final String Functions_compositeInstantiator = "http://www.simantics.org/DistrictNetwork-1.0/Functions/compositeInstantiator";
-        public static final String Functions_convertToValue = "http://www.simantics.org/DistrictNetwork-1.0/Functions/convertToValue";
-        public static final String Functions_defaultEdgeMappingModifier = "http://www.simantics.org/DistrictNetwork-1.0/Functions/defaultEdgeMappingModifier";
-        public static final String Functions_defaultVertexMappingModifier = "http://www.simantics.org/DistrictNetwork-1.0/Functions/defaultVertexMappingModifier";
-        public static final String Functions_edgeThicknessPropertyEnumerationValues = "http://www.simantics.org/DistrictNetwork-1.0/Functions/edgeThicknessPropertyEnumerationValues";
-        public static final String Functions_edgeThicknessPropertyModifier = "http://www.simantics.org/DistrictNetwork-1.0/Functions/edgeThicknessPropertyModifier";
-        public static final String Functions_enumerationValues = "http://www.simantics.org/DistrictNetwork-1.0/Functions/enumerationValues";
-        public static final String Functions_mappingModifier = "http://www.simantics.org/DistrictNetwork-1.0/Functions/mappingModifier";
-        public static final String Groups = "http://www.simantics.org/DistrictNetwork-1.0/Groups";
-        public static final String Groups_EdgeGroup = "http://www.simantics.org/DistrictNetwork-1.0/Groups/EdgeGroup";
-        public static final String Groups_VertexGroup = "http://www.simantics.org/DistrictNetwork-1.0/Groups/VertexGroup";
-        public static final String HasEndVertex = "http://www.simantics.org/DistrictNetwork-1.0/HasEndVertex";
-        public static final String HasEndVertex_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasEndVertex_Inverse";
-        public static final String HasId = "http://www.simantics.org/DistrictNetwork-1.0/HasId";
-        public static final String HasId_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasId/Inverse";
-        public static final String HasInLayerTag = "http://www.simantics.org/DistrictNetwork-1.0/HasInLayerTag";
-        public static final String HasInLayerTag_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasInLayerTag/Inverse";
-        public static final String HasMapping = "http://www.simantics.org/DistrictNetwork-1.0/HasMapping";
-        public static final String HasMapping_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasMapping/Inverse";
-        public static final String HasSRID = "http://www.simantics.org/DistrictNetwork-1.0/HasSRID";
-        public static final String HasSRID_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasSRID/Inverse";
-        public static final String HasSRTEXT = "http://www.simantics.org/DistrictNetwork-1.0/HasSRTEXT";
-        public static final String HasSRTEXT_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasSRTEXT/Inverse";
-        public static final String HasSpatialRefSystem = "http://www.simantics.org/DistrictNetwork-1.0/HasSpatialRefSystem";
-        public static final String HasSpatialRefSystem_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasSpatialRefSystem/Inverse";
-        public static final String HasStartVertex = "http://www.simantics.org/DistrictNetwork-1.0/HasStartVertex";
-        public static final String HasStartVertex_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/HasStartVertex_Inverse";
-        public static final String Images = "http://www.simantics.org/DistrictNetwork-1.0/Images";
-        public static final String Images_MapImage = "http://www.simantics.org/DistrictNetwork-1.0/Images/MapImage";
-        public static final String InLayer = "http://www.simantics.org/DistrictNetwork-1.0/InLayer";
-        public static final String Layer = "http://www.simantics.org/DistrictNetwork-1.0/Layer";
-        public static final String MappedComponent = "http://www.simantics.org/DistrictNetwork-1.0/MappedComponent";
-        public static final String MappedFromElement = "http://www.simantics.org/DistrictNetwork-1.0/MappedFromElement";
-        public static final String Mapping = "http://www.simantics.org/DistrictNetwork-1.0/Mapping";
-        public static final String MappingParameterType = "http://www.simantics.org/DistrictNetwork-1.0/MappingParameterType";
-        public static final String Mapping_Base = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/Base";
-        public static final String Mapping_ComponentType = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/ComponentType";
-        public static final String Mapping_ComponentType_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/ComponentType/Inverse";
-        public static final String Mapping_EdgeMapping = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping";
-        public static final String Mapping_EdgeMapping_DiameterAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/DiameterAttribute";
-        public static final String Mapping_EdgeMapping_DiameterAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/DiameterAttribute/Inverse";
-        public static final String Mapping_EdgeMapping_FlowAreaAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/FlowAreaAttribute";
-        public static final String Mapping_EdgeMapping_FlowAreaAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/FlowAreaAttribute/Inverse";
-        public static final String Mapping_EdgeMapping_KReturnAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/KReturnAttribute";
-        public static final String Mapping_EdgeMapping_KReturnAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/KReturnAttribute/Inverse";
-        public static final String Mapping_EdgeMapping_KSupplyAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/KSupplyAttribute";
-        public static final String Mapping_EdgeMapping_KSupplyAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/KSupplyAttribute/Inverse";
-        public static final String Mapping_EdgeMapping_LengthAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/LengthAttribute";
-        public static final String Mapping_EdgeMapping_LengthAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/LengthAttribute/Inverse";
-        public static final String Mapping_EdgeMapping_NominalMassFlowAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/NominalMassFlowAttribute";
-        public static final String Mapping_EdgeMapping_NominalMassFlowAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/NominalMassFlowAttribute/Inverse";
-        public static final String Mapping_EdgeMapping_OuterDiameterAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/OuterDiameterAttribute";
-        public static final String Mapping_EdgeMapping_OuterDiameterAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/OuterDiameterAttribute/Inverse";
-        public static final String Mapping_EdgeMapping_TGroundAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/TGroundAttribute";
-        public static final String Mapping_EdgeMapping_TGroundAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/EdgeMapping/TGroundAttribute/Inverse";
-        public static final String Mapping_Id = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/Id";
-        public static final String Mapping_Id_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/Id/Inverse";
-        public static final String Mapping_InputTerminal = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/InputTerminal";
-        public static final String Mapping_InputTerminal_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/InputTerminal/Inverse";
-        public static final String Mapping_OutputTerminal = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/OutputTerminal";
-        public static final String Mapping_OutputTerminal_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/OutputTerminal/Inverse";
-        public static final String Mapping_Terminal = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/Terminal";
-        public static final String Mapping_TerminalPair = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/TerminalPair";
-        public static final String Mapping_Terminals = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/Terminals";
-        public static final String Mapping_Terminals_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/Terminals/Inverse";
-        public static final String Mapping_VertexMapping = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping";
-        public static final String Mapping_VertexMapping_AddressAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/AddressAttribute";
-        public static final String Mapping_VertexMapping_AddressAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/AddressAttribute/Inverse";
-        public static final String Mapping_VertexMapping_DeltaPressureAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/DeltaPressureAttribute";
-        public static final String Mapping_VertexMapping_DeltaPressureAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/DeltaPressureAttribute/Inverse";
-        public static final String Mapping_VertexMapping_DeltaTemperatureAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/DeltaTemperatureAttribute";
-        public static final String Mapping_VertexMapping_DeltaTemperatureAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/DeltaTemperatureAttribute/Inverse";
-        public static final String Mapping_VertexMapping_ElevationAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ElevationAttribute";
-        public static final String Mapping_VertexMapping_ElevationAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ElevationAttribute/Inverse";
-        public static final String Mapping_VertexMapping_FlowAreaAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/FlowAreaAttribute";
-        public static final String Mapping_VertexMapping_FlowAreaAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/FlowAreaAttribute/Inverse";
-        public static final String Mapping_VertexMapping_HeatLoadDsAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/HeatLoadDsAttribute";
-        public static final String Mapping_VertexMapping_HeatLoadDsAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/HeatLoadDsAttribute/Inverse";
-        public static final String Mapping_VertexMapping_HeatPowerAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/HeatPowerAttribute";
-        public static final String Mapping_VertexMapping_HeatPowerAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/HeatPowerAttribute/Inverse";
-        public static final String Mapping_VertexMapping_MassFlowAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/MassFlowAttribute";
-        public static final String Mapping_VertexMapping_MassFlowAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/MassFlowAttribute/Inverse";
-        public static final String Mapping_VertexMapping_MaximumHeadMAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/MaximumHeadMAttribute";
-        public static final String Mapping_VertexMapping_MaximumHeadMAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/MaximumHeadMAttribute/Inverse";
-        public static final String Mapping_VertexMapping_NominalFlowAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalFlowAttribute";
-        public static final String Mapping_VertexMapping_NominalFlowAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalFlowAttribute/Inverse";
-        public static final String Mapping_VertexMapping_NominalHeadBAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalHeadBAttribute";
-        public static final String Mapping_VertexMapping_NominalHeadBAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalHeadBAttribute/Inverse";
-        public static final String Mapping_VertexMapping_NominalHeadMAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalHeadMAttribute";
-        public static final String Mapping_VertexMapping_NominalHeadMAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalHeadMAttribute/Inverse";
-        public static final String Mapping_VertexMapping_NominalMassFlowAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalMassFlowAttribute";
-        public static final String Mapping_VertexMapping_NominalMassFlowAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalMassFlowAttribute/Inverse";
-        public static final String Mapping_VertexMapping_NominalPressureLossAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalPressureLossAttribute";
-        public static final String Mapping_VertexMapping_NominalPressureLossAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/NominalPressureLossAttribute/Inverse";
-        public static final String Mapping_VertexMapping_ReturnPressureAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ReturnPressureAttribute";
-        public static final String Mapping_VertexMapping_ReturnPressureAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ReturnPressureAttribute/Inverse";
-        public static final String Mapping_VertexMapping_ReturnTemperatureAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ReturnTemperatureAttribute";
-        public static final String Mapping_VertexMapping_ReturnTemperatureAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ReturnTemperatureAttribute/Inverse";
-        public static final String Mapping_VertexMapping_SupplyPressureAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/SupplyPressureAttribute";
-        public static final String Mapping_VertexMapping_SupplyPressureAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/SupplyPressureAttribute/Inverse";
-        public static final String Mapping_VertexMapping_SupplyTemperatureAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/SupplyTemperatureAttribute";
-        public static final String Mapping_VertexMapping_SupplyTemperatureAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/SupplyTemperatureAttribute/Inverse";
-        public static final String Mapping_VertexMapping_ValvePositionAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ValvePositionAttribute";
-        public static final String Mapping_VertexMapping_ValvePositionAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/ValvePositionAttribute/Inverse";
-        public static final String Mapping_VertexMapping_VelocityAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/VelocityAttribute";
-        public static final String Mapping_VertexMapping_VelocityAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/VelocityAttribute/Inverse";
-        public static final String Mapping_VertexMapping_VolFlowAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/VolFlowAttribute";
-        public static final String Mapping_VertexMapping_VolFlowAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/VolFlowAttribute/Inverse";
-        public static final String Mapping_VertexMapping_dpAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/dpAttribute";
-        public static final String Mapping_VertexMapping_dpAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/dpAttribute/Inverse";
-        public static final String Mapping_VertexMapping_dtAttribute = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/dtAttribute";
-        public static final String Mapping_VertexMapping_dtAttribute_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Mapping/VertexMapping/dtAttribute/Inverse";
-        public static final String SCLMain = "http://www.simantics.org/DistrictNetwork-1.0/SCLMain";
-        public static final String SpatialRefSystem = "http://www.simantics.org/DistrictNetwork-1.0/SpatialRefSystem";
-        public static final String Vertex = "http://www.simantics.org/DistrictNetwork-1.0/Vertex";
-        public static final String VertexDefaultMapping = "http://www.simantics.org/DistrictNetwork-1.0/VertexDefaultMapping";
-        public static final String VertexDefaultMapping_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/VertexDefaultMapping/Inverse";
-        public static final String VertexMappingParameterType = "http://www.simantics.org/DistrictNetwork-1.0/VertexMappingParameterType";
-        public static final String VertexStyle = "http://www.simantics.org/DistrictNetwork-1.0/VertexStyle";
-        public static final String Vertex_ColorProperty = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/ColorProperty";
-        public static final String Vertex_HasAddress = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasAddress";
-        public static final String Vertex_HasAddress_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasAddress/Inverse";
-        public static final String Vertex_HasDeltaPressure = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasDeltaPressure";
-        public static final String Vertex_HasDeltaPressure_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasDeltaPressure/Inverse";
-        public static final String Vertex_HasDeltaTemperature = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasDeltaTemperature";
-        public static final String Vertex_HasDeltaTemperature_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasDeltaTemperature/Inverse";
-        public static final String Vertex_HasElevation = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasElevation";
-        public static final String Vertex_HasElevation_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasElevation/Inverse";
-        public static final String Vertex_HasFlowArea = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasFlowArea";
-        public static final String Vertex_HasFlowArea_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasFlowArea/Inverse";
-        public static final String Vertex_HasHeatLoadDs = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasHeatLoadDs";
-        public static final String Vertex_HasHeatLoadDs_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasHeatLoadDs/Inverse";
-        public static final String Vertex_HasHeatPower = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasHeatPower";
-        public static final String Vertex_HasHeatPower_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasHeatPower/Inverse";
-        public static final String Vertex_HasMassFlow = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasMassFlow";
-        public static final String Vertex_HasMassFlow_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasMassFlow/Inverse";
-        public static final String Vertex_HasMaximumHeadM = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasMaximumHeadM";
-        public static final String Vertex_HasMaximumHeadM_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasMaximumHeadM/Inverse";
-        public static final String Vertex_HasNominalFlow = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalFlow";
-        public static final String Vertex_HasNominalFlow_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalFlow/Inverse";
-        public static final String Vertex_HasNominalHeadB = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalHeadB";
-        public static final String Vertex_HasNominalHeadB_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalHeadB/Inverse";
-        public static final String Vertex_HasNominalHeadM = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalHeadM";
-        public static final String Vertex_HasNominalHeadM_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalHeadM/Inverse";
-        public static final String Vertex_HasNominalPressureLoss = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalPressureLoss";
-        public static final String Vertex_HasNominalPressureLoss_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasNominalPressureLoss/Inverse";
-        public static final String Vertex_HasReturnPressure = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasReturnPressure";
-        public static final String Vertex_HasReturnPressure_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasReturnPressure/Inverse";
-        public static final String Vertex_HasReturnTemperature = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasReturnTemperature";
-        public static final String Vertex_HasReturnTemperature_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasReturnTemperature/Inverse";
-        public static final String Vertex_HasSupplyPressure = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasSupplyPressure";
-        public static final String Vertex_HasSupplyPressure_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasSupplyPressure/Inverse";
-        public static final String Vertex_HasSupplyTemperature = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasSupplyTemperature";
-        public static final String Vertex_HasSupplyTemperature_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasSupplyTemperature/Inverse";
-        public static final String Vertex_HasValvePosition = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasValvePosition";
-        public static final String Vertex_HasValvePosition_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasValvePosition/Inverse";
-        public static final String Vertex_HasVelocity = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasVelocity";
-        public static final String Vertex_HasVelocity_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasVelocity/Inverse";
-        public static final String Vertex_HasVolFlow = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasVolFlow";
-        public static final String Vertex_HasVolFlow_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/HasVolFlow/Inverse";
-        public static final String Vertex_ScaleProperty = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/ScaleProperty";
-        public static final String Vertex_ScaleProperty_SupplyPressure = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/ScaleProperty/SupplyPressure";
-        public static final String Vertex_ScaleProperty_scale = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/ScaleProperty/scale";
-        public static final String Vertex_ScaleProperty_scale_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/ScaleProperty/scale/Inverse";
-        public static final String Vertex_ScaleProperty_value = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/ScaleProperty/value";
-        public static final String Vertex_ScaleProperty_value_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/Vertex/ScaleProperty/value/Inverse";
-    }
-    
-    public static Resource getResourceOrNull(ReadGraph graph, String uri) {
-        try {
-            return graph.getResource(uri);
-        } catch(DatabaseException e) {
-            System.err.println(e.getMessage());
-            return null;
-        }
-    }
-    
-    public DistrictNetworkResource(ReadGraph graph) {
-        ActionContext = getResourceOrNull(graph, URIs.ActionContext);
-        ActionContext_newDiagramContribution = getResourceOrNull(graph, URIs.ActionContext_newDiagramContribution);
-        Actions = getResourceOrNull(graph, URIs.Actions);
-        Actions_NewDNDiagram = getResourceOrNull(graph, URIs.Actions_NewDNDiagram);
-        AddLayerToDNDiagramTemplate = getResourceOrNull(graph, URIs.AddLayerToDNDiagramTemplate);
-        BrowseContext = getResourceOrNull(graph, URIs.BrowseContext);
-        Composite = getResourceOrNull(graph, URIs.Composite);
-        Connection = getResourceOrNull(graph, URIs.Connection);
-        Diagram = getResourceOrNull(graph, URIs.Diagram);
-        Diagram_MappedDiagram = getResourceOrNull(graph, URIs.Diagram_MappedDiagram);
-        Diagram_MappedFromDiagram = getResourceOrNull(graph, URIs.Diagram_MappedFromDiagram);
-        Diagram_edgeThicknessProperty = getResourceOrNull(graph, URIs.Diagram_edgeThicknessProperty);
-        Diagram_edgeThicknessProperty_Inverse = getResourceOrNull(graph, URIs.Diagram_edgeThicknessProperty_Inverse);
-        Diagram_edgeThicknessScale = getResourceOrNull(graph, URIs.Diagram_edgeThicknessScale);
-        Diagram_edgeThicknessScale_Inverse = getResourceOrNull(graph, URIs.Diagram_edgeThicknessScale_Inverse);
-        EPSG_4326 = getResourceOrNull(graph, URIs.EPSG_4326);
-        Edge = getResourceOrNull(graph, URIs.Edge);
-        EdgeDefaultMapping = getResourceOrNull(graph, URIs.EdgeDefaultMapping);
-        EdgeDefaultMapping_Inverse = getResourceOrNull(graph, URIs.EdgeDefaultMapping_Inverse);
-        EdgeMappingParameterType = getResourceOrNull(graph, URIs.EdgeMappingParameterType);
-        EdgeStyle = getResourceOrNull(graph, URIs.EdgeStyle);
-        EdgeThicknessPropertyParameterType = getResourceOrNull(graph, URIs.EdgeThicknessPropertyParameterType);
-        Edge_HasDiameter = getResourceOrNull(graph, URIs.Edge_HasDiameter);
-        Edge_HasDiameter_Inverse = getResourceOrNull(graph, URIs.Edge_HasDiameter_Inverse);
-        Edge_HasFlowArea = getResourceOrNull(graph, URIs.Edge_HasFlowArea);
-        Edge_HasFlowArea_Inverse = getResourceOrNull(graph, URIs.Edge_HasFlowArea_Inverse);
-        Edge_HasKReturn = getResourceOrNull(graph, URIs.Edge_HasKReturn);
-        Edge_HasKReturn_Inverse = getResourceOrNull(graph, URIs.Edge_HasKReturn_Inverse);
-        Edge_HasKSupply = getResourceOrNull(graph, URIs.Edge_HasKSupply);
-        Edge_HasKSupply_Inverse = getResourceOrNull(graph, URIs.Edge_HasKSupply_Inverse);
-        Edge_HasLength = getResourceOrNull(graph, URIs.Edge_HasLength);
-        Edge_HasLength_Inverse = getResourceOrNull(graph, URIs.Edge_HasLength_Inverse);
-        Edge_HasNominalMassFlow = getResourceOrNull(graph, URIs.Edge_HasNominalMassFlow);
-        Edge_HasNominalMassFlow_Inverse = getResourceOrNull(graph, URIs.Edge_HasNominalMassFlow_Inverse);
-        Edge_HasOuterDiameter = getResourceOrNull(graph, URIs.Edge_HasOuterDiameter);
-        Edge_HasOuterDiameter_Inverse = getResourceOrNull(graph, URIs.Edge_HasOuterDiameter_Inverse);
-        Edge_HasTGround = getResourceOrNull(graph, URIs.Edge_HasTGround);
-        Edge_HasTGround_Inverse = getResourceOrNull(graph, URIs.Edge_HasTGround_Inverse);
-        Edge_ThicknessProperty = getResourceOrNull(graph, URIs.Edge_ThicknessProperty);
-        Edge_ThicknessProperty_Diameter = getResourceOrNull(graph, URIs.Edge_ThicknessProperty_Diameter);
-        Edge_ThicknessProperty_NominalMassFlow = getResourceOrNull(graph, URIs.Edge_ThicknessProperty_NominalMassFlow);
-        Edge_ThicknessProperty_scale = getResourceOrNull(graph, URIs.Edge_ThicknessProperty_scale);
-        Edge_ThicknessProperty_scale_Inverse = getResourceOrNull(graph, URIs.Edge_ThicknessProperty_scale_Inverse);
-        Edge_ThicknessProperty_value = getResourceOrNull(graph, URIs.Edge_ThicknessProperty_value);
-        Edge_ThicknessProperty_value_Inverse = getResourceOrNull(graph, URIs.Edge_ThicknessProperty_value_Inverse);
-        Element = getResourceOrNull(graph, URIs.Element);
-        Functions = getResourceOrNull(graph, URIs.Functions);
-        Functions_compositeInstantiator = getResourceOrNull(graph, URIs.Functions_compositeInstantiator);
-        Functions_convertToValue = getResourceOrNull(graph, URIs.Functions_convertToValue);
-        Functions_defaultEdgeMappingModifier = getResourceOrNull(graph, URIs.Functions_defaultEdgeMappingModifier);
-        Functions_defaultVertexMappingModifier = getResourceOrNull(graph, URIs.Functions_defaultVertexMappingModifier);
-        Functions_edgeThicknessPropertyEnumerationValues = getResourceOrNull(graph, URIs.Functions_edgeThicknessPropertyEnumerationValues);
-        Functions_edgeThicknessPropertyModifier = getResourceOrNull(graph, URIs.Functions_edgeThicknessPropertyModifier);
-        Functions_enumerationValues = getResourceOrNull(graph, URIs.Functions_enumerationValues);
-        Functions_mappingModifier = getResourceOrNull(graph, URIs.Functions_mappingModifier);
-        Groups = getResourceOrNull(graph, URIs.Groups);
-        Groups_EdgeGroup = getResourceOrNull(graph, URIs.Groups_EdgeGroup);
-        Groups_VertexGroup = getResourceOrNull(graph, URIs.Groups_VertexGroup);
-        HasEndVertex = getResourceOrNull(graph, URIs.HasEndVertex);
-        HasEndVertex_Inverse = getResourceOrNull(graph, URIs.HasEndVertex_Inverse);
-        HasId = getResourceOrNull(graph, URIs.HasId);
-        HasId_Inverse = getResourceOrNull(graph, URIs.HasId_Inverse);
-        HasInLayerTag = getResourceOrNull(graph, URIs.HasInLayerTag);
-        HasInLayerTag_Inverse = getResourceOrNull(graph, URIs.HasInLayerTag_Inverse);
-        HasMapping = getResourceOrNull(graph, URIs.HasMapping);
-        HasMapping_Inverse = getResourceOrNull(graph, URIs.HasMapping_Inverse);
-        HasSRID = getResourceOrNull(graph, URIs.HasSRID);
-        HasSRID_Inverse = getResourceOrNull(graph, URIs.HasSRID_Inverse);
-        HasSRTEXT = getResourceOrNull(graph, URIs.HasSRTEXT);
-        HasSRTEXT_Inverse = getResourceOrNull(graph, URIs.HasSRTEXT_Inverse);
-        HasSpatialRefSystem = getResourceOrNull(graph, URIs.HasSpatialRefSystem);
-        HasSpatialRefSystem_Inverse = getResourceOrNull(graph, URIs.HasSpatialRefSystem_Inverse);
-        HasStartVertex = getResourceOrNull(graph, URIs.HasStartVertex);
-        HasStartVertex_Inverse = getResourceOrNull(graph, URIs.HasStartVertex_Inverse);
-        Images = getResourceOrNull(graph, URIs.Images);
-        Images_MapImage = getResourceOrNull(graph, URIs.Images_MapImage);
-        InLayer = getResourceOrNull(graph, URIs.InLayer);
-        Layer = getResourceOrNull(graph, URIs.Layer);
-        MappedComponent = getResourceOrNull(graph, URIs.MappedComponent);
-        MappedFromElement = getResourceOrNull(graph, URIs.MappedFromElement);
-        Mapping = getResourceOrNull(graph, URIs.Mapping);
-        MappingParameterType = getResourceOrNull(graph, URIs.MappingParameterType);
-        Mapping_Base = getResourceOrNull(graph, URIs.Mapping_Base);
-        Mapping_ComponentType = getResourceOrNull(graph, URIs.Mapping_ComponentType);
-        Mapping_ComponentType_Inverse = getResourceOrNull(graph, URIs.Mapping_ComponentType_Inverse);
-        Mapping_EdgeMapping = getResourceOrNull(graph, URIs.Mapping_EdgeMapping);
-        Mapping_EdgeMapping_DiameterAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_DiameterAttribute);
-        Mapping_EdgeMapping_DiameterAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_DiameterAttribute_Inverse);
-        Mapping_EdgeMapping_FlowAreaAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_FlowAreaAttribute);
-        Mapping_EdgeMapping_FlowAreaAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_FlowAreaAttribute_Inverse);
-        Mapping_EdgeMapping_KReturnAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_KReturnAttribute);
-        Mapping_EdgeMapping_KReturnAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_KReturnAttribute_Inverse);
-        Mapping_EdgeMapping_KSupplyAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_KSupplyAttribute);
-        Mapping_EdgeMapping_KSupplyAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_KSupplyAttribute_Inverse);
-        Mapping_EdgeMapping_LengthAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_LengthAttribute);
-        Mapping_EdgeMapping_LengthAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_LengthAttribute_Inverse);
-        Mapping_EdgeMapping_NominalMassFlowAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_NominalMassFlowAttribute);
-        Mapping_EdgeMapping_NominalMassFlowAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_NominalMassFlowAttribute_Inverse);
-        Mapping_EdgeMapping_OuterDiameterAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_OuterDiameterAttribute);
-        Mapping_EdgeMapping_OuterDiameterAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_OuterDiameterAttribute_Inverse);
-        Mapping_EdgeMapping_TGroundAttribute = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_TGroundAttribute);
-        Mapping_EdgeMapping_TGroundAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_EdgeMapping_TGroundAttribute_Inverse);
-        Mapping_Id = getResourceOrNull(graph, URIs.Mapping_Id);
-        Mapping_Id_Inverse = getResourceOrNull(graph, URIs.Mapping_Id_Inverse);
-        Mapping_InputTerminal = getResourceOrNull(graph, URIs.Mapping_InputTerminal);
-        Mapping_InputTerminal_Inverse = getResourceOrNull(graph, URIs.Mapping_InputTerminal_Inverse);
-        Mapping_OutputTerminal = getResourceOrNull(graph, URIs.Mapping_OutputTerminal);
-        Mapping_OutputTerminal_Inverse = getResourceOrNull(graph, URIs.Mapping_OutputTerminal_Inverse);
-        Mapping_Terminal = getResourceOrNull(graph, URIs.Mapping_Terminal);
-        Mapping_TerminalPair = getResourceOrNull(graph, URIs.Mapping_TerminalPair);
-        Mapping_Terminals = getResourceOrNull(graph, URIs.Mapping_Terminals);
-        Mapping_Terminals_Inverse = getResourceOrNull(graph, URIs.Mapping_Terminals_Inverse);
-        Mapping_VertexMapping = getResourceOrNull(graph, URIs.Mapping_VertexMapping);
-        Mapping_VertexMapping_AddressAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_AddressAttribute);
-        Mapping_VertexMapping_AddressAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_AddressAttribute_Inverse);
-        Mapping_VertexMapping_DeltaPressureAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_DeltaPressureAttribute);
-        Mapping_VertexMapping_DeltaPressureAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_DeltaPressureAttribute_Inverse);
-        Mapping_VertexMapping_DeltaTemperatureAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_DeltaTemperatureAttribute);
-        Mapping_VertexMapping_DeltaTemperatureAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_DeltaTemperatureAttribute_Inverse);
-        Mapping_VertexMapping_ElevationAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ElevationAttribute);
-        Mapping_VertexMapping_ElevationAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ElevationAttribute_Inverse);
-        Mapping_VertexMapping_FlowAreaAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_FlowAreaAttribute);
-        Mapping_VertexMapping_FlowAreaAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_FlowAreaAttribute_Inverse);
-        Mapping_VertexMapping_HeatLoadDsAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_HeatLoadDsAttribute);
-        Mapping_VertexMapping_HeatLoadDsAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_HeatLoadDsAttribute_Inverse);
-        Mapping_VertexMapping_HeatPowerAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_HeatPowerAttribute);
-        Mapping_VertexMapping_HeatPowerAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_HeatPowerAttribute_Inverse);
-        Mapping_VertexMapping_MassFlowAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_MassFlowAttribute);
-        Mapping_VertexMapping_MassFlowAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_MassFlowAttribute_Inverse);
-        Mapping_VertexMapping_MaximumHeadMAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_MaximumHeadMAttribute);
-        Mapping_VertexMapping_MaximumHeadMAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_MaximumHeadMAttribute_Inverse);
-        Mapping_VertexMapping_NominalFlowAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalFlowAttribute);
-        Mapping_VertexMapping_NominalFlowAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalFlowAttribute_Inverse);
-        Mapping_VertexMapping_NominalHeadBAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalHeadBAttribute);
-        Mapping_VertexMapping_NominalHeadBAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalHeadBAttribute_Inverse);
-        Mapping_VertexMapping_NominalHeadMAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalHeadMAttribute);
-        Mapping_VertexMapping_NominalHeadMAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalHeadMAttribute_Inverse);
-        Mapping_VertexMapping_NominalMassFlowAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalMassFlowAttribute);
-        Mapping_VertexMapping_NominalMassFlowAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalMassFlowAttribute_Inverse);
-        Mapping_VertexMapping_NominalPressureLossAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalPressureLossAttribute);
-        Mapping_VertexMapping_NominalPressureLossAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_NominalPressureLossAttribute_Inverse);
-        Mapping_VertexMapping_ReturnPressureAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ReturnPressureAttribute);
-        Mapping_VertexMapping_ReturnPressureAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ReturnPressureAttribute_Inverse);
-        Mapping_VertexMapping_ReturnTemperatureAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ReturnTemperatureAttribute);
-        Mapping_VertexMapping_ReturnTemperatureAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ReturnTemperatureAttribute_Inverse);
-        Mapping_VertexMapping_SupplyPressureAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_SupplyPressureAttribute);
-        Mapping_VertexMapping_SupplyPressureAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_SupplyPressureAttribute_Inverse);
-        Mapping_VertexMapping_SupplyTemperatureAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_SupplyTemperatureAttribute);
-        Mapping_VertexMapping_SupplyTemperatureAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_SupplyTemperatureAttribute_Inverse);
-        Mapping_VertexMapping_ValvePositionAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ValvePositionAttribute);
-        Mapping_VertexMapping_ValvePositionAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_ValvePositionAttribute_Inverse);
-        Mapping_VertexMapping_VelocityAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_VelocityAttribute);
-        Mapping_VertexMapping_VelocityAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_VelocityAttribute_Inverse);
-        Mapping_VertexMapping_VolFlowAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_VolFlowAttribute);
-        Mapping_VertexMapping_VolFlowAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_VolFlowAttribute_Inverse);
-        Mapping_VertexMapping_dpAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_dpAttribute);
-        Mapping_VertexMapping_dpAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_dpAttribute_Inverse);
-        Mapping_VertexMapping_dtAttribute = getResourceOrNull(graph, URIs.Mapping_VertexMapping_dtAttribute);
-        Mapping_VertexMapping_dtAttribute_Inverse = getResourceOrNull(graph, URIs.Mapping_VertexMapping_dtAttribute_Inverse);
-        SCLMain = getResourceOrNull(graph, URIs.SCLMain);
-        SpatialRefSystem = getResourceOrNull(graph, URIs.SpatialRefSystem);
-        Vertex = getResourceOrNull(graph, URIs.Vertex);
-        VertexDefaultMapping = getResourceOrNull(graph, URIs.VertexDefaultMapping);
-        VertexDefaultMapping_Inverse = getResourceOrNull(graph, URIs.VertexDefaultMapping_Inverse);
-        VertexMappingParameterType = getResourceOrNull(graph, URIs.VertexMappingParameterType);
-        VertexStyle = getResourceOrNull(graph, URIs.VertexStyle);
-        Vertex_ColorProperty = getResourceOrNull(graph, URIs.Vertex_ColorProperty);
-        Vertex_HasAddress = getResourceOrNull(graph, URIs.Vertex_HasAddress);
-        Vertex_HasAddress_Inverse = getResourceOrNull(graph, URIs.Vertex_HasAddress_Inverse);
-        Vertex_HasDeltaPressure = getResourceOrNull(graph, URIs.Vertex_HasDeltaPressure);
-        Vertex_HasDeltaPressure_Inverse = getResourceOrNull(graph, URIs.Vertex_HasDeltaPressure_Inverse);
-        Vertex_HasDeltaTemperature = getResourceOrNull(graph, URIs.Vertex_HasDeltaTemperature);
-        Vertex_HasDeltaTemperature_Inverse = getResourceOrNull(graph, URIs.Vertex_HasDeltaTemperature_Inverse);
-        Vertex_HasElevation = getResourceOrNull(graph, URIs.Vertex_HasElevation);
-        Vertex_HasElevation_Inverse = getResourceOrNull(graph, URIs.Vertex_HasElevation_Inverse);
-        Vertex_HasFlowArea = getResourceOrNull(graph, URIs.Vertex_HasFlowArea);
-        Vertex_HasFlowArea_Inverse = getResourceOrNull(graph, URIs.Vertex_HasFlowArea_Inverse);
-        Vertex_HasHeatLoadDs = getResourceOrNull(graph, URIs.Vertex_HasHeatLoadDs);
-        Vertex_HasHeatLoadDs_Inverse = getResourceOrNull(graph, URIs.Vertex_HasHeatLoadDs_Inverse);
-        Vertex_HasHeatPower = getResourceOrNull(graph, URIs.Vertex_HasHeatPower);
-        Vertex_HasHeatPower_Inverse = getResourceOrNull(graph, URIs.Vertex_HasHeatPower_Inverse);
-        Vertex_HasMassFlow = getResourceOrNull(graph, URIs.Vertex_HasMassFlow);
-        Vertex_HasMassFlow_Inverse = getResourceOrNull(graph, URIs.Vertex_HasMassFlow_Inverse);
-        Vertex_HasMaximumHeadM = getResourceOrNull(graph, URIs.Vertex_HasMaximumHeadM);
-        Vertex_HasMaximumHeadM_Inverse = getResourceOrNull(graph, URIs.Vertex_HasMaximumHeadM_Inverse);
-        Vertex_HasNominalFlow = getResourceOrNull(graph, URIs.Vertex_HasNominalFlow);
-        Vertex_HasNominalFlow_Inverse = getResourceOrNull(graph, URIs.Vertex_HasNominalFlow_Inverse);
-        Vertex_HasNominalHeadB = getResourceOrNull(graph, URIs.Vertex_HasNominalHeadB);
-        Vertex_HasNominalHeadB_Inverse = getResourceOrNull(graph, URIs.Vertex_HasNominalHeadB_Inverse);
-        Vertex_HasNominalHeadM = getResourceOrNull(graph, URIs.Vertex_HasNominalHeadM);
-        Vertex_HasNominalHeadM_Inverse = getResourceOrNull(graph, URIs.Vertex_HasNominalHeadM_Inverse);
-        Vertex_HasNominalPressureLoss = getResourceOrNull(graph, URIs.Vertex_HasNominalPressureLoss);
-        Vertex_HasNominalPressureLoss_Inverse = getResourceOrNull(graph, URIs.Vertex_HasNominalPressureLoss_Inverse);
-        Vertex_HasReturnPressure = getResourceOrNull(graph, URIs.Vertex_HasReturnPressure);
-        Vertex_HasReturnPressure_Inverse = getResourceOrNull(graph, URIs.Vertex_HasReturnPressure_Inverse);
-        Vertex_HasReturnTemperature = getResourceOrNull(graph, URIs.Vertex_HasReturnTemperature);
-        Vertex_HasReturnTemperature_Inverse = getResourceOrNull(graph, URIs.Vertex_HasReturnTemperature_Inverse);
-        Vertex_HasSupplyPressure = getResourceOrNull(graph, URIs.Vertex_HasSupplyPressure);
-        Vertex_HasSupplyPressure_Inverse = getResourceOrNull(graph, URIs.Vertex_HasSupplyPressure_Inverse);
-        Vertex_HasSupplyTemperature = getResourceOrNull(graph, URIs.Vertex_HasSupplyTemperature);
-        Vertex_HasSupplyTemperature_Inverse = getResourceOrNull(graph, URIs.Vertex_HasSupplyTemperature_Inverse);
-        Vertex_HasValvePosition = getResourceOrNull(graph, URIs.Vertex_HasValvePosition);
-        Vertex_HasValvePosition_Inverse = getResourceOrNull(graph, URIs.Vertex_HasValvePosition_Inverse);
-        Vertex_HasVelocity = getResourceOrNull(graph, URIs.Vertex_HasVelocity);
-        Vertex_HasVelocity_Inverse = getResourceOrNull(graph, URIs.Vertex_HasVelocity_Inverse);
-        Vertex_HasVolFlow = getResourceOrNull(graph, URIs.Vertex_HasVolFlow);
-        Vertex_HasVolFlow_Inverse = getResourceOrNull(graph, URIs.Vertex_HasVolFlow_Inverse);
-        Vertex_ScaleProperty = getResourceOrNull(graph, URIs.Vertex_ScaleProperty);
-        Vertex_ScaleProperty_SupplyPressure = getResourceOrNull(graph, URIs.Vertex_ScaleProperty_SupplyPressure);
-        Vertex_ScaleProperty_scale = getResourceOrNull(graph, URIs.Vertex_ScaleProperty_scale);
-        Vertex_ScaleProperty_scale_Inverse = getResourceOrNull(graph, URIs.Vertex_ScaleProperty_scale_Inverse);
-        Vertex_ScaleProperty_value = getResourceOrNull(graph, URIs.Vertex_ScaleProperty_value);
-        Vertex_ScaleProperty_value_Inverse = getResourceOrNull(graph, URIs.Vertex_ScaleProperty_value_Inverse);
-    }
-    
-    public static DistrictNetworkResource getInstance(ReadGraph graph) {
-        Session session = graph.getSession();
-        DistrictNetworkResource ret = session.peekService(DistrictNetworkResource.class);
-        if(ret == null) {
-            QueryControl qc = graph.getService(QueryControl.class);
-            ret = new DistrictNetworkResource(qc.getIndependentGraph(graph));
-            session.registerService(DistrictNetworkResource.class, ret);
-        }
-        return ret;
-    }
-    
-    public static DistrictNetworkResource getInstance(RequestProcessor session) throws DatabaseException {
-        DistrictNetworkResource ret = session.peekService(DistrictNetworkResource.class);
-        if(ret == null) {
-            ret = session.syncRequest(new Read<DistrictNetworkResource>() {
-                public DistrictNetworkResource perform(ReadGraph graph) throws DatabaseException {
-                    QueryControl qc = graph.getService(QueryControl.class);
-                    return new DistrictNetworkResource(qc.getIndependentGraph(graph));
-                }
-            });
-            session.registerService(DistrictNetworkResource.class, ret);
-        }
-        return ret;
-    }
-    
-}
-
diff --git a/org.simantics.district.network.ui.ontology/.gitignore b/org.simantics.district.network.ui.ontology/.gitignore
new file mode 100644 (file)
index 0000000..eb92844
--- /dev/null
@@ -0,0 +1 @@
+/graph.tg
diff --git a/org.simantics.district.network.ui.ontology/src/org/simantics/district/network/ui/ontology/.keep b/org.simantics.district.network.ui.ontology/src/org/simantics/district/network/ui/ontology/.keep
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/org.simantics.district.network.ui.ontology/src/org/simantics/district/network/ui/ontology/DistrictNetworkUIResource.java b/org.simantics.district.network.ui.ontology/src/org/simantics/district/network/ui/ontology/DistrictNetworkUIResource.java
deleted file mode 100644 (file)
index d6ae2f6..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-package org.simantics.district.network.ui.ontology;
-
-import org.simantics.db.RequestProcessor;
-import org.simantics.db.Resource;
-import org.simantics.db.ReadGraph;
-import org.simantics.db.request.Read;
-import org.simantics.db.Session;
-import org.simantics.db.exception.DatabaseException;
-import org.simantics.db.service.QueryControl;
-
-public class DistrictNetworkUIResource {
-    
-    public final Resource NetworkProperties;
-    public final Resource SelectionTab;
-    public final Resource SelectionTabContribution;
-        
-    public static class URIs {
-        public static final String NetworkProperties = "http://www.simantics.org/DistrictNetworkUI-1.0/NetworkProperties";
-        public static final String SelectionTab = "http://www.simantics.org/DistrictNetworkUI-1.0/SelectionTab";
-        public static final String SelectionTabContribution = "http://www.simantics.org/DistrictNetworkUI-1.0/SelectionTabContribution";
-    }
-    
-    public static Resource getResourceOrNull(ReadGraph graph, String uri) {
-        try {
-            return graph.getResource(uri);
-        } catch(DatabaseException e) {
-            System.err.println(e.getMessage());
-            return null;
-        }
-    }
-    
-    public DistrictNetworkUIResource(ReadGraph graph) {
-        NetworkProperties = getResourceOrNull(graph, URIs.NetworkProperties);
-        SelectionTab = getResourceOrNull(graph, URIs.SelectionTab);
-        SelectionTabContribution = getResourceOrNull(graph, URIs.SelectionTabContribution);
-    }
-    
-    public static DistrictNetworkUIResource getInstance(ReadGraph graph) {
-        Session session = graph.getSession();
-        DistrictNetworkUIResource ret = session.peekService(DistrictNetworkUIResource.class);
-        if(ret == null) {
-            QueryControl qc = graph.getService(QueryControl.class);
-            ret = new DistrictNetworkUIResource(qc.getIndependentGraph(graph));
-            session.registerService(DistrictNetworkUIResource.class, ret);
-        }
-        return ret;
-    }
-    
-    public static DistrictNetworkUIResource getInstance(RequestProcessor session) throws DatabaseException {
-        DistrictNetworkUIResource ret = session.peekService(DistrictNetworkUIResource.class);
-        if(ret == null) {
-            ret = session.syncRequest(new Read<DistrictNetworkUIResource>() {
-                public DistrictNetworkUIResource perform(ReadGraph graph) throws DatabaseException {
-                    QueryControl qc = graph.getService(QueryControl.class);
-                    return new DistrictNetworkUIResource(qc.getIndependentGraph(graph));
-                }
-            });
-            session.registerService(DistrictNetworkUIResource.class, ret);
-        }
-        return ret;
-    }
-    
-}
-