]> gerrit.simantics Code Review - simantics/district.git/blobdiff - org.simantics.district.network.ontology/graph/DistrictNetwork.pgraph
Added DN.Element as base type for DH diagram elements
[simantics/district.git] / org.simantics.district.network.ontology / graph / DistrictNetwork.pgraph
index 5c165085b208adb44946bab9d98043eb83db29b3..435bd55d9813e30a19bb8ab66e0ae8c26342d26a 100644 (file)
@@ -15,11 +15,13 @@ DN = <http://www.simantics.org/DistrictNetwork-1.0> : L0.Ontology
 
 DN.Layer <T DIA.Layer
 
-DN.Edge <T DIA.Element : L0.Type
+DN.Element <T DIA.Element : L0.Type
+
+DN.Edge <T DN.Element
     @L0.assert DN.Edge.HasDiameter 0.1
     @L0.assert DN.Edge.HasOuterDiameter 0.11
 
-DN.Vertex <T DIA.Element : L0.Type
+DN.Vertex <T DN.Element
     @L0.assert DN.Vertex.HasElevation 0.0
 
 DN.EdgeDefaultMapping <R L0.HasProperty : DN.EdgeMappingParameterType
@@ -56,15 +58,15 @@ DN.HasId <R L0.HasProperty : SEL.GenericParameterType
     L0.HasRange L0.String
     L0.readOnly false
 
-DN.HasSolverRVI <R L0.HasProperty
-    L0.HasLabel "Solver RVI"
-    L0.HasRange L0.String
-    L0.readOnly true
-
 DN.Vertex.HasElevation <R L0.HasProperty : SEL.GenericParameterType
     L0.HasLabel "Elevation"
     L0.HasRange L0.Double
     L0.readOnly false
+    
+DN.Vertex.HasAddress <R L0.HasProperty : SEL.GenericParameterType
+    L0.HasLabel "Address"
+    L0.HasRange L0.String
+    L0.readOnly false
 
 DN.Vertex.HasSupplyTemperature <R L0.HasProperty : SEL.GenericParameterType
     L0.HasLabel "Supply Temperature"
@@ -205,8 +207,11 @@ DN.HasInLayerTag <R L0.HasProperty
 
 DN.Connection <T DIA.Connection
 
+// For associating typical diagram source and instance structures with each other
 DN.Diagram.MappedDiagram <R L0.IsWeaklyRelatedTo
+    L0.InverseOf DN.Diagram.MappedFromDiagram <R L0.IsWeaklyRelatedTo
 DN.MappedComponent <R L0.IsWeaklyRelatedTo
+    L0.InverseOf DN.MappedFromElement <R L0.IsWeaklyRelatedTo
 
 DN.Diagram <T DIA.Diagram
 
@@ -320,6 +325,7 @@ DN.Mapping.VertexMapping <T DN.Mapping.Base
     >-- DN.Mapping.VertexMapping.MaximumHeadMAttribute --> L0.String <R L0.HasProperty
     // Consumers
     >-- DN.Mapping.VertexMapping.HeatLoadDsAttribute --> L0.String <R L0.HasProperty
+    >-- DN.Mapping.VertexMapping.AddressAttribute --> L0.String <R L0.HasProperty
     >-- DN.Mapping.VertexMapping.MassFlowAttribute --> L0.String <R L0.HasProperty
     >-- DN.Mapping.VertexMapping.VolFlowAttribute --> L0.String <R L0.HasProperty
     >-- DN.Mapping.VertexMapping.VelocityAttribute --> L0.String <R L0.HasProperty
@@ -366,7 +372,7 @@ DN.DistrictProfile : DIA.Profile
 DN.Groups : L0.Library
 
 DN.Groups.ElementGroup : DIA.TypeGroup
-  DIA.TypeGroup.HasType DIA.Element
+  DIA.TypeGroup.HasType DN.Element
 
 DN.ComponentNameStyle : DIA.ResourceSCLTextGridStyle
     @MOD.scl DIA.ResourceSCLTextGridStyle.texts