]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.selectionview.ontology/graph/Selectionview.pgraph
58eba84710132a5ab488f22f38be866ada848eef
[simantics/platform.git] / bundles / org.simantics.selectionview.ontology / graph / Selectionview.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 L0X = <http://www.simantics.org/Layer0X-1.1>
3
4 SEL = <http://www.simantics.org/SelectionView-1.2> : L0.Ontology
5     @L0.new
6     L0.HasResourceClass "org.simantics.selectionview.SelectionViewResources"
7
8 SEL.Functions : L0.Library
9
10 SEL.TabContribution <T L0.Entity
11 SEL.SelectionTransformation <T L0.Function
12
13 SEL.Functions.getEnumerationValues : L0.Function
14 SEL.Functions.singleVariableTransformation : SEL.SelectionTransformation
15 SEL.Functions.singleResourceTransformation : SEL.SelectionTransformation
16 SEL.Functions.singleResourceToVariableTransformation : SEL.SelectionTransformation
17 SEL.Functions.standardSelectionInputTransformation : SEL.SelectionTransformation
18
19 SEL.AbstractVariableTabContribution <T SEL.TabContribution
20   >-- SEL.AbstractVariableTabContribution.testFunction ==> "Variable -> <ReadGraph> Boolean" <R L0.HasProperty
21   >-- SEL.AbstractVariableTabContribution.HasPriority ==> "Integer" <R L0.HasProperty : SEL.GenericParameterType
22   // This is deprecated
23   >-- SEL.AbstractVariableTabContribution.HasTest --> L0.Value <R L0.DependsOn
24
25 SEL.AbstractResourceTabContribution <T SEL.TabContribution
26   >-- SEL.AbstractResourceTabContribution.HasTest --> L0.Value <R L0.DependsOn
27   >-- SEL.AbstractResourceTabContribution.HasPriority ==> "Integer" <R L0.DependsOn
28
29 SEL.AbstractTypedVariableTabContribution <T SEL.AbstractVariableTabContribution
30   >-- SEL.AbstractTypedVariableTabContribution.HasType --> L0.Type <R L0.DependsOn
31
32 SEL.AbstractTypedResourceTabContribution <T SEL.AbstractResourceTabContribution
33   >-- SEL.AbstractTypedResourceTabContribution.HasType --> L0.Type <R L0.DependsOn
34
35 SEL.SCLTabContribution <T SEL.TabContribution
36   >-- SEL.SCLTabContribution.instantiate ==> "() -> <Proc> TabContribution" <R L0.HasProperty
37
38 SEL.VariableTabContribution <T SEL.TabContribution
39   >-- SEL.VariableTabContribution.HasTest <R L0.DependsOn
40   >-- SEL.VariableTabContribution.transformation ==> "Variable -> <ReadGraph> Variable" <R L0.HasProperty
41   >-- SEL.VariableTabContribution.HasView <R L0.DependsOn
42   >-- SEL.VariableTabContribution.HasPriority <R L0.DependsOn
43
44 SEL.TypedVariableTabContribution <T SEL.VariableTabContribution
45   >-- SEL.TypedVariableTabContribution.HasType <R L0.DependsOn
46
47 SEL.HasDisplayColumn <R L0.HasProperty : L0.FunctionalRelation
48
49 SEL.HasFormatter <R L0.HasProperty : L0X.ResourcePropertyRelation
50
51 SEL.HasDisplayProperty <R L0.HasProperty : L0.FunctionalRelation
52   L0.RequiresValueType "String"
53   SEL.HasDisplayColumn "HasDisplayProperty"
54   
55 SEL.DisplayProperty <T L0.Value
56   @L0.assert SEL.HasDisplayColumn "HasDisplayProperty"
57   @L0.assert L0.HasValueType "String"  
58   @L0.assert L0.valueAccessor
59     SEL.Functions.displayPropertyValueAccessor : L0.ExternalValue
60           L0.HasValueType "ValueAccessor"  
61
62 SEL.HasDisplayValue <R L0.HasProperty : L0.FunctionalRelation
63   L0.RequiresValueType "String"
64   SEL.HasDisplayColumn "HasDisplayValue"
65   
66 SEL.IsShownUnder <R L0.IsRelatedTo
67   L0.InverseOf SEL.UnderOf <R L0.IsRelatedTo
68
69 SEL.DisplayValue <T L0.Value
70   @L0.assert SEL.HasDisplayColumn "HasDisplayValue"
71   @L0.assert L0.HasValueType "String"
72   @L0.assert L0.valueAccessor
73     SEL.Functions.displayValueValueAccessor : L0.ExternalValue
74           L0.HasValueType "ValueAccessor"  
75
76 SEL.HasDisplayUnit <R L0.HasProperty : L0.FunctionalRelation
77   L0.RequiresValueType "String"
78   SEL.HasDisplayColumn "HasDisplayUnit"
79   
80 SEL.DisplayUnit <T L0.Value
81   @L0.assert SEL.HasDisplayColumn "HasDisplayUnit"
82   @L0.assert L0.HasValueType "String"
83   @L0.assert L0.valueAccessor
84     SEL.Functions.displayUnitValueAccessor : L0.ExternalValue
85           L0.HasValueType "ValueAccessor"  
86
87 SEL.StandardPropertyInfo <T L0.Literal
88     @L0.assert L0.HasDataType ${ categoryName : String, categorySortingName : String, isHidden : Boolean }
89     @L0.assert SEL.StandardPropertyInfo.CategorySortingName ""
90     @L0.assert SEL.StandardPropertyInfo.IsHidden false
91
92 SEL.HasStandardPropertyInfo <R L0.HasProperty : L0.FunctionalRelation
93 SEL.StandardPropertyInfo.CategoryName <R L0.HasProperty : L0.FunctionalRelation
94 SEL.StandardPropertyInfo.CategorySortingName <R L0.HasProperty : L0.FunctionalRelation
95 SEL.StandardPropertyInfo.IsHidden <R L0.HasProperty : L0.FunctionalRelation
96
97 SEL.HasEnumerationValues <R L0.HasProperty : L0.FunctionalRelation
98 SEL.HasCustomModifier <R L0.HasProperty : L0.FunctionalRelation
99 SEL.HasInputModifier <R L0.HasProperty : L0.FunctionalRelation
100
101 SEL.SortingName ==> "String" <R L0.HasProperty : L0.FunctionalRelation
102
103 SEL.canBeLifted ==> "Boolean" <R L0.HasProperty : L0.FunctionalRelation
104
105 SEL.hidden ==> "Boolean" <R L0.HasProperty : L0.FunctionalRelation
106
107 SEL.GenericParameterType <T L0.FunctionalRelation
108   @L0.assert SEL.HasDisplayProperty
109     _ : SEL.DisplayProperty
110       L0.readOnly true
111   @L0.assert SEL.HasDisplayValue
112     _ : SEL.DisplayValue
113       SEL.HasEnumerationValues _ : L0.Value
114         L0.ConvertsToValueWith SEL.Functions.getEnumerationValues
115   @L0.assert SEL.HasDisplayUnit
116     _ : SEL.DisplayUnit
117       L0.readOnly true
118   @L0.assert SEL.HasStandardPropertyInfo
119     SEL.CategoryHidden = ( "", "", true )
120   @L0.assert SEL.HasInputModifier 
121     SEL.Functions.inputModifier : L0.ExternalValue
122
123 SEL.GenericPropertyChild <T L0.Entity
124   @L0.assert SEL.HasDisplayProperty
125       _ : L0.Value
126           L0.readOnly true
127           L0.ConvertsToValueWith SEL.Functions.getPropertyChildName : L0.ExternalValue
128   
129
130 SEL.CategoryHidden : SEL.StandardPropertyInfo
131   SEL.StandardPropertyInfo.CategoryName ""
132   SEL.StandardPropertyInfo.CategorySortingName ""
133   SEL.StandardPropertyInfo.IsHidden true
134
135 SEL.getSpecialCategory ==> "Resource -> <ReadGraph> Resource" <R L0.HasProperty : L0.FunctionalRelation
136
137 SEL.ColorParameterType <T SEL.GenericParameterType
138   @L0.assert SEL.HasDisplayValue
139     _ : SEL.DisplayValue
140       SEL.HasEnumerationValues SEL.Functions.getEnumerationValues
141       SEL.HasCustomModifier SEL.Functions.colorModifier : L0.Function
142
143 SEL.FontParameterType <T SEL.GenericParameterType
144   @L0.assert SEL.HasDisplayValue
145     _ : SEL.DisplayValue
146       SEL.HasEnumerationValues SEL.Functions.getEnumerationValues
147       SEL.HasCustomModifier SEL.Functions.fontModifier : L0.Function
148
149 SEL.GenericCategory = ( "Properties", "", false ) : SEL.StandardPropertyInfo
150   SEL.StandardPropertyInfo.CategoryName "Properties"
151   SEL.StandardPropertyInfo.CategorySortingName "0"
152
153 L0.HasName
154   SEL.canBeLifted false
155