]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Ontology for tech type table persistence 32/4432/1
authorReino Ruusu <reino.ruusu@semantum.fi>
Mon, 31 Aug 2020 12:58:25 +0000 (15:58 +0300)
committerReino Ruusu <reino.ruusu@semantum.fi>
Wed, 9 Sep 2020 12:33:36 +0000 (15:33 +0300)
gitlab #93

Change-Id: I37e9db42c3e7b4a95ba12bed87107cddccd66bc1

org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph [new file with mode: 0644]
org.simantics.district.network.ontology/src/org/simantics/district/network/ontology/DistrictNetworkResource.java

diff --git a/org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph b/org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph
new file mode 100644 (file)
index 0000000..adebe01
--- /dev/null
@@ -0,0 +1,15 @@
+L0 = <http://www.simantics.org/Layer0-1.1>
+STR = <http://www.simantics.org/Structural-1.2>
+
+DN = <http://www.simantics.org/DistrictNetwork-1.0>
+
+TT = DN.TechType : L0.Library
+
+table = TT.TechTypeTable <T L0.Entity
+    // Table data as a CSV string literal
+    >-- table.HasData <R L0.HasProperty : L0.TotalFunction
+        --> L0.String
+    
+    // Link to corresponding component type
+    >-- table.HasComponentType <R L0.IsRelatedTo : L0.FunctionalRelation
+        --> STR.ComponentType
index 271f043ae480c3a1d131b64cf419d2400265a910..e6a31a5357ce75f1e9eccd0be0026c814236e2b5 100644 (file)
@@ -379,6 +379,11 @@ public class DistrictNetworkResource {
     public final Resource SupplyConnectionType;
     public final Resource SupplyInConnectionType;
     public final Resource SupplyOutConnectionType;
+    public final Resource TechType;
+    public final Resource TechType_TechTypeTable;
+    public final Resource TechType_TechTypeTable_HasComponentType;
+    public final Resource TechType_TechTypeTable_HasData;
+    public final Resource TechType_TechTypeTable_HasData_Inverse;
     public final Resource Vertex;
     public final Resource VertexDefaultMapping;
     public final Resource VertexDefaultMapping_Inverse;
@@ -833,6 +838,11 @@ public class DistrictNetworkResource {
         public static final String SupplyConnectionType = "http://www.simantics.org/DistrictNetwork-1.0/SupplyConnectionType";
         public static final String SupplyInConnectionType = "http://www.simantics.org/DistrictNetwork-1.0/SupplyInConnectionType";
         public static final String SupplyOutConnectionType = "http://www.simantics.org/DistrictNetwork-1.0/SupplyOutConnectionType";
+        public static final String TechType = "http://www.simantics.org/DistrictNetwork-1.0/TechType";
+        public static final String TechType_TechTypeTable = "http://www.simantics.org/DistrictNetwork-1.0/TechType/TechTypeTable";
+        public static final String TechType_TechTypeTable_HasComponentType = "http://www.simantics.org/DistrictNetwork-1.0/TechType/TechTypeTable/HasComponentType";
+        public static final String TechType_TechTypeTable_HasData = "http://www.simantics.org/DistrictNetwork-1.0/TechType/TechTypeTable/HasData";
+        public static final String TechType_TechTypeTable_HasData_Inverse = "http://www.simantics.org/DistrictNetwork-1.0/TechType/TechTypeTable/HasData/Inverse";
         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";
@@ -1297,6 +1307,11 @@ public class DistrictNetworkResource {
         SupplyConnectionType = getResourceOrNull(graph, URIs.SupplyConnectionType);
         SupplyInConnectionType = getResourceOrNull(graph, URIs.SupplyInConnectionType);
         SupplyOutConnectionType = getResourceOrNull(graph, URIs.SupplyOutConnectionType);
+        TechType = getResourceOrNull(graph, URIs.TechType);
+        TechType_TechTypeTable = getResourceOrNull(graph, URIs.TechType_TechTypeTable);
+        TechType_TechTypeTable_HasComponentType = getResourceOrNull(graph, URIs.TechType_TechTypeTable_HasComponentType);
+        TechType_TechTypeTable_HasData = getResourceOrNull(graph, URIs.TechType_TechTypeTable_HasData);
+        TechType_TechTypeTable_HasData_Inverse = getResourceOrNull(graph, URIs.TechType_TechTypeTable_HasData_Inverse);
         Vertex = getResourceOrNull(graph, URIs.Vertex);
         VertexDefaultMapping = getResourceOrNull(graph, URIs.VertexDefaultMapping);
         VertexDefaultMapping_Inverse = getResourceOrNull(graph, URIs.VertexDefaultMapping_Inverse);