]> gerrit.simantics Code Review - simantics/platform.git/blob
b977cf5f687a540e13bca983a2f2b7e607b3a85d
[simantics/platform.git] /
1 package org.simantics.viewpoint.ontology;
2
3 import org.simantics.db.RequestProcessor;
4 import org.simantics.db.Resource;
5 import org.simantics.db.ReadGraph;
6 import org.simantics.db.request.Read;
7 import org.simantics.db.Session;
8 import org.simantics.db.exception.DatabaseException;
9 import org.simantics.db.service.QueryControl;
10
11 public class ViewpointResource {
12     
13     public final Resource ActionBrowseContextContribution;
14     public final Resource ActionBrowseContextContribution_HasActionBrowseContext;
15     public final Resource ActionBrowseContextContribution_HasType;
16     public final Resource ActionBrowseContextContribution_allowedUIContexts;
17     public final Resource ActionBrowseContextContribution_allowedUIContexts_Inverse;
18     public final Resource ActionCategory;
19     public final Resource ActionCategory_HasPriority;
20     public final Resource ActionCategory_HasPriority_Inverse;
21     public final Resource ActionCategory_IsSubmenu;
22     public final Resource ActionCategory_IsSubmenu_Inverse;
23     public final Resource ActionContribution;
24     public final Resource ActionContribution_HasAction;
25     public final Resource ActionContribution_HasCategory;
26     public final Resource ActionContribution_HasImage;
27     public final Resource ActionContribution_HasNodeType;
28     public final Resource ActionContribution_IsEnabledIf;
29     public final Resource ActionContribution_IsVisibleIf;
30     public final Resource AlphanumericSorterRule;
31     public final Resource AndTest;
32     public final Resource AndTest_HasTest;
33     public final Resource BrowseContext;
34     public final Resource BrowseContextContribution;
35     public final Resource BrowseContextContribution_HasBrowseContext;
36     public final Resource BrowseContextContribution_HasType;
37     public final Resource BrowseContextContribution_allowedUIContexts;
38     public final Resource BrowseContextContribution_allowedUIContexts_Inverse;
39     public final Resource BrowseContext_HasActionContribution;
40     public final Resource BrowseContext_HasChildContribution;
41     public final Resource BrowseContext_HasDropActionContribution;
42     public final Resource BrowseContext_HasTestContribution;
43     public final Resource BrowseContext_HasVisualsContribution;
44     public final Resource BrowseContext_Includes;
45     public final Resource BrowseContext_IsIncludedIn;
46     public final Resource BrowseContext_SupportsRemovalOf;
47     public final Resource BrowseContext_SupportsRenamingOf;
48     public final Resource CheckedStateRule;
49     public final Resource ChildContribution;
50     public final Resource ChildContribution_HasChildNodeType;
51     public final Resource ChildContribution_HasParentNodeType;
52     public final Resource ChildContribution_HasRule;
53     public final Resource ChildContribution_identifier;
54     public final Resource ChildContribution_identifier_Inverse;
55     public final Resource ChildContribution_priority;
56     public final Resource ChildContribution_priority_Inverse;
57     public final Resource ChildRule;
58     public final Resource CompositeChildRule;
59     public final Resource CompositeChildRule_HasChildRules;
60     public final Resource CompositeChildRule_HasChildRules_Inverse;
61     public final Resource ConstantChildRule;
62     public final Resource ConstantChildRule_HasChild;
63     public final Resource ConstantChildRule_HasChild_Inverse;
64     public final Resource ConstantImageRule;
65     public final Resource ConstantImageRule_HasColumnKey;
66     public final Resource ConstantImageRule_HasColumnKey_Inverse;
67     public final Resource ConstantImageRule_HasImage;
68     public final Resource ConstantImageRule_HasImage_Inverse;
69     public final Resource ConstantLabelDecorationRule;
70     public final Resource ConstantLabelDecorationRule_HasBackgroundColor;
71     public final Resource ConstantLabelDecorationRule_HasBackgroundColor_Inverse;
72     public final Resource ConstantLabelDecorationRule_HasFont;
73     public final Resource ConstantLabelDecorationRule_HasFont_Inverse;
74     public final Resource ConstantLabelDecorationRule_HasForegroundColor;
75     public final Resource ConstantLabelDecorationRule_HasForegroundColor_Inverse;
76     public final Resource ConstantLabelDecorationRule_HasFormat;
77     public final Resource ConstantLabelDecorationRule_HasFormat_Inverse;
78     public final Resource ConstantLabelDecorationRule_HasStyle;
79     public final Resource ConstantLabelDecorationRule_HasStyle_Inverse;
80     public final Resource ConstantLabelRule;
81     public final Resource ConstantLabelRule_HasColumnKey;
82     public final Resource ConstantLabelRule_HasColumnKey_Inverse;
83     public final Resource ConstantLabelRule_HasLabel;
84     public final Resource ConstantLabelRule_HasLabel_Inverse;
85     public final Resource DescriptionTooltipRule;
86     public final Resource DropActionContribution;
87     public final Resource DropActionContribution_HasAction;
88     public final Resource DropActionContribution_HasCondition;
89     public final Resource DropActionContribution_HasNodeType;
90     public final Resource DropActionContribution_HasPriority;
91     public final Resource DropActionContribution_HasPriority_Inverse;
92     public final Resource EditActionCategory;
93     public final Resource EqualContentChildRule;
94     public final Resource EqualContentChildRule_HasCondition;
95     public final Resource FailTest;
96     public final Resource FlatNodeRule;
97     public final Resource HasBundle;
98     public final Resource HasBundle_Inverse;
99     public final Resource HasContentType;
100     public final Resource HasContentType_Inverse;
101     public final Resource HasInstanceOfTest;
102     public final Resource HasInstanceOfTest_IsInstanceOf;
103     public final Resource HasNegatedTest;
104     public final Resource HasNegatedTest_HasTest;
105     public final Resource HasStatementTest;
106     public final Resource HasStatementTest_HasRelation;
107     public final Resource ImageDecorationRule;
108     public final Resource ImageRule;
109     public final Resource ImportActionCategory;
110     public final Resource InstanceOfTest;
111     public final Resource InstanceOfTest_bundleName;
112     public final Resource InstanceOfTest_bundleName_Inverse;
113     public final Resource InstanceOfTest_className;
114     public final Resource InstanceOfTest_className_Inverse;
115     public final Resource LabelDecorationRule;
116     public final Resource LabelRule;
117     public final Resource LinkedListSorterRule;
118     public final Resource ModifierRule;
119     public final Resource NewActionCategory;
120     public final Resource NoModifierRule;
121     public final Resource NodeType;
122     public final Resource OrTest;
123     public final Resource OrTest_HasTest;
124     public final Resource PassThruSorterRule;
125     public final Resource RelationChildRule;
126     public final Resource RelationChildRule_HasRelation;
127     public final Resource RelationChildRule_HasTest;
128     public final Resource RelationStatementRule;
129     public final Resource RelationStatementRule_HasRelation;
130     public final Resource RelationStatementRule_HasTest;
131     public final Resource RemovalTestContribution;
132     public final Resource RenamingTestContribution;
133     public final Resource ResourceLabelLabelRule;
134     public final Resource ResourceLabelModifierRule;
135     public final Resource ResourceNameLabelRule;
136     public final Resource ResourceNameModifierRule;
137     public final Resource ResourceNodeType;
138     public final Resource SorterRule;
139     public final Resource StandardNameLabelRule;
140     public final Resource Test;
141     public final Resource TestContribution;
142     public final Resource TestContribution_HasNodeType;
143     public final Resource TestContribution_HasPriority;
144     public final Resource TestContribution_HasPriority_Inverse;
145     public final Resource TestContribution_HasTest;
146     public final Resource TooltipRule;
147     public final Resource VariableLabelModifierRule;
148     public final Resource VisualsContribution;
149     public final Resource VisualsContribution_HasCondition;
150     public final Resource VisualsContribution_HasNodeType;
151     public final Resource VisualsContribution_HasPriority;
152     public final Resource VisualsContribution_HasPriority_Inverse;
153     public final Resource VisualsContribution_HasRule;
154     public final Resource VisualsRule;
155     public final Resource actionContribution;
156     public final Resource actionContributionWithVisibility;
157     public final Resource constantChildRule;
158     public final Resource constantImageRule;
159     public final Resource constantImageRuleWithColumn;
160     public final Resource constantLabelRule;
161     public final Resource constantLabelRuleWithColumn;
162     public final Resource customCheckedStateRule;
163     public final Resource customChildRule;
164     public final Resource customImageDecorationRule;
165     public final Resource customImageRule;
166     public final Resource customLabelDecorationRule;
167     public final Resource customLabelRule;
168     public final Resource customLabelRuleWithPriority;
169     public final Resource customModifierRule;
170     public final Resource customVisualsRule;
171     public final Resource customVisualsRuleWithPriority;
172     public final Resource customVisualsRuleWithPriorityAndTest;
173     public final Resource defineActionContribution;
174     public final Resource defineRelationChildRule;
175     public final Resource dropActionContribution;
176     public final Resource dropActionContributionWithTest;
177     public final Resource equalContentChildRule;
178     public final Resource namedConstantChildRule;
179     public final Resource namedConstantImageRule;
180     public final Resource namedConstantImageRuleWithColumn;
181     public final Resource namedConstantLabelRule;
182     public final Resource namedConstantLabelRuleWithColumn;
183     public final Resource namedCustomCheckedStateRule;
184     public final Resource namedCustomChildRule;
185     public final Resource namedCustomImageDecorationRule;
186     public final Resource namedCustomImageRule;
187     public final Resource namedCustomLabelDecorationRule;
188     public final Resource namedCustomLabelRule;
189     public final Resource namedCustomLabelRuleWithPriority;
190     public final Resource namedCustomModifierRule;
191     public final Resource namedCustomVisualsRule;
192     public final Resource namedCustomVisualsRuleWithPriority;
193     public final Resource namedCustomVisualsRuleWithPriorityAndTest;
194     public final Resource namedEqualContentChildRule;
195     public final Resource namedRelationChildRule;
196     public final Resource namedRelationChildRuleWithFolder;
197     public final Resource namedRelationStatementRule;
198     public final Resource relationChildRule;
199     public final Resource relationChildRuleWithFolder;
200     public final Resource relationStatementRule;
201     public final Resource removalTestContribution;
202     public final Resource renamingTestContribution;
203         
204     public static class URIs {
205         public static final String ActionBrowseContextContribution = "http://www.simantics.org/Viewpoint-1.2/ActionBrowseContextContribution";
206         public static final String ActionBrowseContextContribution_HasActionBrowseContext = "http://www.simantics.org/Viewpoint-1.2/ActionBrowseContextContribution/HasActionBrowseContext";
207         public static final String ActionBrowseContextContribution_HasType = "http://www.simantics.org/Viewpoint-1.2/ActionBrowseContextContribution/HasType";
208         public static final String ActionBrowseContextContribution_allowedUIContexts = "http://www.simantics.org/Viewpoint-1.2/ActionBrowseContextContribution/allowedUIContexts";
209         public static final String ActionBrowseContextContribution_allowedUIContexts_Inverse = "http://www.simantics.org/Viewpoint-1.2/ActionBrowseContextContribution/allowedUIContexts/Inverse";
210         public static final String ActionCategory = "http://www.simantics.org/Viewpoint-1.2/ActionCategory";
211         public static final String ActionCategory_HasPriority = "http://www.simantics.org/Viewpoint-1.2/ActionCategory/HasPriority";
212         public static final String ActionCategory_HasPriority_Inverse = "http://www.simantics.org/Viewpoint-1.2/ActionCategory/HasPriority/Inverse";
213         public static final String ActionCategory_IsSubmenu = "http://www.simantics.org/Viewpoint-1.2/ActionCategory/IsSubmenu";
214         public static final String ActionCategory_IsSubmenu_Inverse = "http://www.simantics.org/Viewpoint-1.2/ActionCategory/IsSubmenu/Inverse";
215         public static final String ActionContribution = "http://www.simantics.org/Viewpoint-1.2/ActionContribution";
216         public static final String ActionContribution_HasAction = "http://www.simantics.org/Viewpoint-1.2/ActionContribution/HasAction";
217         public static final String ActionContribution_HasCategory = "http://www.simantics.org/Viewpoint-1.2/ActionContribution/HasCategory";
218         public static final String ActionContribution_HasImage = "http://www.simantics.org/Viewpoint-1.2/ActionContribution/HasImage";
219         public static final String ActionContribution_HasNodeType = "http://www.simantics.org/Viewpoint-1.2/ActionContribution/HasNodeType";
220         public static final String ActionContribution_IsEnabledIf = "http://www.simantics.org/Viewpoint-1.2/ActionContribution/IsEnabledIf";
221         public static final String ActionContribution_IsVisibleIf = "http://www.simantics.org/Viewpoint-1.2/ActionContribution/IsVisibleIf";
222         public static final String AlphanumericSorterRule = "http://www.simantics.org/Viewpoint-1.2/AlphanumericSorterRule";
223         public static final String AndTest = "http://www.simantics.org/Viewpoint-1.2/AndTest";
224         public static final String AndTest_HasTest = "http://www.simantics.org/Viewpoint-1.2/AndTest/HasTest";
225         public static final String BrowseContext = "http://www.simantics.org/Viewpoint-1.2/BrowseContext";
226         public static final String BrowseContextContribution = "http://www.simantics.org/Viewpoint-1.2/BrowseContextContribution";
227         public static final String BrowseContextContribution_HasBrowseContext = "http://www.simantics.org/Viewpoint-1.2/BrowseContextContribution/HasBrowseContext";
228         public static final String BrowseContextContribution_HasType = "http://www.simantics.org/Viewpoint-1.2/BrowseContextContribution/HasType";
229         public static final String BrowseContextContribution_allowedUIContexts = "http://www.simantics.org/Viewpoint-1.2/BrowseContextContribution/allowedUIContexts";
230         public static final String BrowseContextContribution_allowedUIContexts_Inverse = "http://www.simantics.org/Viewpoint-1.2/BrowseContextContribution/allowedUIContexts/Inverse";
231         public static final String BrowseContext_HasActionContribution = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/HasActionContribution";
232         public static final String BrowseContext_HasChildContribution = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/HasChildContribution";
233         public static final String BrowseContext_HasDropActionContribution = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/HasDropActionContribution";
234         public static final String BrowseContext_HasTestContribution = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/HasTestContribution";
235         public static final String BrowseContext_HasVisualsContribution = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/HasVisualsContribution";
236         public static final String BrowseContext_Includes = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/Includes";
237         public static final String BrowseContext_IsIncludedIn = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/IsIncludedIn";
238         public static final String BrowseContext_SupportsRemovalOf = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/SupportsRemovalOf";
239         public static final String BrowseContext_SupportsRenamingOf = "http://www.simantics.org/Viewpoint-1.2/BrowseContext/SupportsRenamingOf";
240         public static final String CheckedStateRule = "http://www.simantics.org/Viewpoint-1.2/CheckedStateRule";
241         public static final String ChildContribution = "http://www.simantics.org/Viewpoint-1.2/ChildContribution";
242         public static final String ChildContribution_HasChildNodeType = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/HasChildNodeType";
243         public static final String ChildContribution_HasParentNodeType = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/HasParentNodeType";
244         public static final String ChildContribution_HasRule = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/HasRule";
245         public static final String ChildContribution_identifier = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/identifier";
246         public static final String ChildContribution_identifier_Inverse = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/identifier/Inverse";
247         public static final String ChildContribution_priority = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/priority";
248         public static final String ChildContribution_priority_Inverse = "http://www.simantics.org/Viewpoint-1.2/ChildContribution/priority/Inverse";
249         public static final String ChildRule = "http://www.simantics.org/Viewpoint-1.2/ChildRule";
250         public static final String CompositeChildRule = "http://www.simantics.org/Viewpoint-1.2/CompositeChildRule";
251         public static final String CompositeChildRule_HasChildRules = "http://www.simantics.org/Viewpoint-1.2/CompositeChildRule/HasChildRules";
252         public static final String CompositeChildRule_HasChildRules_Inverse = "http://www.simantics.org/Viewpoint-1.2/CompositeChildRule/HasChildRules/Inverse";
253         public static final String ConstantChildRule = "http://www.simantics.org/Viewpoint-1.2/ConstantChildRule";
254         public static final String ConstantChildRule_HasChild = "http://www.simantics.org/Viewpoint-1.2/ConstantChildRule/HasChild";
255         public static final String ConstantChildRule_HasChild_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantChildRule/HasChild/Inverse";
256         public static final String ConstantImageRule = "http://www.simantics.org/Viewpoint-1.2/ConstantImageRule";
257         public static final String ConstantImageRule_HasColumnKey = "http://www.simantics.org/Viewpoint-1.2/ConstantImageRule/HasColumnKey";
258         public static final String ConstantImageRule_HasColumnKey_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantImageRule/HasColumnKey/Inverse";
259         public static final String ConstantImageRule_HasImage = "http://www.simantics.org/Viewpoint-1.2/ConstantImageRule/HasImage";
260         public static final String ConstantImageRule_HasImage_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantImageRule/HasImage/Inverse";
261         public static final String ConstantLabelDecorationRule = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule";
262         public static final String ConstantLabelDecorationRule_HasBackgroundColor = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasBackgroundColor";
263         public static final String ConstantLabelDecorationRule_HasBackgroundColor_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasBackgroundColor/Inverse";
264         public static final String ConstantLabelDecorationRule_HasFont = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasFont";
265         public static final String ConstantLabelDecorationRule_HasFont_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasFont/Inverse";
266         public static final String ConstantLabelDecorationRule_HasForegroundColor = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasForegroundColor";
267         public static final String ConstantLabelDecorationRule_HasForegroundColor_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasForegroundColor/Inverse";
268         public static final String ConstantLabelDecorationRule_HasFormat = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasFormat";
269         public static final String ConstantLabelDecorationRule_HasFormat_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasFormat/Inverse";
270         public static final String ConstantLabelDecorationRule_HasStyle = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasStyle";
271         public static final String ConstantLabelDecorationRule_HasStyle_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelDecorationRule/HasStyle/Inverse";
272         public static final String ConstantLabelRule = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelRule";
273         public static final String ConstantLabelRule_HasColumnKey = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelRule/HasColumnKey";
274         public static final String ConstantLabelRule_HasColumnKey_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelRule/HasColumnKey/Inverse";
275         public static final String ConstantLabelRule_HasLabel = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelRule/HasLabel";
276         public static final String ConstantLabelRule_HasLabel_Inverse = "http://www.simantics.org/Viewpoint-1.2/ConstantLabelRule/HasLabel/Inverse";
277         public static final String DescriptionTooltipRule = "http://www.simantics.org/Viewpoint-1.2/DescriptionTooltipRule";
278         public static final String DropActionContribution = "http://www.simantics.org/Viewpoint-1.2/DropActionContribution";
279         public static final String DropActionContribution_HasAction = "http://www.simantics.org/Viewpoint-1.2/DropActionContribution/HasAction";
280         public static final String DropActionContribution_HasCondition = "http://www.simantics.org/Viewpoint-1.2/DropActionContribution/HasCondition";
281         public static final String DropActionContribution_HasNodeType = "http://www.simantics.org/Viewpoint-1.2/DropActionContribution/HasNodeType";
282         public static final String DropActionContribution_HasPriority = "http://www.simantics.org/Viewpoint-1.2/DropActionContribution/HasPriority";
283         public static final String DropActionContribution_HasPriority_Inverse = "http://www.simantics.org/Viewpoint-1.2/DropActionContribution/HasPriority/Inverse";
284         public static final String EditActionCategory = "http://www.simantics.org/Viewpoint-1.2/EditActionCategory";
285         public static final String EqualContentChildRule = "http://www.simantics.org/Viewpoint-1.2/EqualContentChildRule";
286         public static final String EqualContentChildRule_HasCondition = "http://www.simantics.org/Viewpoint-1.2/EqualContentChildRule/HasCondition";
287         public static final String FailTest = "http://www.simantics.org/Viewpoint-1.2/FailTest";
288         public static final String FlatNodeRule = "http://www.simantics.org/Viewpoint-1.2/FlatNodeRule";
289         public static final String HasBundle = "http://www.simantics.org/Viewpoint-1.2/HasBundle";
290         public static final String HasBundle_Inverse = "http://www.simantics.org/Viewpoint-1.2/HasBundle/Inverse";
291         public static final String HasContentType = "http://www.simantics.org/Viewpoint-1.2/HasContentType";
292         public static final String HasContentType_Inverse = "http://www.simantics.org/Viewpoint-1.2/HasContentType/Inverse";
293         public static final String HasInstanceOfTest = "http://www.simantics.org/Viewpoint-1.2/HasInstanceOfTest";
294         public static final String HasInstanceOfTest_IsInstanceOf = "http://www.simantics.org/Viewpoint-1.2/HasInstanceOfTest/IsInstanceOf";
295         public static final String HasNegatedTest = "http://www.simantics.org/Viewpoint-1.2/HasNegatedTest";
296         public static final String HasNegatedTest_HasTest = "http://www.simantics.org/Viewpoint-1.2/HasNegatedTest/HasTest";
297         public static final String HasStatementTest = "http://www.simantics.org/Viewpoint-1.2/HasStatementTest";
298         public static final String HasStatementTest_HasRelation = "http://www.simantics.org/Viewpoint-1.2/HasStatementTest/HasRelation";
299         public static final String ImageDecorationRule = "http://www.simantics.org/Viewpoint-1.2/ImageDecorationRule";
300         public static final String ImageRule = "http://www.simantics.org/Viewpoint-1.2/ImageRule";
301         public static final String ImportActionCategory = "http://www.simantics.org/Viewpoint-1.2/ImportActionCategory";
302         public static final String InstanceOfTest = "http://www.simantics.org/Viewpoint-1.2/InstanceOfTest";
303         public static final String InstanceOfTest_bundleName = "http://www.simantics.org/Viewpoint-1.2/InstanceOfTest/bundleName";
304         public static final String InstanceOfTest_bundleName_Inverse = "http://www.simantics.org/Viewpoint-1.2/InstanceOfTest/bundleName/Inverse";
305         public static final String InstanceOfTest_className = "http://www.simantics.org/Viewpoint-1.2/InstanceOfTest/className";
306         public static final String InstanceOfTest_className_Inverse = "http://www.simantics.org/Viewpoint-1.2/InstanceOfTest/className/Inverse";
307         public static final String LabelDecorationRule = "http://www.simantics.org/Viewpoint-1.2/LabelDecorationRule";
308         public static final String LabelRule = "http://www.simantics.org/Viewpoint-1.2/LabelRule";
309         public static final String LinkedListSorterRule = "http://www.simantics.org/Viewpoint-1.2/LinkedListSorterRule";
310         public static final String ModifierRule = "http://www.simantics.org/Viewpoint-1.2/ModifierRule";
311         public static final String NewActionCategory = "http://www.simantics.org/Viewpoint-1.2/NewActionCategory";
312         public static final String NoModifierRule = "http://www.simantics.org/Viewpoint-1.2/NoModifierRule";
313         public static final String NodeType = "http://www.simantics.org/Viewpoint-1.2/NodeType";
314         public static final String OrTest = "http://www.simantics.org/Viewpoint-1.2/OrTest";
315         public static final String OrTest_HasTest = "http://www.simantics.org/Viewpoint-1.2/OrTest/HasTest";
316         public static final String PassThruSorterRule = "http://www.simantics.org/Viewpoint-1.2/PassThruSorterRule";
317         public static final String RelationChildRule = "http://www.simantics.org/Viewpoint-1.2/RelationChildRule";
318         public static final String RelationChildRule_HasRelation = "http://www.simantics.org/Viewpoint-1.2/RelationChildRule/HasRelation";
319         public static final String RelationChildRule_HasTest = "http://www.simantics.org/Viewpoint-1.2/RelationChildRule/HasTest";
320         public static final String RelationStatementRule = "http://www.simantics.org/Viewpoint-1.2/RelationStatementRule";
321         public static final String RelationStatementRule_HasRelation = "http://www.simantics.org/Viewpoint-1.2/RelationStatementRule/HasRelation";
322         public static final String RelationStatementRule_HasTest = "http://www.simantics.org/Viewpoint-1.2/RelationStatementRule/HasTest";
323         public static final String RemovalTestContribution = "http://www.simantics.org/Viewpoint-1.2/RemovalTestContribution";
324         public static final String RenamingTestContribution = "http://www.simantics.org/Viewpoint-1.2/RenamingTestContribution";
325         public static final String ResourceLabelLabelRule = "http://www.simantics.org/Viewpoint-1.2/ResourceLabelLabelRule";
326         public static final String ResourceLabelModifierRule = "http://www.simantics.org/Viewpoint-1.2/ResourceLabelModifierRule";
327         public static final String ResourceNameLabelRule = "http://www.simantics.org/Viewpoint-1.2/ResourceNameLabelRule";
328         public static final String ResourceNameModifierRule = "http://www.simantics.org/Viewpoint-1.2/ResourceNameModifierRule";
329         public static final String ResourceNodeType = "http://www.simantics.org/Viewpoint-1.2/ResourceNodeType";
330         public static final String SorterRule = "http://www.simantics.org/Viewpoint-1.2/SorterRule";
331         public static final String StandardNameLabelRule = "http://www.simantics.org/Viewpoint-1.2/StandardNameLabelRule";
332         public static final String Test = "http://www.simantics.org/Viewpoint-1.2/Test";
333         public static final String TestContribution = "http://www.simantics.org/Viewpoint-1.2/TestContribution";
334         public static final String TestContribution_HasNodeType = "http://www.simantics.org/Viewpoint-1.2/TestContribution/HasNodeType";
335         public static final String TestContribution_HasPriority = "http://www.simantics.org/Viewpoint-1.2/TestContribution/HasPriority";
336         public static final String TestContribution_HasPriority_Inverse = "http://www.simantics.org/Viewpoint-1.2/TestContribution/HasPriority/Inverse";
337         public static final String TestContribution_HasTest = "http://www.simantics.org/Viewpoint-1.2/TestContribution/HasTest";
338         public static final String TooltipRule = "http://www.simantics.org/Viewpoint-1.2/TooltipRule";
339         public static final String VariableLabelModifierRule = "http://www.simantics.org/Viewpoint-1.2/VariableLabelModifierRule";
340         public static final String VisualsContribution = "http://www.simantics.org/Viewpoint-1.2/VisualsContribution";
341         public static final String VisualsContribution_HasCondition = "http://www.simantics.org/Viewpoint-1.2/VisualsContribution/HasCondition";
342         public static final String VisualsContribution_HasNodeType = "http://www.simantics.org/Viewpoint-1.2/VisualsContribution/HasNodeType";
343         public static final String VisualsContribution_HasPriority = "http://www.simantics.org/Viewpoint-1.2/VisualsContribution/HasPriority";
344         public static final String VisualsContribution_HasPriority_Inverse = "http://www.simantics.org/Viewpoint-1.2/VisualsContribution/HasPriority/Inverse";
345         public static final String VisualsContribution_HasRule = "http://www.simantics.org/Viewpoint-1.2/VisualsContribution/HasRule";
346         public static final String VisualsRule = "http://www.simantics.org/Viewpoint-1.2/VisualsRule";
347         public static final String actionContribution = "http://www.simantics.org/Viewpoint-1.2/actionContribution";
348         public static final String actionContributionWithVisibility = "http://www.simantics.org/Viewpoint-1.2/actionContributionWithVisibility";
349         public static final String constantChildRule = "http://www.simantics.org/Viewpoint-1.2/constantChildRule";
350         public static final String constantImageRule = "http://www.simantics.org/Viewpoint-1.2/constantImageRule";
351         public static final String constantImageRuleWithColumn = "http://www.simantics.org/Viewpoint-1.2/constantImageRuleWithColumn";
352         public static final String constantLabelRule = "http://www.simantics.org/Viewpoint-1.2/constantLabelRule";
353         public static final String constantLabelRuleWithColumn = "http://www.simantics.org/Viewpoint-1.2/constantLabelRuleWithColumn";
354         public static final String customCheckedStateRule = "http://www.simantics.org/Viewpoint-1.2/customCheckedStateRule";
355         public static final String customChildRule = "http://www.simantics.org/Viewpoint-1.2/customChildRule";
356         public static final String customImageDecorationRule = "http://www.simantics.org/Viewpoint-1.2/customImageDecorationRule";
357         public static final String customImageRule = "http://www.simantics.org/Viewpoint-1.2/customImageRule";
358         public static final String customLabelDecorationRule = "http://www.simantics.org/Viewpoint-1.2/customLabelDecorationRule";
359         public static final String customLabelRule = "http://www.simantics.org/Viewpoint-1.2/customLabelRule";
360         public static final String customLabelRuleWithPriority = "http://www.simantics.org/Viewpoint-1.2/customLabelRuleWithPriority";
361         public static final String customModifierRule = "http://www.simantics.org/Viewpoint-1.2/customModifierRule";
362         public static final String customVisualsRule = "http://www.simantics.org/Viewpoint-1.2/customVisualsRule";
363         public static final String customVisualsRuleWithPriority = "http://www.simantics.org/Viewpoint-1.2/customVisualsRuleWithPriority";
364         public static final String customVisualsRuleWithPriorityAndTest = "http://www.simantics.org/Viewpoint-1.2/customVisualsRuleWithPriorityAndTest";
365         public static final String defineActionContribution = "http://www.simantics.org/Viewpoint-1.2/defineActionContribution";
366         public static final String defineRelationChildRule = "http://www.simantics.org/Viewpoint-1.2/defineRelationChildRule";
367         public static final String dropActionContribution = "http://www.simantics.org/Viewpoint-1.2/dropActionContribution";
368         public static final String dropActionContributionWithTest = "http://www.simantics.org/Viewpoint-1.2/dropActionContributionWithTest";
369         public static final String equalContentChildRule = "http://www.simantics.org/Viewpoint-1.2/equalContentChildRule";
370         public static final String namedConstantChildRule = "http://www.simantics.org/Viewpoint-1.2/namedConstantChildRule";
371         public static final String namedConstantImageRule = "http://www.simantics.org/Viewpoint-1.2/namedConstantImageRule";
372         public static final String namedConstantImageRuleWithColumn = "http://www.simantics.org/Viewpoint-1.2/namedConstantImageRuleWithColumn";
373         public static final String namedConstantLabelRule = "http://www.simantics.org/Viewpoint-1.2/namedConstantLabelRule";
374         public static final String namedConstantLabelRuleWithColumn = "http://www.simantics.org/Viewpoint-1.2/namedConstantLabelRuleWithColumn";
375         public static final String namedCustomCheckedStateRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomCheckedStateRule";
376         public static final String namedCustomChildRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomChildRule";
377         public static final String namedCustomImageDecorationRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomImageDecorationRule";
378         public static final String namedCustomImageRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomImageRule";
379         public static final String namedCustomLabelDecorationRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomLabelDecorationRule";
380         public static final String namedCustomLabelRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomLabelRule";
381         public static final String namedCustomLabelRuleWithPriority = "http://www.simantics.org/Viewpoint-1.2/namedCustomLabelRuleWithPriority";
382         public static final String namedCustomModifierRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomModifierRule";
383         public static final String namedCustomVisualsRule = "http://www.simantics.org/Viewpoint-1.2/namedCustomVisualsRule";
384         public static final String namedCustomVisualsRuleWithPriority = "http://www.simantics.org/Viewpoint-1.2/namedCustomVisualsRuleWithPriority";
385         public static final String namedCustomVisualsRuleWithPriorityAndTest = "http://www.simantics.org/Viewpoint-1.2/namedCustomVisualsRuleWithPriorityAndTest";
386         public static final String namedEqualContentChildRule = "http://www.simantics.org/Viewpoint-1.2/namedEqualContentChildRule";
387         public static final String namedRelationChildRule = "http://www.simantics.org/Viewpoint-1.2/namedRelationChildRule";
388         public static final String namedRelationChildRuleWithFolder = "http://www.simantics.org/Viewpoint-1.2/namedRelationChildRuleWithFolder";
389         public static final String namedRelationStatementRule = "http://www.simantics.org/Viewpoint-1.2/namedRelationStatementRule";
390         public static final String relationChildRule = "http://www.simantics.org/Viewpoint-1.2/relationChildRule";
391         public static final String relationChildRuleWithFolder = "http://www.simantics.org/Viewpoint-1.2/relationChildRuleWithFolder";
392         public static final String relationStatementRule = "http://www.simantics.org/Viewpoint-1.2/relationStatementRule";
393         public static final String removalTestContribution = "http://www.simantics.org/Viewpoint-1.2/removalTestContribution";
394         public static final String renamingTestContribution = "http://www.simantics.org/Viewpoint-1.2/renamingTestContribution";
395     }
396     
397     public static Resource getResourceOrNull(ReadGraph graph, String uri) {
398         try {
399             return graph.getResource(uri);
400         } catch(DatabaseException e) {
401             System.err.println(e.getMessage());
402             return null;
403         }
404     }
405     
406     public ViewpointResource(ReadGraph graph) {
407         ActionBrowseContextContribution = getResourceOrNull(graph, URIs.ActionBrowseContextContribution);
408         ActionBrowseContextContribution_HasActionBrowseContext = getResourceOrNull(graph, URIs.ActionBrowseContextContribution_HasActionBrowseContext);
409         ActionBrowseContextContribution_HasType = getResourceOrNull(graph, URIs.ActionBrowseContextContribution_HasType);
410         ActionBrowseContextContribution_allowedUIContexts = getResourceOrNull(graph, URIs.ActionBrowseContextContribution_allowedUIContexts);
411         ActionBrowseContextContribution_allowedUIContexts_Inverse = getResourceOrNull(graph, URIs.ActionBrowseContextContribution_allowedUIContexts_Inverse);
412         ActionCategory = getResourceOrNull(graph, URIs.ActionCategory);
413         ActionCategory_HasPriority = getResourceOrNull(graph, URIs.ActionCategory_HasPriority);
414         ActionCategory_HasPriority_Inverse = getResourceOrNull(graph, URIs.ActionCategory_HasPriority_Inverse);
415         ActionCategory_IsSubmenu = getResourceOrNull(graph, URIs.ActionCategory_IsSubmenu);
416         ActionCategory_IsSubmenu_Inverse = getResourceOrNull(graph, URIs.ActionCategory_IsSubmenu_Inverse);
417         ActionContribution = getResourceOrNull(graph, URIs.ActionContribution);
418         ActionContribution_HasAction = getResourceOrNull(graph, URIs.ActionContribution_HasAction);
419         ActionContribution_HasCategory = getResourceOrNull(graph, URIs.ActionContribution_HasCategory);
420         ActionContribution_HasImage = getResourceOrNull(graph, URIs.ActionContribution_HasImage);
421         ActionContribution_HasNodeType = getResourceOrNull(graph, URIs.ActionContribution_HasNodeType);
422         ActionContribution_IsEnabledIf = getResourceOrNull(graph, URIs.ActionContribution_IsEnabledIf);
423         ActionContribution_IsVisibleIf = getResourceOrNull(graph, URIs.ActionContribution_IsVisibleIf);
424         AlphanumericSorterRule = getResourceOrNull(graph, URIs.AlphanumericSorterRule);
425         AndTest = getResourceOrNull(graph, URIs.AndTest);
426         AndTest_HasTest = getResourceOrNull(graph, URIs.AndTest_HasTest);
427         BrowseContext = getResourceOrNull(graph, URIs.BrowseContext);
428         BrowseContextContribution = getResourceOrNull(graph, URIs.BrowseContextContribution);
429         BrowseContextContribution_HasBrowseContext = getResourceOrNull(graph, URIs.BrowseContextContribution_HasBrowseContext);
430         BrowseContextContribution_HasType = getResourceOrNull(graph, URIs.BrowseContextContribution_HasType);
431         BrowseContextContribution_allowedUIContexts = getResourceOrNull(graph, URIs.BrowseContextContribution_allowedUIContexts);
432         BrowseContextContribution_allowedUIContexts_Inverse = getResourceOrNull(graph, URIs.BrowseContextContribution_allowedUIContexts_Inverse);
433         BrowseContext_HasActionContribution = getResourceOrNull(graph, URIs.BrowseContext_HasActionContribution);
434         BrowseContext_HasChildContribution = getResourceOrNull(graph, URIs.BrowseContext_HasChildContribution);
435         BrowseContext_HasDropActionContribution = getResourceOrNull(graph, URIs.BrowseContext_HasDropActionContribution);
436         BrowseContext_HasTestContribution = getResourceOrNull(graph, URIs.BrowseContext_HasTestContribution);
437         BrowseContext_HasVisualsContribution = getResourceOrNull(graph, URIs.BrowseContext_HasVisualsContribution);
438         BrowseContext_Includes = getResourceOrNull(graph, URIs.BrowseContext_Includes);
439         BrowseContext_IsIncludedIn = getResourceOrNull(graph, URIs.BrowseContext_IsIncludedIn);
440         BrowseContext_SupportsRemovalOf = getResourceOrNull(graph, URIs.BrowseContext_SupportsRemovalOf);
441         BrowseContext_SupportsRenamingOf = getResourceOrNull(graph, URIs.BrowseContext_SupportsRenamingOf);
442         CheckedStateRule = getResourceOrNull(graph, URIs.CheckedStateRule);
443         ChildContribution = getResourceOrNull(graph, URIs.ChildContribution);
444         ChildContribution_HasChildNodeType = getResourceOrNull(graph, URIs.ChildContribution_HasChildNodeType);
445         ChildContribution_HasParentNodeType = getResourceOrNull(graph, URIs.ChildContribution_HasParentNodeType);
446         ChildContribution_HasRule = getResourceOrNull(graph, URIs.ChildContribution_HasRule);
447         ChildContribution_identifier = getResourceOrNull(graph, URIs.ChildContribution_identifier);
448         ChildContribution_identifier_Inverse = getResourceOrNull(graph, URIs.ChildContribution_identifier_Inverse);
449         ChildContribution_priority = getResourceOrNull(graph, URIs.ChildContribution_priority);
450         ChildContribution_priority_Inverse = getResourceOrNull(graph, URIs.ChildContribution_priority_Inverse);
451         ChildRule = getResourceOrNull(graph, URIs.ChildRule);
452         CompositeChildRule = getResourceOrNull(graph, URIs.CompositeChildRule);
453         CompositeChildRule_HasChildRules = getResourceOrNull(graph, URIs.CompositeChildRule_HasChildRules);
454         CompositeChildRule_HasChildRules_Inverse = getResourceOrNull(graph, URIs.CompositeChildRule_HasChildRules_Inverse);
455         ConstantChildRule = getResourceOrNull(graph, URIs.ConstantChildRule);
456         ConstantChildRule_HasChild = getResourceOrNull(graph, URIs.ConstantChildRule_HasChild);
457         ConstantChildRule_HasChild_Inverse = getResourceOrNull(graph, URIs.ConstantChildRule_HasChild_Inverse);
458         ConstantImageRule = getResourceOrNull(graph, URIs.ConstantImageRule);
459         ConstantImageRule_HasColumnKey = getResourceOrNull(graph, URIs.ConstantImageRule_HasColumnKey);
460         ConstantImageRule_HasColumnKey_Inverse = getResourceOrNull(graph, URIs.ConstantImageRule_HasColumnKey_Inverse);
461         ConstantImageRule_HasImage = getResourceOrNull(graph, URIs.ConstantImageRule_HasImage);
462         ConstantImageRule_HasImage_Inverse = getResourceOrNull(graph, URIs.ConstantImageRule_HasImage_Inverse);
463         ConstantLabelDecorationRule = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule);
464         ConstantLabelDecorationRule_HasBackgroundColor = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasBackgroundColor);
465         ConstantLabelDecorationRule_HasBackgroundColor_Inverse = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasBackgroundColor_Inverse);
466         ConstantLabelDecorationRule_HasFont = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasFont);
467         ConstantLabelDecorationRule_HasFont_Inverse = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasFont_Inverse);
468         ConstantLabelDecorationRule_HasForegroundColor = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasForegroundColor);
469         ConstantLabelDecorationRule_HasForegroundColor_Inverse = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasForegroundColor_Inverse);
470         ConstantLabelDecorationRule_HasFormat = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasFormat);
471         ConstantLabelDecorationRule_HasFormat_Inverse = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasFormat_Inverse);
472         ConstantLabelDecorationRule_HasStyle = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasStyle);
473         ConstantLabelDecorationRule_HasStyle_Inverse = getResourceOrNull(graph, URIs.ConstantLabelDecorationRule_HasStyle_Inverse);
474         ConstantLabelRule = getResourceOrNull(graph, URIs.ConstantLabelRule);
475         ConstantLabelRule_HasColumnKey = getResourceOrNull(graph, URIs.ConstantLabelRule_HasColumnKey);
476         ConstantLabelRule_HasColumnKey_Inverse = getResourceOrNull(graph, URIs.ConstantLabelRule_HasColumnKey_Inverse);
477         ConstantLabelRule_HasLabel = getResourceOrNull(graph, URIs.ConstantLabelRule_HasLabel);
478         ConstantLabelRule_HasLabel_Inverse = getResourceOrNull(graph, URIs.ConstantLabelRule_HasLabel_Inverse);
479         DescriptionTooltipRule = getResourceOrNull(graph, URIs.DescriptionTooltipRule);
480         DropActionContribution = getResourceOrNull(graph, URIs.DropActionContribution);
481         DropActionContribution_HasAction = getResourceOrNull(graph, URIs.DropActionContribution_HasAction);
482         DropActionContribution_HasCondition = getResourceOrNull(graph, URIs.DropActionContribution_HasCondition);
483         DropActionContribution_HasNodeType = getResourceOrNull(graph, URIs.DropActionContribution_HasNodeType);
484         DropActionContribution_HasPriority = getResourceOrNull(graph, URIs.DropActionContribution_HasPriority);
485         DropActionContribution_HasPriority_Inverse = getResourceOrNull(graph, URIs.DropActionContribution_HasPriority_Inverse);
486         EditActionCategory = getResourceOrNull(graph, URIs.EditActionCategory);
487         EqualContentChildRule = getResourceOrNull(graph, URIs.EqualContentChildRule);
488         EqualContentChildRule_HasCondition = getResourceOrNull(graph, URIs.EqualContentChildRule_HasCondition);
489         FailTest = getResourceOrNull(graph, URIs.FailTest);
490         FlatNodeRule = getResourceOrNull(graph, URIs.FlatNodeRule);
491         HasBundle = getResourceOrNull(graph, URIs.HasBundle);
492         HasBundle_Inverse = getResourceOrNull(graph, URIs.HasBundle_Inverse);
493         HasContentType = getResourceOrNull(graph, URIs.HasContentType);
494         HasContentType_Inverse = getResourceOrNull(graph, URIs.HasContentType_Inverse);
495         HasInstanceOfTest = getResourceOrNull(graph, URIs.HasInstanceOfTest);
496         HasInstanceOfTest_IsInstanceOf = getResourceOrNull(graph, URIs.HasInstanceOfTest_IsInstanceOf);
497         HasNegatedTest = getResourceOrNull(graph, URIs.HasNegatedTest);
498         HasNegatedTest_HasTest = getResourceOrNull(graph, URIs.HasNegatedTest_HasTest);
499         HasStatementTest = getResourceOrNull(graph, URIs.HasStatementTest);
500         HasStatementTest_HasRelation = getResourceOrNull(graph, URIs.HasStatementTest_HasRelation);
501         ImageDecorationRule = getResourceOrNull(graph, URIs.ImageDecorationRule);
502         ImageRule = getResourceOrNull(graph, URIs.ImageRule);
503         ImportActionCategory = getResourceOrNull(graph, URIs.ImportActionCategory);
504         InstanceOfTest = getResourceOrNull(graph, URIs.InstanceOfTest);
505         InstanceOfTest_bundleName = getResourceOrNull(graph, URIs.InstanceOfTest_bundleName);
506         InstanceOfTest_bundleName_Inverse = getResourceOrNull(graph, URIs.InstanceOfTest_bundleName_Inverse);
507         InstanceOfTest_className = getResourceOrNull(graph, URIs.InstanceOfTest_className);
508         InstanceOfTest_className_Inverse = getResourceOrNull(graph, URIs.InstanceOfTest_className_Inverse);
509         LabelDecorationRule = getResourceOrNull(graph, URIs.LabelDecorationRule);
510         LabelRule = getResourceOrNull(graph, URIs.LabelRule);
511         LinkedListSorterRule = getResourceOrNull(graph, URIs.LinkedListSorterRule);
512         ModifierRule = getResourceOrNull(graph, URIs.ModifierRule);
513         NewActionCategory = getResourceOrNull(graph, URIs.NewActionCategory);
514         NoModifierRule = getResourceOrNull(graph, URIs.NoModifierRule);
515         NodeType = getResourceOrNull(graph, URIs.NodeType);
516         OrTest = getResourceOrNull(graph, URIs.OrTest);
517         OrTest_HasTest = getResourceOrNull(graph, URIs.OrTest_HasTest);
518         PassThruSorterRule = getResourceOrNull(graph, URIs.PassThruSorterRule);
519         RelationChildRule = getResourceOrNull(graph, URIs.RelationChildRule);
520         RelationChildRule_HasRelation = getResourceOrNull(graph, URIs.RelationChildRule_HasRelation);
521         RelationChildRule_HasTest = getResourceOrNull(graph, URIs.RelationChildRule_HasTest);
522         RelationStatementRule = getResourceOrNull(graph, URIs.RelationStatementRule);
523         RelationStatementRule_HasRelation = getResourceOrNull(graph, URIs.RelationStatementRule_HasRelation);
524         RelationStatementRule_HasTest = getResourceOrNull(graph, URIs.RelationStatementRule_HasTest);
525         RemovalTestContribution = getResourceOrNull(graph, URIs.RemovalTestContribution);
526         RenamingTestContribution = getResourceOrNull(graph, URIs.RenamingTestContribution);
527         ResourceLabelLabelRule = getResourceOrNull(graph, URIs.ResourceLabelLabelRule);
528         ResourceLabelModifierRule = getResourceOrNull(graph, URIs.ResourceLabelModifierRule);
529         ResourceNameLabelRule = getResourceOrNull(graph, URIs.ResourceNameLabelRule);
530         ResourceNameModifierRule = getResourceOrNull(graph, URIs.ResourceNameModifierRule);
531         ResourceNodeType = getResourceOrNull(graph, URIs.ResourceNodeType);
532         SorterRule = getResourceOrNull(graph, URIs.SorterRule);
533         StandardNameLabelRule = getResourceOrNull(graph, URIs.StandardNameLabelRule);
534         Test = getResourceOrNull(graph, URIs.Test);
535         TestContribution = getResourceOrNull(graph, URIs.TestContribution);
536         TestContribution_HasNodeType = getResourceOrNull(graph, URIs.TestContribution_HasNodeType);
537         TestContribution_HasPriority = getResourceOrNull(graph, URIs.TestContribution_HasPriority);
538         TestContribution_HasPriority_Inverse = getResourceOrNull(graph, URIs.TestContribution_HasPriority_Inverse);
539         TestContribution_HasTest = getResourceOrNull(graph, URIs.TestContribution_HasTest);
540         TooltipRule = getResourceOrNull(graph, URIs.TooltipRule);
541         VariableLabelModifierRule = getResourceOrNull(graph, URIs.VariableLabelModifierRule);
542         VisualsContribution = getResourceOrNull(graph, URIs.VisualsContribution);
543         VisualsContribution_HasCondition = getResourceOrNull(graph, URIs.VisualsContribution_HasCondition);
544         VisualsContribution_HasNodeType = getResourceOrNull(graph, URIs.VisualsContribution_HasNodeType);
545         VisualsContribution_HasPriority = getResourceOrNull(graph, URIs.VisualsContribution_HasPriority);
546         VisualsContribution_HasPriority_Inverse = getResourceOrNull(graph, URIs.VisualsContribution_HasPriority_Inverse);
547         VisualsContribution_HasRule = getResourceOrNull(graph, URIs.VisualsContribution_HasRule);
548         VisualsRule = getResourceOrNull(graph, URIs.VisualsRule);
549         actionContribution = getResourceOrNull(graph, URIs.actionContribution);
550         actionContributionWithVisibility = getResourceOrNull(graph, URIs.actionContributionWithVisibility);
551         constantChildRule = getResourceOrNull(graph, URIs.constantChildRule);
552         constantImageRule = getResourceOrNull(graph, URIs.constantImageRule);
553         constantImageRuleWithColumn = getResourceOrNull(graph, URIs.constantImageRuleWithColumn);
554         constantLabelRule = getResourceOrNull(graph, URIs.constantLabelRule);
555         constantLabelRuleWithColumn = getResourceOrNull(graph, URIs.constantLabelRuleWithColumn);
556         customCheckedStateRule = getResourceOrNull(graph, URIs.customCheckedStateRule);
557         customChildRule = getResourceOrNull(graph, URIs.customChildRule);
558         customImageDecorationRule = getResourceOrNull(graph, URIs.customImageDecorationRule);
559         customImageRule = getResourceOrNull(graph, URIs.customImageRule);
560         customLabelDecorationRule = getResourceOrNull(graph, URIs.customLabelDecorationRule);
561         customLabelRule = getResourceOrNull(graph, URIs.customLabelRule);
562         customLabelRuleWithPriority = getResourceOrNull(graph, URIs.customLabelRuleWithPriority);
563         customModifierRule = getResourceOrNull(graph, URIs.customModifierRule);
564         customVisualsRule = getResourceOrNull(graph, URIs.customVisualsRule);
565         customVisualsRuleWithPriority = getResourceOrNull(graph, URIs.customVisualsRuleWithPriority);
566         customVisualsRuleWithPriorityAndTest = getResourceOrNull(graph, URIs.customVisualsRuleWithPriorityAndTest);
567         defineActionContribution = getResourceOrNull(graph, URIs.defineActionContribution);
568         defineRelationChildRule = getResourceOrNull(graph, URIs.defineRelationChildRule);
569         dropActionContribution = getResourceOrNull(graph, URIs.dropActionContribution);
570         dropActionContributionWithTest = getResourceOrNull(graph, URIs.dropActionContributionWithTest);
571         equalContentChildRule = getResourceOrNull(graph, URIs.equalContentChildRule);
572         namedConstantChildRule = getResourceOrNull(graph, URIs.namedConstantChildRule);
573         namedConstantImageRule = getResourceOrNull(graph, URIs.namedConstantImageRule);
574         namedConstantImageRuleWithColumn = getResourceOrNull(graph, URIs.namedConstantImageRuleWithColumn);
575         namedConstantLabelRule = getResourceOrNull(graph, URIs.namedConstantLabelRule);
576         namedConstantLabelRuleWithColumn = getResourceOrNull(graph, URIs.namedConstantLabelRuleWithColumn);
577         namedCustomCheckedStateRule = getResourceOrNull(graph, URIs.namedCustomCheckedStateRule);
578         namedCustomChildRule = getResourceOrNull(graph, URIs.namedCustomChildRule);
579         namedCustomImageDecorationRule = getResourceOrNull(graph, URIs.namedCustomImageDecorationRule);
580         namedCustomImageRule = getResourceOrNull(graph, URIs.namedCustomImageRule);
581         namedCustomLabelDecorationRule = getResourceOrNull(graph, URIs.namedCustomLabelDecorationRule);
582         namedCustomLabelRule = getResourceOrNull(graph, URIs.namedCustomLabelRule);
583         namedCustomLabelRuleWithPriority = getResourceOrNull(graph, URIs.namedCustomLabelRuleWithPriority);
584         namedCustomModifierRule = getResourceOrNull(graph, URIs.namedCustomModifierRule);
585         namedCustomVisualsRule = getResourceOrNull(graph, URIs.namedCustomVisualsRule);
586         namedCustomVisualsRuleWithPriority = getResourceOrNull(graph, URIs.namedCustomVisualsRuleWithPriority);
587         namedCustomVisualsRuleWithPriorityAndTest = getResourceOrNull(graph, URIs.namedCustomVisualsRuleWithPriorityAndTest);
588         namedEqualContentChildRule = getResourceOrNull(graph, URIs.namedEqualContentChildRule);
589         namedRelationChildRule = getResourceOrNull(graph, URIs.namedRelationChildRule);
590         namedRelationChildRuleWithFolder = getResourceOrNull(graph, URIs.namedRelationChildRuleWithFolder);
591         namedRelationStatementRule = getResourceOrNull(graph, URIs.namedRelationStatementRule);
592         relationChildRule = getResourceOrNull(graph, URIs.relationChildRule);
593         relationChildRuleWithFolder = getResourceOrNull(graph, URIs.relationChildRuleWithFolder);
594         relationStatementRule = getResourceOrNull(graph, URIs.relationStatementRule);
595         removalTestContribution = getResourceOrNull(graph, URIs.removalTestContribution);
596         renamingTestContribution = getResourceOrNull(graph, URIs.renamingTestContribution);
597     }
598     
599     public static ViewpointResource getInstance(ReadGraph graph) {
600         Session session = graph.getSession();
601         ViewpointResource ret = session.peekService(ViewpointResource.class);
602         if(ret == null) {
603             QueryControl qc = graph.getService(QueryControl.class);
604             ret = new ViewpointResource(qc.getIndependentGraph(graph));
605             session.registerService(ViewpointResource.class, ret);
606         }
607         return ret;
608     }
609     
610     public static ViewpointResource getInstance(RequestProcessor session) throws DatabaseException {
611         ViewpointResource ret = session.peekService(ViewpointResource.class);
612         if(ret == null) {
613             ret = session.syncRequest(new Read<ViewpointResource>() {
614                 public ViewpointResource perform(ReadGraph graph) throws DatabaseException {
615                     QueryControl qc = graph.getService(QueryControl.class);
616                     return new ViewpointResource(qc.getIndependentGraph(graph));
617                 }
618             });
619             session.registerService(ViewpointResource.class, ret);
620         }
621         return ret;
622     }
623     
624 }
625