MOD = <http://www.simantics.org/Modeling-1.2>
VP = <http://www.simantics.org/Viewpoint-1.2>
IMAGE = <http://www.simantics.org/Image2-1.2>
+SEL = <http://www.simantics.org/SelectionView-1.2>
MBC = MOD.ModelingBrowseContext
DN = <http://www.simantics.org/DistrictNetwork-1.0> : L0.Ontology
@L0.new
+ L0.Ontology.global true
L0.HasResourceClass "org.simantics.district.network.ontology.DistrictNetworkResource"
+DN.Layer <T DIA.Layer
+
DN.Edge <T DIA.Element : L0.Type
+ @L0.assert DN.HasMapping ""
+ @L0.assert DN.Bidirectional false
+ @L0.assert DN.Edge.HasDiameter 1
DN.Vertex <T DIA.Element : L0.Type
+ @L0.assert DN.HasMapping ""
+ @L0.assert DN.Bidirectional false
+
+DN.Bidirectional <R L0.HasProperty : SEL.GenericParameterType
+ L0.HasLabel "Is network bidirectional"
+ L0.HasRange L0.Boolean
+ L0.readOnly false
+
+DN.EdgeDefaultMapping <R L0.HasProperty : SEL.GenericParameterType
+ L0.HasLabel "Default Edge mapping"
+ L0.HasRange L0.String
+ L0.readOnly false
+
+DN.VertexDefaultMapping <R L0.HasProperty : SEL.GenericParameterType
+ L0.HasLabel "Default Vertex mapping"
+ L0.HasRange L0.String
+ L0.readOnly false
+
+DN.HasMapping <R L0.HasProperty : SEL.GenericParameterType
+ L0.HasLabel "Mapping"
+ L0.HasRange DN.Mapping.EdgeMapping
+ L0.readOnly false
+
+DN.Edge.HasDiameter <R L0.HasProperty : SEL.GenericParameterType
+ L0.HasLabel "Diameter"
+ L0.HasRange L0.Double
+ L0.readOnly false
+
+DN.InLayer
+ @L0.defTag
+ @L0.tag L0.Abstract
+
+DN.HasInLayerTag <R L0.HasProperty
+ L0.HasRange L0.Tag
DN.Connection <T DIA.Connection
DN.Diagram <T DIA.Diagram
+ @L0.assert DN.VertexDefaultMapping ""
+ @L0.assert DN.EdgeDefaultMapping ""
+
+DN.AddLayerToDNDiagramTemplate <T L0.Template
+
+DN.EPSG_4326 <T DN.SpatialRefSystem
+ DN.HasSRID 4326
+ DN.HasSRTEXT _ : L0.String
+ @L0.loadString "epsg/EPSG_4326"
+DN.SpatialRefSystem <T L0.Entity
+
+DN.HasSpatialRefSystem <R L0.HasProperty
+ L0.HasRange DN.SpatialRefSystem
+
+DN.HasSRID <R L0.HasProperty
+ L0.HasRange L0.Integer
+
+DN.HasSRTEXT <R L0.HasProperty
+ L0.HasRange L0.String
DN.Composite <T STR.Composite
@L0.assert MOD.HasModelingTemplate
_ : MOD.DiagramTemplate
MOD.HasDiagramType DN.Diagram
+ @L0.assert MOD.HasModelingTemplate
+ _ : DN.AddLayerToDNDiagramTemplate
-DN.HasStartVertex <R L0.HasProperty
+DN.HasStartVertex <R L0.DependsOn
+ L0.HasDomain DN.Edge
L0.HasRange DN.Vertex
+ L0.InverseOf DN.HasStartVertex_Inverse <R L0.IsRelatedTo
-DN.HasEndVertex <R L0.HasProperty
+DN.HasEndVertex <R L0.DependsOn
+ L0.HasDomain DN.Edge
L0.HasRange DN.Vertex
+ L0.InverseOf DN.HasEndVertex_Inverse <R L0.IsRelatedTo
DNAC.newDiagramContribution : L0.Template
@template %actionContext %label %image %action
IMAGES.ConfigurationFolder : IMAGE.PngImage
@L0.loadBytes "images/Configuration.png"
+
+
+// Component MAPPING
+DN.Mapping <T L0.Library
+
+DN.Mapping.Terminal <T L0.Entity
+
+DN.Mapping.TerminalPair <T L0.Entity
+ >-- DN.Mapping.InputTerminal --> DN.Mapping.Terminal <R L0.HasProperty
+ >-- DN.Mapping.OutputTerminal --> DN.Mapping.Terminal <R L0.HasProperty
+
+DN.Mapping.VertexMapping <T L0.Entity
+ >-- DN.Mapping.ComponentType --> STR.ComponentType <R L0.HasProperty
+ >-- DN.Mapping.VertexMapping.ElevationAttribute --> L0.String <R L0.HasProperty
+ >-- DN.Mapping.Terminals --> DN.Mapping.TerminalPair <R L0.HasProperty
+
+DN.Mapping.EdgeMapping <T L0.Entity
+ >-- DN.Mapping.ComponentType
+ >-- DN.Mapping.EdgeMapping.Bidirectional --> L0.Boolean <R L0.HasProperty
+ >-- DN.Mapping.EdgeMapping.LengthAttribute --> L0.String <R L0.HasProperty
+ >-- DN.Mapping.EdgeMapping.DiameterAttribute --> L0.String <R L0.HasProperty
+ >-- DN.Mapping.Terminals