From: Reino Ruusu Date: Mon, 31 Aug 2020 12:58:25 +0000 (+0300) Subject: Ontology for tech type table persistence X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=7b3111c1cbb19842294bffc6a34289a2fecabdf9;p=simantics%2Fdistrict.git Ontology for tech type table persistence gitlab #93 Change-Id: I37e9db42c3e7b4a95ba12bed87107cddccd66bc1 --- diff --git a/org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph b/org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph new file mode 100644 index 00000000..adebe013 --- /dev/null +++ b/org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph @@ -0,0 +1,15 @@ +L0 = +STR = + +DN = + +TT = DN.TechType : L0.Library + +table = TT.TechTypeTable -- table.HasData L0.String + + // Link to corresponding component type + >-- table.HasComponentType STR.ComponentType 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 index 271f043a..e6a31a53 100644 --- 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 @@ -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);