--- /dev/null
+L0 = <http://www.simantics.org/Layer0-1.1>
+G2D = <http://www.simantics.org/G2D-1.1>
+DIA = <http://www.simantics.org/Diagram-2.2>
+
+//// Diagram-specific settings
+
+DIA.HasPageDescription <R L0.HasProperty : L0.FunctionalRelation
+ --> DIA.PageDescription
+
+DIA.PageDescription <T L0.Value
+ @L0.singleProperty DIA.PageDescription.Size
+ @L0.singleProperty DIA.PageDescription.Orientation
+ @L0.singleProperty DIA.PageDescription.Margins
+ >-- DIA.PageDescription.Size --> G2D.Point2D <R L0.HasProperty : L0.FunctionalRelation
+ L0.HasLabel "Page Size"
+ >-- DIA.PageDescription.Orientation --> DIA.Orientation <R L0.IsRelatedTo : L0.FunctionalRelation
+ L0.HasLabel "Page Orientation"
+ >-- DIA.PageDescription.Margins --> DIA.Margins <R L0.HasProperty : L0.FunctionalRelation
+ L0.HasLabel "Margins"
+
+DIA.Orientation <T L0.Value
+ @L0.tag L0.Enumeration
+DIA.Orientation.Portrait : DIA.Orientation
+DIA.Orientation.Landscape : DIA.Orientation
+
+DIA.Margins <T L0.Value
+ @L0.singleProperty DIA.PageDescription.Margins.Top
+ @L0.singleProperty DIA.PageDescription.Margins.Bottom
+ @L0.singleProperty DIA.PageDescription.Margins.Left
+ @L0.singleProperty DIA.PageDescription.Margins.Right
+ >-- DIA.PageDescription.Margins.Top --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
+ L0.HasLabel "Top Margin"
+ >-- DIA.PageDescription.Margins.Bottom --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
+ L0.HasLabel "Bottom Margin"
+ >-- DIA.PageDescription.Margins.Left --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
+ L0.HasLabel "Left Margin"
+ >-- DIA.PageDescription.Margins.Right --> L0.Double <R L0.HasProperty : L0.FunctionalRelation
+ L0.HasLabel "Right Margin"
+
+DIA.DisplayPageSize
+ @L0.defTag
+
+DIA.DisplayMargins
+ @L0.defTag
+
+DIA.DisplayGrid
+ @L0.defTag
+
+DIA.DisplayRuler
+ @L0.defTag
+
+DIA.HasGridSize <R L0.HasProperty : L0.FunctionalRelation
+ L0.HasLabel "Grid Size"
+ --> L0.Double
+
+DIA.NavigationEnabled <R L0.HasProperty
+ L0.HasDescription "Boolean value indicating if navigation is enabled or not. Default is true."
+ --> L0.Boolean
+
+//// Diagram editor state properties
+
+DIA.HasEditorState <R L0.HasProperty : L0.FunctionalRelation
+ <-- DIA.Diagram
+ --> DIA.EditorState <T L0.Value
+ >-- DIA.EditorState.ViewTransform --> G2D.Transform <R L0.HasProperty : L0.FunctionalRelation
+ L0.HasDescription "For storing the current view transformation of a diagram editor."
+ >-- DIA.EditorState.Selection --> DIA.Element <R L0.IsRelatedTo
+ L0.HasDescription "For storing the current selection of elements in a diagram editor."
+ >-- DIA.EditorState.ToolMode --> L0.String <R L0.IsRelatedTo : L0.FunctionalRelation
+ L0.HasDescription "For storing the current tool mode of the diagram editor."