]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph
Ontology for tech type table persistence
[simantics/district.git] / org.simantics.district.network.ontology / graph / DistrictNetworkTechType.pgraph
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