1 L0 = <http://www.simantics.org/Layer0-1.1>
2 DIA = <http://www.simantics.org/Diagram-2.2>
3 STR = <http://www.simantics.org/Structural-1.2>
4 MOD = <http://www.simantics.org/Modeling-1.2>
5 VP = <http://www.simantics.org/Viewpoint-1.2>
6 IMAGE = <http://www.simantics.org/Image2-1.2>
7 SEL = <http://www.simantics.org/SelectionView-1.2>
8 SEL_UI = <http://www.simantics.org/SelectionViewUI-1.1>
10 DN = <http://www.simantics.org/DistrictNetwork-1.0> : L0.Ontology
12 L0.Ontology.global true
13 L0.HasResourceClass "org.simantics.district.network.ontology.DistrictNetworkResource"
17 DN.Edge <T DIA.Element : L0.Type
18 @L0.assert DN.Edge.HasDiameter 0.1
19 @L0.assert DN.Edge.HasOuterDiameter 0.11
21 DN.Vertex <T DIA.Element : L0.Type
22 @L0.assert DN.Vertex.HasElevation 0.0
24 DN.EdgeDefaultMapping <R L0.HasProperty : DN.EdgeMappingParameterType
25 L0.HasLabel "Default Edge mapping"
27 DN.VertexDefaultMapping <R L0.HasProperty : DN.VertexMappingParameterType
28 L0.HasLabel "Default Vertex mapping"
30 DN.Functions : L0.Library
32 DN.VertexMappingParameterType <T SEL.GenericParameterType
33 @L0.assert SEL.HasDisplayValue
35 SEL.HasEnumerationValues DN.Functions.enumerationValues : L0.Function
36 SEL.HasCustomModifier DN.Functions.defaultVertexMappingModifier : L0.Function
38 DN.EdgeMappingParameterType <T SEL.GenericParameterType
39 @L0.assert SEL.HasDisplayValue
41 SEL.HasEnumerationValues DN.Functions.enumerationValues
42 SEL.HasCustomModifier DN.Functions.defaultEdgeMappingModifier : L0.Function
44 DN.MappingParameterType <T SEL.GenericParameterType
45 @L0.assert SEL.HasDisplayValue
47 SEL.HasEnumerationValues DN.Functions.enumerationValues
48 SEL.HasCustomModifier DN.Functions.mappingModifier : L0.Function
50 DN.HasMapping <R L0.HasProperty : DN.MappingParameterType
53 DN.Edge.HasDiameter <R L0.HasProperty : SEL.GenericParameterType
54 L0.HasLabel "Diameter"
58 DN.Vertex.HasElevation <R L0.HasProperty : SEL.GenericParameterType
59 L0.HasLabel "Elevation"
63 DN.Edge.HasOuterDiameter <R L0.HasProperty : SEL.GenericParameterType
64 L0.HasLabel "Outer Diameter"
72 DN.HasInLayerTag <R L0.HasProperty
75 DN.Connection <T DIA.Connection
77 DN.Diagram.MappedDiagram <R L0.IsWeaklyRelatedTo
78 DN.MappedComponent <R L0.IsWeaklyRelatedTo
80 DN.Diagram <T DIA.Diagram
82 DN.AddLayerToDNDiagramTemplate <T L0.Template
84 DN.EPSG_4326 : DN.SpatialRefSystem
85 L0.HasLabel "EPSG:4326"
87 DN.HasSRTEXT _ : L0.String
88 @L0.loadString "epsg/EPSG_4326"
90 DN.SpatialRefSystem <T L0.Entity
92 DN.HasSpatialRefSystem <R L0.HasProperty
93 L0.HasRange DN.SpatialRefSystem
95 DN.HasSRID <R L0.HasProperty
96 L0.HasRange L0.Integer
98 DN.HasSRTEXT <R L0.HasProperty
101 DN.Functions.compositeInstantiator : L0.ExternalValue
103 DN.Composite <T STR.Composite
104 STR.Composite.instantiationFunction DN.Functions.compositeInstantiator
105 @L0.assert MOD.HasModelingTemplate
106 _ : MOD.DiagramTemplate
107 MOD.HasDiagramType DN.Diagram
108 @L0.assert MOD.HasModelingTemplate
109 _ : DN.AddLayerToDNDiagramTemplate
111 DN.HasStartVertex <R L0.DependsOn
113 L0.HasRange DN.Vertex
114 L0.InverseOf DN.HasStartVertex_Inverse <R L0.IsRelatedTo
116 DN.HasEndVertex <R L0.DependsOn
118 L0.HasRange DN.Vertex
119 L0.InverseOf DN.HasEndVertex_Inverse <R L0.IsRelatedTo
121 MBC = MOD.ModelingBrowseContext
123 DNAC.newDiagramContribution : L0.Template
124 @template %actionContext %label %image %action
126 VP.BrowseContext.HasActionContribution _ : VP.ActionContribution
128 VP.ActionContribution.HasImage %image
129 VP.ActionContribution.HasCategory VP.NewActionCategory
130 VP.ActionContribution.HasNodeType MBC.Configuration
131 VP.ActionContribution.HasAction %action
133 DNAC = DN.ActionContext : VP.BrowseContext
134 VP.BrowseContext.IsIncludedIn MOD.ModelingActionContext
135 @DNAC.newDiagramContribution "Network Diagram" IMAGES.MapImage ACTIONS.NewDNDiagram
137 DNBC = DN.BrowseContext : VP.BrowseContext
138 VP.BrowseContext.IsIncludedIn MOD.ModelingBrowseContext
139 VP.BrowseContext.Includes SEL_UI.StandardPropertiesBase.BrowseContext
141 @VP.customModifierRule DN.Edge VP.ResourceLabelModifierRule
142 @VP.constantImageRule DN.Composite IMAGES.MapImage
145 ACTIONS = DN.Actions : L0.Library
147 ACTIONS.NewDNDiagram : MOD.NewComposite
148 MOD.NewComposite.HasCompositeType DN.Composite
149 MOD.NewComposite.HasDefaultName "NewDNComposite"
151 IMAGES = DN.Images : L0.Library
153 IMAGES.MapImage : IMAGE.PngImage
154 @L0.loadBytes "images/map.png"
157 DN.Mapping <T L0.Library
159 DN.Functions.convertToValue : L0.ExternalValue
161 DN.Mapping.Base <T L0.Value
162 @L0.assert L0.ConvertsToValueWith DN.Functions.convertToValue
164 DN.Mapping.Terminal <T L0.Entity
166 DN.Mapping.TerminalPair <T L0.Entity
167 >-- DN.Mapping.InputTerminal --> DN.Mapping.Terminal <R L0.HasProperty
168 >-- DN.Mapping.OutputTerminal --> DN.Mapping.Terminal <R L0.HasProperty
170 DN.Mapping.VertexMapping <T DN.Mapping.Base
171 >-- DN.Mapping.ComponentType --> STR.ComponentType <R L0.DependsOn
172 >-- DN.Mapping.VertexMapping.ElevationAttribute --> L0.String <R L0.HasProperty
173 >-- DN.Mapping.Terminals --> DN.Mapping.TerminalPair <R L0.HasProperty
175 DN.Mapping.EdgeMapping <T DN.Mapping.Base
176 >-- DN.Mapping.ComponentType
177 >-- DN.Mapping.EdgeMapping.LengthAttribute --> L0.String <R L0.HasProperty
178 >-- DN.Mapping.EdgeMapping.DiameterAttribute --> L0.String <R L0.HasProperty
179 >-- DN.Mapping.Terminals