]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.layer0/src/org/simantics/layer0/Layer0.java
Added alias property to L0.SCLModule
[simantics/platform.git] / bundles / org.simantics.layer0 / src / org / simantics / layer0 / Layer0.java
1 package org.simantics.layer0;
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 Layer0 {
12     
13     public final Resource Abstract;
14     public final Resource Assertion;
15     public final Resource Asserts;
16     public final Resource Asserts_Inverse;
17     public final Resource Boolean;
18     public final Resource BooleanArray;
19     public final Resource Byte;
20     public final Resource ByteArray;
21     public final Resource Cardinality0;
22     public final Resource Cardinality1;
23     public final Resource Cardinality2;
24     public final Resource CardinalityAtLeast1;
25     public final Resource CardinalityAtMost1;
26     public final Resource CardinalityRange;
27     public final Resource ClusterSet;
28     public final Resource ConcernsRelation;
29     public final Resource ConcernsRelation_Inverse;
30     public final Resource ConsistsOf;
31     public final Resource Constraint;
32     public final Resource Constraint_Validator;
33     public final Resource Constraint_Validator_Inverse;
34     public final Resource ConvertsToValueWith;
35     public final Resource ConvertsToValueWith_Inverse;
36     public final Resource DataType;
37     public final Resource DatabaseManagement;
38     public final Resource DatabaseManagement_Bundles;
39     public final Resource DatabaseManagement_GraphBundle;
40     public final Resource DatabaseManagement_HasFile;
41     public final Resource DatabaseManagement_HasFile_Inverse;
42     public final Resource DatabaseManagement_HasHashCode;
43     public final Resource DatabaseManagement_HasHashCode_Inverse;
44     public final Resource DatabaseManagement_HasInstallInfo;
45     public final Resource DatabaseManagement_HasInstallInfo_Inverse;
46     public final Resource DatabaseManagement_HasVersionedId;
47     public final Resource DatabaseManagement_HasVersionedId_Inverse;
48     public final Resource DatabaseManagement_InstallInfo;
49     public final Resource DatabaseManagement_InstalledGraphBundles;
50     public final Resource DatabaseManagement_OSGiSymbolicName;
51     public final Resource DatabaseManagement_OSGiVersion;
52     public final Resource DatabaseManagement_VersionedId;
53     public final Resource DependsOn;
54     public final Resource Deprecated;
55     public final Resource DomainOf;
56     public final Resource Double;
57     public final Resource DoubleArray;
58     public final Resource Entity;
59     public final Resource Entity_ClusterConstraint;
60     public final Resource Entity_PropertyConstraint;
61     public final Resource Entity_RelationConstraint;
62     public final Resource Entity_URIConstraint;
63     public final Resource Entity_ValueConstraint;
64     public final Resource Entity_published;
65     public final Resource Entity_published_Inverse;
66     public final Resource Enumeration;
67     public final Resource ExternalValue;
68     public final Resource False;
69     public final Resource Final;
70     public final Resource Float;
71     public final Resource FloatArray;
72     public final Resource Function;
73     public final Resource FunctionalRelation;
74     public final Resource Functions;
75     public final Resource Functions_booleanInputValidator;
76     public final Resource Functions_clusterValidator;
77     public final Resource Functions_composedPropertyValue;
78     public final Resource Functions_computeExpression;
79     public final Resource Functions_entityLabel;
80     public final Resource Functions_functionApplication;
81     public final Resource Functions_hasStandardResource;
82     public final Resource Functions_listResources;
83     public final Resource Functions_numberInputValidator;
84     public final Resource Functions_propertyValidator;
85     public final Resource Functions_relationValidator;
86     public final Resource Functions_resourceAsValue;
87     public final Resource Functions_standardChildDomainChildren;
88     public final Resource Functions_standardChildDomainProperties;
89     public final Resource Functions_standardClassifications;
90     public final Resource Functions_standardDefaultValue;
91     public final Resource Functions_standardPropertyDomainChildren;
92     public final Resource Functions_standardPropertyDomainProperties;
93     public final Resource Functions_standardReadOnlyValue;
94     public final Resource Functions_standardRequiredValue;
95     public final Resource Functions_standardValidValue;
96     public final Resource Functions_standardValidator;
97     public final Resource Functions_standardValueAccessor;
98     public final Resource Functions_uriValidator;
99     public final Resource Functions_valueValidator;
100     public final Resource GUID;
101     public final Resource Graph;
102     public final Resource HasCardinalityRange;
103     public final Resource HasCardinalityRange_Inverse;
104     public final Resource HasComment;
105     public final Resource HasComment_Inverse;
106     public final Resource HasConstraint;
107     public final Resource HasConstraint_Inverse;
108     public final Resource HasDataType;
109     public final Resource HasDataType_Inverse;
110     public final Resource HasDefaultLiteralType;
111     public final Resource HasDefaultLiteralType_Inverse;
112     public final Resource HasDescription;
113     public final Resource HasDescription_Inverse;
114     public final Resource HasDomain;
115     @Deprecated public final Resource HasElement;
116     public final Resource HasLabel;
117     public final Resource HasLabel_Inverse;
118     public final Resource HasName;
119     public final Resource HasNext;
120     public final Resource HasObject;
121     public final Resource HasObjectInverse;
122     public final Resource HasPredicate;
123     public final Resource HasPredicateInverse;
124     public final Resource HasPrevious;
125     public final Resource HasProperty;
126     @Deprecated public final Resource HasPropertyDefinition;
127     public final Resource HasRange;
128     public final Resource HasRange_Inverse;
129     public final Resource HasResourceClass;
130     public final Resource HasResourceClass_Inverse;
131     public final Resource HasSubliteralPredicate;
132     public final Resource HasSubliteralPredicate_Inverse;
133     public final Resource HasTemplate;
134     public final Resource HasTemplateParameters;
135     public final Resource HasTemplateParameters_Inverse;
136     public final Resource HasTemplate_Inverse;
137     public final Resource HasValueType;
138     public final Resource HasValueType_Inverse;
139     public final Resource Immutable;
140     public final Resource IndexRoot;
141     public final Resource IndexRootType;
142     public final Resource Inherits;
143     public final Resource InstanceOf;
144     public final Resource Integer;
145     public final Resource IntegerArray;
146     public final Resource InverseOf;
147     public final Resource IsComposedOf;
148     public final Resource IsDependencyOf;
149     public final Resource IsLinkedTo;
150     public final Resource IsLinkedTo_Inverse;
151     public final Resource IsOwnedBy;
152     public final Resource IsPropertyDefinitionOf;
153     public final Resource IsRelatedTo;
154     public final Resource IsWeaklyRelatedTo;
155     public final Resource Library;
156     public final Resource List;
157     public final Resource List_Element;
158     public final Resource List_Entry;
159     public final Resource List_Next;
160     public final Resource List_Previous;
161     public final Resource Literal;
162     public final Resource Literal_BooleanValidator;
163     public final Resource Literal_ByteValidator;
164     public final Resource Literal_DoubleValidator;
165     public final Resource Literal_FloatValidator;
166     public final Resource Literal_HasInputValidator;
167     public final Resource Literal_HasInputValidator_Inverse;
168     public final Resource Literal_IntegerValidator;
169     public final Resource Literal_LongValidator;
170     public final Resource Long;
171     public final Resource LongArray;
172     public final Resource Migration;
173     public final Resource MigrationSequence;
174     public final Resource MigrationStep;
175     public final Resource MigrationStep_stepAction;
176     public final Resource MigrationStep_stepAction_Inverse;
177     public final Resource Migration_format;
178     public final Resource Migration_format_Inverse;
179     public final Resource Migration_from;
180     public final Resource Migration_from_Inverse;
181     public final Resource Migration_priority;
182     public final Resource Migration_priority_Inverse;
183     public final Resource Migration_step;
184     public final Resource Migration_step_Inverse;
185     public final Resource NameOf;
186     public final Resource NamespaceMigrationStep;
187     public final Resource NamespaceMigrationStep_Prefix;
188     public final Resource NamespaceMigrationStep_Prefix_base;
189     public final Resource NamespaceMigrationStep_Prefix_base_Inverse;
190     public final Resource NamespaceMigrationStep_Prefix_from;
191     public final Resource NamespaceMigrationStep_Prefix_from_Inverse;
192     public final Resource NamespaceMigrationStep_Prefix_to;
193     public final Resource NamespaceMigrationStep_Prefix_to_Inverse;
194     public final Resource Ontology;
195     public final Resource Ontology_global;
196     public final Resource Ontology_global_Inverse;
197     public final Resource OrderedSet;
198     public final Resource OrderedSetToListMigrationStep;
199     public final Resource OrderedSetToListMigrationStep_Change;
200     public final Resource OrderedSetToListMigrationStep_entityType;
201     public final Resource OrderedSetToListMigrationStep_listRelation;
202     public final Resource OrderedSetToListMigrationStep_listType;
203     public final Resource OrderedSetToListMigrationStep_orderedSetRelation;
204     public final Resource OrderedSetToListMigrationStep_orderedSetType;
205     public final Resource PGraph;
206     public final Resource PGraph_definition;
207     public final Resource PGraph_definition_Inverse;
208     public final Resource PartOf;
209     @Deprecated public final Resource Property;
210     @Deprecated public final Resource PropertyDefinition;
211     public final Resource PropertyOf;
212     public final Resource PropertyRelation;
213     public final Resource RVI;
214     public final Resource RVIContext;
215     public final Resource Relation;
216     public final Resource RequiresValueType;
217     public final Resource RequiresValueType_Inverse;
218     public final Resource ResourceIdArray;
219     public final Resource RevisionId;
220     public final Resource SCLMigrationStep;
221     public final Resource SCLMigrationStep_SCLMigrationStepAction;
222     public final Resource SCLModule;
223     public final Resource SCLModule_alias;
224     public final Resource SCLModule_alias_Inverse;
225     public final Resource SCLModule_definition;
226     public final Resource SCLModule_definition_Inverse;
227     public final Resource SCLValue;
228     public final Resource SCLValue_Environment;
229     public final Resource SCLValue_Environment_moduleName;
230     public final Resource SCLValue_Environment_moduleName_Inverse;
231     public final Resource SCLValue_Environment_namespace;
232     public final Resource SCLValue_Environment_namespace_Inverse;
233     public final Resource SCLValue_Environment_uses;
234     public final Resource SCLValue_environment;
235     public final Resource SCLValue_expression;
236     public final Resource SCLValue_expression_Inverse;
237     public final Resource SharedOntology;
238     public final Resource SharedOntology_tg;
239     public final Resource SharedOntology_tgResources;
240     public final Resource SharedOntology_tgResources_Inverse;
241     public final Resource SharedOntology_tg_Inverse;
242     public final Resource SharedOntology_treatAsSystemOntology;
243     public final Resource SharedOntology_treatAsSystemOntology_Inverse;
244     public final Resource SharedRange;
245     public final Resource String;
246     public final Resource StringArray;
247     public final Resource SubrelationOf;
248     public final Resource SuperrelationOf;
249     public final Resource SupertypeOf;
250     public final Resource Tag;
251     public final Resource Template;
252     public final Resource TotalFunction;
253     public final Resource True;
254     public final Resource Type;
255     public final Resource TypeWithIdentifier;
256     public final Resource URI;
257     public final Resource Value;
258     public final Resource Variant;
259     public final Resource VariantArray;
260     public final Resource assert_;
261     public final Resource classifications;
262     public final Resource classifications_Inverse;
263     public final Resource defTag;
264     public final Resource default_;
265     public final Resource default_Inverse;
266     public final Resource domainChildren;
267     public final Resource domainChildren_Inverse;
268     public final Resource domainProperties;
269     public final Resource domainProperties_Inverse;
270     public final Resource entityReplacer;
271     public final Resource entityReplacer_Inverse;
272     public final Resource hasStandardResource;
273     public final Resource hasStandardResource_Inverse;
274     public final Resource identifier;
275     public final Resource identifier_Inverse;
276     public final Resource list;
277     public final Resource loadBytes;
278     public final Resource loadDataValue;
279     public final Resource loadString;
280     public final Resource new_;
281     public final Resource optionalProperty;
282     public final Resource orderedSet;
283     public final Resource property;
284     public final Resource readOnly;
285     public final Resource readOnly_Inverse;
286     public final Resource required;
287     public final Resource required_Inverse;
288     public final Resource scl;
289     public final Resource singleProperty;
290     public final Resource singlePropertyDefault;
291     public final Resource symmetric;
292     public final Resource tag;
293     public final Resource typeURI;
294     public final Resource typeURI_Inverse;
295     public final Resource valid;
296     public final Resource valid_Inverse;
297     public final Resource validator;
298     public final Resource validator_Inverse;
299     public final Resource valueAccessor;
300     public final Resource valueAccessor_Inverse;
301         
302     public static class URIs {
303         public static final String Abstract = "http://www.simantics.org/Layer0-1.1/Abstract";
304         public static final String Assertion = "http://www.simantics.org/Layer0-1.1/Assertion";
305         public static final String Asserts = "http://www.simantics.org/Layer0-1.1/Asserts";
306         public static final String Asserts_Inverse = "http://www.simantics.org/Layer0-1.1/Asserts/Inverse";
307         public static final String Boolean = "http://www.simantics.org/Layer0-1.1/Boolean";
308         public static final String BooleanArray = "http://www.simantics.org/Layer0-1.1/BooleanArray";
309         public static final String Byte = "http://www.simantics.org/Layer0-1.1/Byte";
310         public static final String ByteArray = "http://www.simantics.org/Layer0-1.1/ByteArray";
311         public static final String Cardinality0 = "http://www.simantics.org/Layer0-1.1/Cardinality0";
312         public static final String Cardinality1 = "http://www.simantics.org/Layer0-1.1/Cardinality1";
313         public static final String Cardinality2 = "http://www.simantics.org/Layer0-1.1/Cardinality2";
314         public static final String CardinalityAtLeast1 = "http://www.simantics.org/Layer0-1.1/CardinalityAtLeast1";
315         public static final String CardinalityAtMost1 = "http://www.simantics.org/Layer0-1.1/CardinalityAtMost1";
316         public static final String CardinalityRange = "http://www.simantics.org/Layer0-1.1/CardinalityRange";
317         public static final String ClusterSet = "http://www.simantics.org/Layer0-1.1/ClusterSet";
318         public static final String ConcernsRelation = "http://www.simantics.org/Layer0-1.1/ConcernsRelation";
319         public static final String ConcernsRelation_Inverse = "http://www.simantics.org/Layer0-1.1/ConcernsRelation/Inverse";
320         public static final String ConsistsOf = "http://www.simantics.org/Layer0-1.1/ConsistsOf";
321         public static final String Constraint = "http://www.simantics.org/Layer0-1.1/Constraint";
322         public static final String Constraint_Validator = "http://www.simantics.org/Layer0-1.1/Constraint/Validator";
323         public static final String Constraint_Validator_Inverse = "http://www.simantics.org/Layer0-1.1/Constraint/Validator/Inverse";
324         public static final String ConvertsToValueWith = "http://www.simantics.org/Layer0-1.1/ConvertsToValueWith";
325         public static final String ConvertsToValueWith_Inverse = "http://www.simantics.org/Layer0-1.1/ConvertsToValueWith/Inverse";
326         public static final String DataType = "http://www.simantics.org/Layer0-1.1/DataType";
327         public static final String DatabaseManagement = "http://www.simantics.org/Layer0-1.1/DatabaseManagement";
328         public static final String DatabaseManagement_Bundles = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/Bundles";
329         public static final String DatabaseManagement_GraphBundle = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/GraphBundle";
330         public static final String DatabaseManagement_HasFile = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/HasFile";
331         public static final String DatabaseManagement_HasFile_Inverse = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/HasFile/Inverse";
332         public static final String DatabaseManagement_HasHashCode = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/HasHashCode";
333         public static final String DatabaseManagement_HasHashCode_Inverse = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/HasHashCode/Inverse";
334         public static final String DatabaseManagement_HasInstallInfo = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/HasInstallInfo";
335         public static final String DatabaseManagement_HasInstallInfo_Inverse = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/HasInstallInfo/Inverse";
336         public static final String DatabaseManagement_HasVersionedId = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/HasVersionedId";
337         public static final String DatabaseManagement_HasVersionedId_Inverse = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/HasVersionedId/Inverse";
338         public static final String DatabaseManagement_InstallInfo = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/InstallInfo";
339         public static final String DatabaseManagement_InstalledGraphBundles = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/InstalledGraphBundles";
340         public static final String DatabaseManagement_OSGiSymbolicName = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/OSGiSymbolicName";
341         public static final String DatabaseManagement_OSGiVersion = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/OSGiVersion";
342         public static final String DatabaseManagement_VersionedId = "http://www.simantics.org/Layer0-1.1/DatabaseManagement/VersionedId";
343         public static final String DependsOn = "http://www.simantics.org/Layer0-1.1/DependsOn";
344         public static final String Deprecated = "http://www.simantics.org/Layer0-1.1/Deprecated";
345         public static final String DomainOf = "http://www.simantics.org/Layer0-1.1/DomainOf";
346         public static final String Double = "http://www.simantics.org/Layer0-1.1/Double";
347         public static final String DoubleArray = "http://www.simantics.org/Layer0-1.1/DoubleArray";
348         public static final String Entity = "http://www.simantics.org/Layer0-1.1/Entity";
349         public static final String Entity_ClusterConstraint = "http://www.simantics.org/Layer0-1.1/Entity/ClusterConstraint";
350         public static final String Entity_PropertyConstraint = "http://www.simantics.org/Layer0-1.1/Entity/PropertyConstraint";
351         public static final String Entity_RelationConstraint = "http://www.simantics.org/Layer0-1.1/Entity/RelationConstraint";
352         public static final String Entity_URIConstraint = "http://www.simantics.org/Layer0-1.1/Entity/URIConstraint";
353         public static final String Entity_ValueConstraint = "http://www.simantics.org/Layer0-1.1/Entity/ValueConstraint";
354         public static final String Entity_published = "http://www.simantics.org/Layer0-1.1/Entity/published";
355         public static final String Entity_published_Inverse = "http://www.simantics.org/Layer0-1.1/Entity/published/Inverse";
356         public static final String Enumeration = "http://www.simantics.org/Layer0-1.1/Enumeration";
357         public static final String ExternalValue = "http://www.simantics.org/Layer0-1.1/ExternalValue";
358         public static final String False = "http://www.simantics.org/Layer0-1.1/False";
359         public static final String Final = "http://www.simantics.org/Layer0-1.1/Final";
360         public static final String Float = "http://www.simantics.org/Layer0-1.1/Float";
361         public static final String FloatArray = "http://www.simantics.org/Layer0-1.1/FloatArray";
362         public static final String Function = "http://www.simantics.org/Layer0-1.1/Function";
363         public static final String FunctionalRelation = "http://www.simantics.org/Layer0-1.1/FunctionalRelation";
364         public static final String Functions = "http://www.simantics.org/Layer0-1.1/Functions";
365         public static final String Functions_booleanInputValidator = "http://www.simantics.org/Layer0-1.1/Functions/booleanInputValidator";
366         public static final String Functions_clusterValidator = "http://www.simantics.org/Layer0-1.1/Functions/clusterValidator";
367         public static final String Functions_composedPropertyValue = "http://www.simantics.org/Layer0-1.1/Functions/composedPropertyValue";
368         public static final String Functions_computeExpression = "http://www.simantics.org/Layer0-1.1/Functions/computeExpression";
369         public static final String Functions_entityLabel = "http://www.simantics.org/Layer0-1.1/Functions/entityLabel";
370         public static final String Functions_functionApplication = "http://www.simantics.org/Layer0-1.1/Functions/functionApplication";
371         public static final String Functions_hasStandardResource = "http://www.simantics.org/Layer0-1.1/Functions/hasStandardResource";
372         public static final String Functions_listResources = "http://www.simantics.org/Layer0-1.1/Functions/listResources";
373         public static final String Functions_numberInputValidator = "http://www.simantics.org/Layer0-1.1/Functions/numberInputValidator";
374         public static final String Functions_propertyValidator = "http://www.simantics.org/Layer0-1.1/Functions/propertyValidator";
375         public static final String Functions_relationValidator = "http://www.simantics.org/Layer0-1.1/Functions/relationValidator";
376         public static final String Functions_resourceAsValue = "http://www.simantics.org/Layer0-1.1/Functions/resourceAsValue";
377         public static final String Functions_standardChildDomainChildren = "http://www.simantics.org/Layer0-1.1/Functions/standardChildDomainChildren";
378         public static final String Functions_standardChildDomainProperties = "http://www.simantics.org/Layer0-1.1/Functions/standardChildDomainProperties";
379         public static final String Functions_standardClassifications = "http://www.simantics.org/Layer0-1.1/Functions/standardClassifications";
380         public static final String Functions_standardDefaultValue = "http://www.simantics.org/Layer0-1.1/Functions/standardDefaultValue";
381         public static final String Functions_standardPropertyDomainChildren = "http://www.simantics.org/Layer0-1.1/Functions/standardPropertyDomainChildren";
382         public static final String Functions_standardPropertyDomainProperties = "http://www.simantics.org/Layer0-1.1/Functions/standardPropertyDomainProperties";
383         public static final String Functions_standardReadOnlyValue = "http://www.simantics.org/Layer0-1.1/Functions/standardReadOnlyValue";
384         public static final String Functions_standardRequiredValue = "http://www.simantics.org/Layer0-1.1/Functions/standardRequiredValue";
385         public static final String Functions_standardValidValue = "http://www.simantics.org/Layer0-1.1/Functions/standardValidValue";
386         public static final String Functions_standardValidator = "http://www.simantics.org/Layer0-1.1/Functions/standardValidator";
387         public static final String Functions_standardValueAccessor = "http://www.simantics.org/Layer0-1.1/Functions/standardValueAccessor";
388         public static final String Functions_uriValidator = "http://www.simantics.org/Layer0-1.1/Functions/uriValidator";
389         public static final String Functions_valueValidator = "http://www.simantics.org/Layer0-1.1/Functions/valueValidator";
390         public static final String GUID = "http://www.simantics.org/Layer0-1.1/GUID";
391         public static final String Graph = "http://www.simantics.org/Layer0-1.1/Graph";
392         public static final String HasCardinalityRange = "http://www.simantics.org/Layer0-1.1/HasCardinalityRange";
393         public static final String HasCardinalityRange_Inverse = "http://www.simantics.org/Layer0-1.1/HasCardinalityRange/Inverse";
394         public static final String HasComment = "http://www.simantics.org/Layer0-1.1/HasComment";
395         public static final String HasComment_Inverse = "http://www.simantics.org/Layer0-1.1/HasComment/Inverse";
396         public static final String HasConstraint = "http://www.simantics.org/Layer0-1.1/HasConstraint";
397         public static final String HasConstraint_Inverse = "http://www.simantics.org/Layer0-1.1/HasConstraint/Inverse";
398         public static final String HasDataType = "http://www.simantics.org/Layer0-1.1/HasDataType";
399         public static final String HasDataType_Inverse = "http://www.simantics.org/Layer0-1.1/HasDataType/Inverse";
400         public static final String HasDefaultLiteralType = "http://www.simantics.org/Layer0-1.1/HasDefaultLiteralType";
401         public static final String HasDefaultLiteralType_Inverse = "http://www.simantics.org/Layer0-1.1/HasDefaultLiteralType/Inverse";
402         public static final String HasDescription = "http://www.simantics.org/Layer0-1.1/HasDescription";
403         public static final String HasDescription_Inverse = "http://www.simantics.org/Layer0-1.1/HasDescription/Inverse";
404         public static final String HasDomain = "http://www.simantics.org/Layer0-1.1/HasDomain";
405         @Deprecated public static final String HasElement = "http://www.simantics.org/Layer0-1.1/HasElement";
406         public static final String HasLabel = "http://www.simantics.org/Layer0-1.1/HasLabel";
407         public static final String HasLabel_Inverse = "http://www.simantics.org/Layer0-1.1/HasLabel/Inverse";
408         public static final String HasName = "http://www.simantics.org/Layer0-1.1/HasName";
409         public static final String HasNext = "http://www.simantics.org/Layer0-1.1/HasNext";
410         public static final String HasObject = "http://www.simantics.org/Layer0-1.1/HasObject";
411         public static final String HasObjectInverse = "http://www.simantics.org/Layer0-1.1/HasObjectInverse";
412         public static final String HasPredicate = "http://www.simantics.org/Layer0-1.1/HasPredicate";
413         public static final String HasPredicateInverse = "http://www.simantics.org/Layer0-1.1/HasPredicateInverse";
414         public static final String HasPrevious = "http://www.simantics.org/Layer0-1.1/HasPrevious";
415         public static final String HasProperty = "http://www.simantics.org/Layer0-1.1/HasProperty";
416         @Deprecated public static final String HasPropertyDefinition = "http://www.simantics.org/Layer0-1.1/HasPropertyDefinition";
417         public static final String HasRange = "http://www.simantics.org/Layer0-1.1/HasRange";
418         public static final String HasRange_Inverse = "http://www.simantics.org/Layer0-1.1/HasRange/Inverse";
419         public static final String HasResourceClass = "http://www.simantics.org/Layer0-1.1/HasResourceClass";
420         public static final String HasResourceClass_Inverse = "http://www.simantics.org/Layer0-1.1/HasResourceClass/Inverse";
421         public static final String HasSubliteralPredicate = "http://www.simantics.org/Layer0-1.1/HasSubliteralPredicate";
422         public static final String HasSubliteralPredicate_Inverse = "http://www.simantics.org/Layer0-1.1/HasSubliteralPredicate/Inverse";
423         public static final String HasTemplate = "http://www.simantics.org/Layer0-1.1/HasTemplate";
424         public static final String HasTemplateParameters = "http://www.simantics.org/Layer0-1.1/HasTemplateParameters";
425         public static final String HasTemplateParameters_Inverse = "http://www.simantics.org/Layer0-1.1/HasTemplateParameters/Inverse";
426         public static final String HasTemplate_Inverse = "http://www.simantics.org/Layer0-1.1/HasTemplate/Inverse";
427         public static final String HasValueType = "http://www.simantics.org/Layer0-1.1/HasValueType";
428         public static final String HasValueType_Inverse = "http://www.simantics.org/Layer0-1.1/HasValueType/Inverse";
429         public static final String Immutable = "http://www.simantics.org/Layer0-1.1/Immutable";
430         public static final String IndexRoot = "http://www.simantics.org/Layer0-1.1/IndexRoot";
431         public static final String IndexRootType = "http://www.simantics.org/Layer0-1.1/IndexRootType";
432         public static final String Inherits = "http://www.simantics.org/Layer0-1.1/Inherits";
433         public static final String InstanceOf = "http://www.simantics.org/Layer0-1.1/InstanceOf";
434         public static final String Integer = "http://www.simantics.org/Layer0-1.1/Integer";
435         public static final String IntegerArray = "http://www.simantics.org/Layer0-1.1/IntegerArray";
436         public static final String InverseOf = "http://www.simantics.org/Layer0-1.1/InverseOf";
437         public static final String IsComposedOf = "http://www.simantics.org/Layer0-1.1/IsComposedOf";
438         public static final String IsDependencyOf = "http://www.simantics.org/Layer0-1.1/IsDependencyOf";
439         public static final String IsLinkedTo = "http://www.simantics.org/Layer0-1.1/IsLinkedTo";
440         public static final String IsLinkedTo_Inverse = "http://www.simantics.org/Layer0-1.1/IsLinkedTo/Inverse";
441         public static final String IsOwnedBy = "http://www.simantics.org/Layer0-1.1/IsOwnedBy";
442         public static final String IsPropertyDefinitionOf = "http://www.simantics.org/Layer0-1.1/IsPropertyDefinitionOf";
443         public static final String IsRelatedTo = "http://www.simantics.org/Layer0-1.1/IsRelatedTo";
444         public static final String IsWeaklyRelatedTo = "http://www.simantics.org/Layer0-1.1/IsWeaklyRelatedTo";
445         public static final String Library = "http://www.simantics.org/Layer0-1.1/Library";
446         public static final String List = "http://www.simantics.org/Layer0-1.1/List";
447         public static final String List_Element = "http://www.simantics.org/Layer0-1.1/List/Element";
448         public static final String List_Entry = "http://www.simantics.org/Layer0-1.1/List/Entry";
449         public static final String List_Next = "http://www.simantics.org/Layer0-1.1/List/Next";
450         public static final String List_Previous = "http://www.simantics.org/Layer0-1.1/List/Previous";
451         public static final String Literal = "http://www.simantics.org/Layer0-1.1/Literal";
452         public static final String Literal_BooleanValidator = "http://www.simantics.org/Layer0-1.1/Literal/BooleanValidator";
453         public static final String Literal_ByteValidator = "http://www.simantics.org/Layer0-1.1/Literal/ByteValidator";
454         public static final String Literal_DoubleValidator = "http://www.simantics.org/Layer0-1.1/Literal/DoubleValidator";
455         public static final String Literal_FloatValidator = "http://www.simantics.org/Layer0-1.1/Literal/FloatValidator";
456         public static final String Literal_HasInputValidator = "http://www.simantics.org/Layer0-1.1/Literal/HasInputValidator";
457         public static final String Literal_HasInputValidator_Inverse = "http://www.simantics.org/Layer0-1.1/Literal/HasInputValidator/Inverse";
458         public static final String Literal_IntegerValidator = "http://www.simantics.org/Layer0-1.1/Literal/IntegerValidator";
459         public static final String Literal_LongValidator = "http://www.simantics.org/Layer0-1.1/Literal/LongValidator";
460         public static final String Long = "http://www.simantics.org/Layer0-1.1/Long";
461         public static final String LongArray = "http://www.simantics.org/Layer0-1.1/LongArray";
462         public static final String Migration = "http://www.simantics.org/Layer0-1.1/Migration";
463         public static final String MigrationSequence = "http://www.simantics.org/Layer0-1.1/MigrationSequence";
464         public static final String MigrationStep = "http://www.simantics.org/Layer0-1.1/MigrationStep";
465         public static final String MigrationStep_stepAction = "http://www.simantics.org/Layer0-1.1/MigrationStep/stepAction";
466         public static final String MigrationStep_stepAction_Inverse = "http://www.simantics.org/Layer0-1.1/MigrationStep/stepAction/Inverse";
467         public static final String Migration_format = "http://www.simantics.org/Layer0-1.1/Migration/format";
468         public static final String Migration_format_Inverse = "http://www.simantics.org/Layer0-1.1/Migration/format/Inverse";
469         public static final String Migration_from = "http://www.simantics.org/Layer0-1.1/Migration/from";
470         public static final String Migration_from_Inverse = "http://www.simantics.org/Layer0-1.1/Migration/from/Inverse";
471         public static final String Migration_priority = "http://www.simantics.org/Layer0-1.1/Migration/priority";
472         public static final String Migration_priority_Inverse = "http://www.simantics.org/Layer0-1.1/Migration/priority/Inverse";
473         public static final String Migration_step = "http://www.simantics.org/Layer0-1.1/Migration/step";
474         public static final String Migration_step_Inverse = "http://www.simantics.org/Layer0-1.1/Migration/step/Inverse";
475         public static final String NameOf = "http://www.simantics.org/Layer0-1.1/NameOf";
476         public static final String NamespaceMigrationStep = "http://www.simantics.org/Layer0-1.1/NamespaceMigrationStep";
477         public static final String NamespaceMigrationStep_Prefix = "http://www.simantics.org/Layer0-1.1/NamespaceMigrationStep/Prefix";
478         public static final String NamespaceMigrationStep_Prefix_base = "http://www.simantics.org/Layer0-1.1/NamespaceMigrationStep/Prefix/base";
479         public static final String NamespaceMigrationStep_Prefix_base_Inverse = "http://www.simantics.org/Layer0-1.1/NamespaceMigrationStep/Prefix/base/Inverse";
480         public static final String NamespaceMigrationStep_Prefix_from = "http://www.simantics.org/Layer0-1.1/NamespaceMigrationStep/Prefix/from";
481         public static final String NamespaceMigrationStep_Prefix_from_Inverse = "http://www.simantics.org/Layer0-1.1/NamespaceMigrationStep/Prefix/from/Inverse";
482         public static final String NamespaceMigrationStep_Prefix_to = "http://www.simantics.org/Layer0-1.1/NamespaceMigrationStep/Prefix/to";
483         public static final String NamespaceMigrationStep_Prefix_to_Inverse = "http://www.simantics.org/Layer0-1.1/NamespaceMigrationStep/Prefix/to/Inverse";
484         public static final String Ontology = "http://www.simantics.org/Layer0-1.1/Ontology";
485         public static final String Ontology_global = "http://www.simantics.org/Layer0-1.1/Ontology/global";
486         public static final String Ontology_global_Inverse = "http://www.simantics.org/Layer0-1.1/Ontology/global/Inverse";
487         public static final String OrderedSet = "http://www.simantics.org/Layer0-1.1/OrderedSet";
488         public static final String OrderedSetToListMigrationStep = "http://www.simantics.org/Layer0-1.1/OrderedSetToListMigrationStep";
489         public static final String OrderedSetToListMigrationStep_Change = "http://www.simantics.org/Layer0-1.1/OrderedSetToListMigrationStep/Change";
490         public static final String OrderedSetToListMigrationStep_entityType = "http://www.simantics.org/Layer0-1.1/OrderedSetToListMigrationStep/entityType";
491         public static final String OrderedSetToListMigrationStep_listRelation = "http://www.simantics.org/Layer0-1.1/OrderedSetToListMigrationStep/listRelation";
492         public static final String OrderedSetToListMigrationStep_listType = "http://www.simantics.org/Layer0-1.1/OrderedSetToListMigrationStep/listType";
493         public static final String OrderedSetToListMigrationStep_orderedSetRelation = "http://www.simantics.org/Layer0-1.1/OrderedSetToListMigrationStep/orderedSetRelation";
494         public static final String OrderedSetToListMigrationStep_orderedSetType = "http://www.simantics.org/Layer0-1.1/OrderedSetToListMigrationStep/orderedSetType";
495         public static final String PGraph = "http://www.simantics.org/Layer0-1.1/PGraph";
496         public static final String PGraph_definition = "http://www.simantics.org/Layer0-1.1/PGraph/definition";
497         public static final String PGraph_definition_Inverse = "http://www.simantics.org/Layer0-1.1/PGraph/definition/Inverse";
498         public static final String PartOf = "http://www.simantics.org/Layer0-1.1/PartOf";
499         @Deprecated public static final String Property = "http://www.simantics.org/Layer0-1.1/Property";
500         @Deprecated public static final String PropertyDefinition = "http://www.simantics.org/Layer0-1.1/PropertyDefinition";
501         public static final String PropertyOf = "http://www.simantics.org/Layer0-1.1/PropertyOf";
502         public static final String PropertyRelation = "http://www.simantics.org/Layer0-1.1/PropertyRelation";
503         public static final String RVI = "http://www.simantics.org/Layer0-1.1/RVI";
504         public static final String RVIContext = "http://www.simantics.org/Layer0-1.1/RVIContext";
505         public static final String Relation = "http://www.simantics.org/Layer0-1.1/Relation";
506         public static final String RequiresValueType = "http://www.simantics.org/Layer0-1.1/RequiresValueType";
507         public static final String RequiresValueType_Inverse = "http://www.simantics.org/Layer0-1.1/RequiresValueType/Inverse";
508         public static final String ResourceIdArray = "http://www.simantics.org/Layer0-1.1/ResourceIdArray";
509         public static final String RevisionId = "http://www.simantics.org/Layer0-1.1/RevisionId";
510         public static final String SCLMigrationStep = "http://www.simantics.org/Layer0-1.1/SCLMigrationStep";
511         public static final String SCLMigrationStep_SCLMigrationStepAction = "http://www.simantics.org/Layer0-1.1/SCLMigrationStep/SCLMigrationStepAction";
512         public static final String SCLModule = "http://www.simantics.org/Layer0-1.1/SCLModule";
513         public static final String SCLModule_alias = "http://www.simantics.org/Layer0-1.1/SCLModule/alias";
514         public static final String SCLModule_alias_Inverse = "http://www.simantics.org/Layer0-1.1/SCLModule/alias/Inverse";
515         public static final String SCLModule_definition = "http://www.simantics.org/Layer0-1.1/SCLModule/definition";
516         public static final String SCLModule_definition_Inverse = "http://www.simantics.org/Layer0-1.1/SCLModule/definition/Inverse";
517         public static final String SCLValue = "http://www.simantics.org/Layer0-1.1/SCLValue";
518         public static final String SCLValue_Environment = "http://www.simantics.org/Layer0-1.1/SCLValue/Environment";
519         public static final String SCLValue_Environment_moduleName = "http://www.simantics.org/Layer0-1.1/SCLValue/Environment/moduleName";
520         public static final String SCLValue_Environment_moduleName_Inverse = "http://www.simantics.org/Layer0-1.1/SCLValue/Environment/moduleName/Inverse";
521         public static final String SCLValue_Environment_namespace = "http://www.simantics.org/Layer0-1.1/SCLValue/Environment/namespace";
522         public static final String SCLValue_Environment_namespace_Inverse = "http://www.simantics.org/Layer0-1.1/SCLValue/Environment/namespace/Inverse";
523         public static final String SCLValue_Environment_uses = "http://www.simantics.org/Layer0-1.1/SCLValue/Environment/uses";
524         public static final String SCLValue_environment = "http://www.simantics.org/Layer0-1.1/SCLValue/environment";
525         public static final String SCLValue_expression = "http://www.simantics.org/Layer0-1.1/SCLValue/expression";
526         public static final String SCLValue_expression_Inverse = "http://www.simantics.org/Layer0-1.1/SCLValue/expression/Inverse";
527         public static final String SharedOntology = "http://www.simantics.org/Layer0-1.1/SharedOntology";
528         public static final String SharedOntology_tg = "http://www.simantics.org/Layer0-1.1/SharedOntology/tg";
529         public static final String SharedOntology_tgResources = "http://www.simantics.org/Layer0-1.1/SharedOntology/tgResources";
530         public static final String SharedOntology_tgResources_Inverse = "http://www.simantics.org/Layer0-1.1/SharedOntology/tgResources/Inverse";
531         public static final String SharedOntology_tg_Inverse = "http://www.simantics.org/Layer0-1.1/SharedOntology/tg/Inverse";
532         public static final String SharedOntology_treatAsSystemOntology = "http://www.simantics.org/Layer0-1.1/SharedOntology/treatAsSystemOntology";
533         public static final String SharedOntology_treatAsSystemOntology_Inverse = "http://www.simantics.org/Layer0-1.1/SharedOntology/treatAsSystemOntology/Inverse";
534         public static final String SharedRange = "http://www.simantics.org/Layer0-1.1/SharedRange";
535         public static final String String = "http://www.simantics.org/Layer0-1.1/String";
536         public static final String StringArray = "http://www.simantics.org/Layer0-1.1/StringArray";
537         public static final String SubrelationOf = "http://www.simantics.org/Layer0-1.1/SubrelationOf";
538         public static final String SuperrelationOf = "http://www.simantics.org/Layer0-1.1/SuperrelationOf";
539         public static final String SupertypeOf = "http://www.simantics.org/Layer0-1.1/SupertypeOf";
540         public static final String Tag = "http://www.simantics.org/Layer0-1.1/Tag";
541         public static final String Template = "http://www.simantics.org/Layer0-1.1/Template";
542         public static final String TotalFunction = "http://www.simantics.org/Layer0-1.1/TotalFunction";
543         public static final String True = "http://www.simantics.org/Layer0-1.1/True";
544         public static final String Type = "http://www.simantics.org/Layer0-1.1/Type";
545         public static final String TypeWithIdentifier = "http://www.simantics.org/Layer0-1.1/TypeWithIdentifier";
546         public static final String URI = "http://www.simantics.org/Layer0-1.1/URI";
547         public static final String Value = "http://www.simantics.org/Layer0-1.1/Value";
548         public static final String Variant = "http://www.simantics.org/Layer0-1.1/Variant";
549         public static final String VariantArray = "http://www.simantics.org/Layer0-1.1/VariantArray";
550         public static final String assert_ = "http://www.simantics.org/Layer0-1.1/assert";
551         public static final String classifications = "http://www.simantics.org/Layer0-1.1/classifications";
552         public static final String classifications_Inverse = "http://www.simantics.org/Layer0-1.1/classifications/Inverse";
553         public static final String defTag = "http://www.simantics.org/Layer0-1.1/defTag";
554         public static final String default_ = "http://www.simantics.org/Layer0-1.1/default";
555         public static final String default_Inverse = "http://www.simantics.org/Layer0-1.1/default/Inverse";
556         public static final String domainChildren = "http://www.simantics.org/Layer0-1.1/domainChildren";
557         public static final String domainChildren_Inverse = "http://www.simantics.org/Layer0-1.1/domainChildren/Inverse";
558         public static final String domainProperties = "http://www.simantics.org/Layer0-1.1/domainProperties";
559         public static final String domainProperties_Inverse = "http://www.simantics.org/Layer0-1.1/domainProperties/Inverse";
560         public static final String entityReplacer = "http://www.simantics.org/Layer0-1.1/entityReplacer";
561         public static final String entityReplacer_Inverse = "http://www.simantics.org/Layer0-1.1/entityReplacer/Inverse";
562         public static final String hasStandardResource = "http://www.simantics.org/Layer0-1.1/hasStandardResource";
563         public static final String hasStandardResource_Inverse = "http://www.simantics.org/Layer0-1.1/hasStandardResource/Inverse";
564         public static final String identifier = "http://www.simantics.org/Layer0-1.1/identifier";
565         public static final String identifier_Inverse = "http://www.simantics.org/Layer0-1.1/identifier/Inverse";
566         public static final String list = "http://www.simantics.org/Layer0-1.1/list";
567         public static final String loadBytes = "http://www.simantics.org/Layer0-1.1/loadBytes";
568         public static final String loadDataValue = "http://www.simantics.org/Layer0-1.1/loadDataValue";
569         public static final String loadString = "http://www.simantics.org/Layer0-1.1/loadString";
570         public static final String new_ = "http://www.simantics.org/Layer0-1.1/new";
571         public static final String optionalProperty = "http://www.simantics.org/Layer0-1.1/optionalProperty";
572         public static final String orderedSet = "http://www.simantics.org/Layer0-1.1/orderedSet";
573         public static final String property = "http://www.simantics.org/Layer0-1.1/property";
574         public static final String readOnly = "http://www.simantics.org/Layer0-1.1/readOnly";
575         public static final String readOnly_Inverse = "http://www.simantics.org/Layer0-1.1/readOnly/Inverse";
576         public static final String required = "http://www.simantics.org/Layer0-1.1/required";
577         public static final String required_Inverse = "http://www.simantics.org/Layer0-1.1/required/Inverse";
578         public static final String scl = "http://www.simantics.org/Layer0-1.1/scl";
579         public static final String singleProperty = "http://www.simantics.org/Layer0-1.1/singleProperty";
580         public static final String singlePropertyDefault = "http://www.simantics.org/Layer0-1.1/singlePropertyDefault";
581         public static final String symmetric = "http://www.simantics.org/Layer0-1.1/symmetric";
582         public static final String tag = "http://www.simantics.org/Layer0-1.1/tag";
583         public static final String typeURI = "http://www.simantics.org/Layer0-1.1/typeURI";
584         public static final String typeURI_Inverse = "http://www.simantics.org/Layer0-1.1/typeURI/Inverse";
585         public static final String valid = "http://www.simantics.org/Layer0-1.1/valid";
586         public static final String valid_Inverse = "http://www.simantics.org/Layer0-1.1/valid/Inverse";
587         public static final String validator = "http://www.simantics.org/Layer0-1.1/validator";
588         public static final String validator_Inverse = "http://www.simantics.org/Layer0-1.1/validator/Inverse";
589         public static final String valueAccessor = "http://www.simantics.org/Layer0-1.1/valueAccessor";
590         public static final String valueAccessor_Inverse = "http://www.simantics.org/Layer0-1.1/valueAccessor/Inverse";
591     }
592     
593     public static Resource getResourceOrNull(ReadGraph graph, String uri) {
594         try {
595             return graph.getResource(uri);
596         } catch(DatabaseException e) {
597             System.err.println(e.getMessage());
598             return null;
599         }
600     }
601     
602     public Layer0(ReadGraph graph) {
603         Abstract = getResourceOrNull(graph, URIs.Abstract);
604         Assertion = getResourceOrNull(graph, URIs.Assertion);
605         Asserts = getResourceOrNull(graph, URIs.Asserts);
606         Asserts_Inverse = getResourceOrNull(graph, URIs.Asserts_Inverse);
607         Boolean = getResourceOrNull(graph, URIs.Boolean);
608         BooleanArray = getResourceOrNull(graph, URIs.BooleanArray);
609         Byte = getResourceOrNull(graph, URIs.Byte);
610         ByteArray = getResourceOrNull(graph, URIs.ByteArray);
611         Cardinality0 = getResourceOrNull(graph, URIs.Cardinality0);
612         Cardinality1 = getResourceOrNull(graph, URIs.Cardinality1);
613         Cardinality2 = getResourceOrNull(graph, URIs.Cardinality2);
614         CardinalityAtLeast1 = getResourceOrNull(graph, URIs.CardinalityAtLeast1);
615         CardinalityAtMost1 = getResourceOrNull(graph, URIs.CardinalityAtMost1);
616         CardinalityRange = getResourceOrNull(graph, URIs.CardinalityRange);
617         ClusterSet = getResourceOrNull(graph, URIs.ClusterSet);
618         ConcernsRelation = getResourceOrNull(graph, URIs.ConcernsRelation);
619         ConcernsRelation_Inverse = getResourceOrNull(graph, URIs.ConcernsRelation_Inverse);
620         ConsistsOf = getResourceOrNull(graph, URIs.ConsistsOf);
621         Constraint = getResourceOrNull(graph, URIs.Constraint);
622         Constraint_Validator = getResourceOrNull(graph, URIs.Constraint_Validator);
623         Constraint_Validator_Inverse = getResourceOrNull(graph, URIs.Constraint_Validator_Inverse);
624         ConvertsToValueWith = getResourceOrNull(graph, URIs.ConvertsToValueWith);
625         ConvertsToValueWith_Inverse = getResourceOrNull(graph, URIs.ConvertsToValueWith_Inverse);
626         DataType = getResourceOrNull(graph, URIs.DataType);
627         DatabaseManagement = getResourceOrNull(graph, URIs.DatabaseManagement);
628         DatabaseManagement_Bundles = getResourceOrNull(graph, URIs.DatabaseManagement_Bundles);
629         DatabaseManagement_GraphBundle = getResourceOrNull(graph, URIs.DatabaseManagement_GraphBundle);
630         DatabaseManagement_HasFile = getResourceOrNull(graph, URIs.DatabaseManagement_HasFile);
631         DatabaseManagement_HasFile_Inverse = getResourceOrNull(graph, URIs.DatabaseManagement_HasFile_Inverse);
632         DatabaseManagement_HasHashCode = getResourceOrNull(graph, URIs.DatabaseManagement_HasHashCode);
633         DatabaseManagement_HasHashCode_Inverse = getResourceOrNull(graph, URIs.DatabaseManagement_HasHashCode_Inverse);
634         DatabaseManagement_HasInstallInfo = getResourceOrNull(graph, URIs.DatabaseManagement_HasInstallInfo);
635         DatabaseManagement_HasInstallInfo_Inverse = getResourceOrNull(graph, URIs.DatabaseManagement_HasInstallInfo_Inverse);
636         DatabaseManagement_HasVersionedId = getResourceOrNull(graph, URIs.DatabaseManagement_HasVersionedId);
637         DatabaseManagement_HasVersionedId_Inverse = getResourceOrNull(graph, URIs.DatabaseManagement_HasVersionedId_Inverse);
638         DatabaseManagement_InstallInfo = getResourceOrNull(graph, URIs.DatabaseManagement_InstallInfo);
639         DatabaseManagement_InstalledGraphBundles = getResourceOrNull(graph, URIs.DatabaseManagement_InstalledGraphBundles);
640         DatabaseManagement_OSGiSymbolicName = getResourceOrNull(graph, URIs.DatabaseManagement_OSGiSymbolicName);
641         DatabaseManagement_OSGiVersion = getResourceOrNull(graph, URIs.DatabaseManagement_OSGiVersion);
642         DatabaseManagement_VersionedId = getResourceOrNull(graph, URIs.DatabaseManagement_VersionedId);
643         DependsOn = getResourceOrNull(graph, URIs.DependsOn);
644         Deprecated = getResourceOrNull(graph, URIs.Deprecated);
645         DomainOf = getResourceOrNull(graph, URIs.DomainOf);
646         Double = getResourceOrNull(graph, URIs.Double);
647         DoubleArray = getResourceOrNull(graph, URIs.DoubleArray);
648         Entity = getResourceOrNull(graph, URIs.Entity);
649         Entity_ClusterConstraint = getResourceOrNull(graph, URIs.Entity_ClusterConstraint);
650         Entity_PropertyConstraint = getResourceOrNull(graph, URIs.Entity_PropertyConstraint);
651         Entity_RelationConstraint = getResourceOrNull(graph, URIs.Entity_RelationConstraint);
652         Entity_URIConstraint = getResourceOrNull(graph, URIs.Entity_URIConstraint);
653         Entity_ValueConstraint = getResourceOrNull(graph, URIs.Entity_ValueConstraint);
654         Entity_published = getResourceOrNull(graph, URIs.Entity_published);
655         Entity_published_Inverse = getResourceOrNull(graph, URIs.Entity_published_Inverse);
656         Enumeration = getResourceOrNull(graph, URIs.Enumeration);
657         ExternalValue = getResourceOrNull(graph, URIs.ExternalValue);
658         False = getResourceOrNull(graph, URIs.False);
659         Final = getResourceOrNull(graph, URIs.Final);
660         Float = getResourceOrNull(graph, URIs.Float);
661         FloatArray = getResourceOrNull(graph, URIs.FloatArray);
662         Function = getResourceOrNull(graph, URIs.Function);
663         FunctionalRelation = getResourceOrNull(graph, URIs.FunctionalRelation);
664         Functions = getResourceOrNull(graph, URIs.Functions);
665         Functions_booleanInputValidator = getResourceOrNull(graph, URIs.Functions_booleanInputValidator);
666         Functions_clusterValidator = getResourceOrNull(graph, URIs.Functions_clusterValidator);
667         Functions_composedPropertyValue = getResourceOrNull(graph, URIs.Functions_composedPropertyValue);
668         Functions_computeExpression = getResourceOrNull(graph, URIs.Functions_computeExpression);
669         Functions_entityLabel = getResourceOrNull(graph, URIs.Functions_entityLabel);
670         Functions_functionApplication = getResourceOrNull(graph, URIs.Functions_functionApplication);
671         Functions_hasStandardResource = getResourceOrNull(graph, URIs.Functions_hasStandardResource);
672         Functions_listResources = getResourceOrNull(graph, URIs.Functions_listResources);
673         Functions_numberInputValidator = getResourceOrNull(graph, URIs.Functions_numberInputValidator);
674         Functions_propertyValidator = getResourceOrNull(graph, URIs.Functions_propertyValidator);
675         Functions_relationValidator = getResourceOrNull(graph, URIs.Functions_relationValidator);
676         Functions_resourceAsValue = getResourceOrNull(graph, URIs.Functions_resourceAsValue);
677         Functions_standardChildDomainChildren = getResourceOrNull(graph, URIs.Functions_standardChildDomainChildren);
678         Functions_standardChildDomainProperties = getResourceOrNull(graph, URIs.Functions_standardChildDomainProperties);
679         Functions_standardClassifications = getResourceOrNull(graph, URIs.Functions_standardClassifications);
680         Functions_standardDefaultValue = getResourceOrNull(graph, URIs.Functions_standardDefaultValue);
681         Functions_standardPropertyDomainChildren = getResourceOrNull(graph, URIs.Functions_standardPropertyDomainChildren);
682         Functions_standardPropertyDomainProperties = getResourceOrNull(graph, URIs.Functions_standardPropertyDomainProperties);
683         Functions_standardReadOnlyValue = getResourceOrNull(graph, URIs.Functions_standardReadOnlyValue);
684         Functions_standardRequiredValue = getResourceOrNull(graph, URIs.Functions_standardRequiredValue);
685         Functions_standardValidValue = getResourceOrNull(graph, URIs.Functions_standardValidValue);
686         Functions_standardValidator = getResourceOrNull(graph, URIs.Functions_standardValidator);
687         Functions_standardValueAccessor = getResourceOrNull(graph, URIs.Functions_standardValueAccessor);
688         Functions_uriValidator = getResourceOrNull(graph, URIs.Functions_uriValidator);
689         Functions_valueValidator = getResourceOrNull(graph, URIs.Functions_valueValidator);
690         GUID = getResourceOrNull(graph, URIs.GUID);
691         Graph = getResourceOrNull(graph, URIs.Graph);
692         HasCardinalityRange = getResourceOrNull(graph, URIs.HasCardinalityRange);
693         HasCardinalityRange_Inverse = getResourceOrNull(graph, URIs.HasCardinalityRange_Inverse);
694         HasComment = getResourceOrNull(graph, URIs.HasComment);
695         HasComment_Inverse = getResourceOrNull(graph, URIs.HasComment_Inverse);
696         HasConstraint = getResourceOrNull(graph, URIs.HasConstraint);
697         HasConstraint_Inverse = getResourceOrNull(graph, URIs.HasConstraint_Inverse);
698         HasDataType = getResourceOrNull(graph, URIs.HasDataType);
699         HasDataType_Inverse = getResourceOrNull(graph, URIs.HasDataType_Inverse);
700         HasDefaultLiteralType = getResourceOrNull(graph, URIs.HasDefaultLiteralType);
701         HasDefaultLiteralType_Inverse = getResourceOrNull(graph, URIs.HasDefaultLiteralType_Inverse);
702         HasDescription = getResourceOrNull(graph, URIs.HasDescription);
703         HasDescription_Inverse = getResourceOrNull(graph, URIs.HasDescription_Inverse);
704         HasDomain = getResourceOrNull(graph, URIs.HasDomain);
705         HasElement = getResourceOrNull(graph, URIs.HasElement);
706         HasLabel = getResourceOrNull(graph, URIs.HasLabel);
707         HasLabel_Inverse = getResourceOrNull(graph, URIs.HasLabel_Inverse);
708         HasName = getResourceOrNull(graph, URIs.HasName);
709         HasNext = getResourceOrNull(graph, URIs.HasNext);
710         HasObject = getResourceOrNull(graph, URIs.HasObject);
711         HasObjectInverse = getResourceOrNull(graph, URIs.HasObjectInverse);
712         HasPredicate = getResourceOrNull(graph, URIs.HasPredicate);
713         HasPredicateInverse = getResourceOrNull(graph, URIs.HasPredicateInverse);
714         HasPrevious = getResourceOrNull(graph, URIs.HasPrevious);
715         HasProperty = getResourceOrNull(graph, URIs.HasProperty);
716         HasPropertyDefinition = getResourceOrNull(graph, URIs.HasPropertyDefinition);
717         HasRange = getResourceOrNull(graph, URIs.HasRange);
718         HasRange_Inverse = getResourceOrNull(graph, URIs.HasRange_Inverse);
719         HasResourceClass = getResourceOrNull(graph, URIs.HasResourceClass);
720         HasResourceClass_Inverse = getResourceOrNull(graph, URIs.HasResourceClass_Inverse);
721         HasSubliteralPredicate = getResourceOrNull(graph, URIs.HasSubliteralPredicate);
722         HasSubliteralPredicate_Inverse = getResourceOrNull(graph, URIs.HasSubliteralPredicate_Inverse);
723         HasTemplate = getResourceOrNull(graph, URIs.HasTemplate);
724         HasTemplateParameters = getResourceOrNull(graph, URIs.HasTemplateParameters);
725         HasTemplateParameters_Inverse = getResourceOrNull(graph, URIs.HasTemplateParameters_Inverse);
726         HasTemplate_Inverse = getResourceOrNull(graph, URIs.HasTemplate_Inverse);
727         HasValueType = getResourceOrNull(graph, URIs.HasValueType);
728         HasValueType_Inverse = getResourceOrNull(graph, URIs.HasValueType_Inverse);
729         Immutable = getResourceOrNull(graph, URIs.Immutable);
730         IndexRoot = getResourceOrNull(graph, URIs.IndexRoot);
731         IndexRootType = getResourceOrNull(graph, URIs.IndexRootType);
732         Inherits = getResourceOrNull(graph, URIs.Inherits);
733         InstanceOf = getResourceOrNull(graph, URIs.InstanceOf);
734         Integer = getResourceOrNull(graph, URIs.Integer);
735         IntegerArray = getResourceOrNull(graph, URIs.IntegerArray);
736         InverseOf = getResourceOrNull(graph, URIs.InverseOf);
737         IsComposedOf = getResourceOrNull(graph, URIs.IsComposedOf);
738         IsDependencyOf = getResourceOrNull(graph, URIs.IsDependencyOf);
739         IsLinkedTo = getResourceOrNull(graph, URIs.IsLinkedTo);
740         IsLinkedTo_Inverse = getResourceOrNull(graph, URIs.IsLinkedTo_Inverse);
741         IsOwnedBy = getResourceOrNull(graph, URIs.IsOwnedBy);
742         IsPropertyDefinitionOf = getResourceOrNull(graph, URIs.IsPropertyDefinitionOf);
743         IsRelatedTo = getResourceOrNull(graph, URIs.IsRelatedTo);
744         IsWeaklyRelatedTo = getResourceOrNull(graph, URIs.IsWeaklyRelatedTo);
745         Library = getResourceOrNull(graph, URIs.Library);
746         List = getResourceOrNull(graph, URIs.List);
747         List_Element = getResourceOrNull(graph, URIs.List_Element);
748         List_Entry = getResourceOrNull(graph, URIs.List_Entry);
749         List_Next = getResourceOrNull(graph, URIs.List_Next);
750         List_Previous = getResourceOrNull(graph, URIs.List_Previous);
751         Literal = getResourceOrNull(graph, URIs.Literal);
752         Literal_BooleanValidator = getResourceOrNull(graph, URIs.Literal_BooleanValidator);
753         Literal_ByteValidator = getResourceOrNull(graph, URIs.Literal_ByteValidator);
754         Literal_DoubleValidator = getResourceOrNull(graph, URIs.Literal_DoubleValidator);
755         Literal_FloatValidator = getResourceOrNull(graph, URIs.Literal_FloatValidator);
756         Literal_HasInputValidator = getResourceOrNull(graph, URIs.Literal_HasInputValidator);
757         Literal_HasInputValidator_Inverse = getResourceOrNull(graph, URIs.Literal_HasInputValidator_Inverse);
758         Literal_IntegerValidator = getResourceOrNull(graph, URIs.Literal_IntegerValidator);
759         Literal_LongValidator = getResourceOrNull(graph, URIs.Literal_LongValidator);
760         Long = getResourceOrNull(graph, URIs.Long);
761         LongArray = getResourceOrNull(graph, URIs.LongArray);
762         Migration = getResourceOrNull(graph, URIs.Migration);
763         MigrationSequence = getResourceOrNull(graph, URIs.MigrationSequence);
764         MigrationStep = getResourceOrNull(graph, URIs.MigrationStep);
765         MigrationStep_stepAction = getResourceOrNull(graph, URIs.MigrationStep_stepAction);
766         MigrationStep_stepAction_Inverse = getResourceOrNull(graph, URIs.MigrationStep_stepAction_Inverse);
767         Migration_format = getResourceOrNull(graph, URIs.Migration_format);
768         Migration_format_Inverse = getResourceOrNull(graph, URIs.Migration_format_Inverse);
769         Migration_from = getResourceOrNull(graph, URIs.Migration_from);
770         Migration_from_Inverse = getResourceOrNull(graph, URIs.Migration_from_Inverse);
771         Migration_priority = getResourceOrNull(graph, URIs.Migration_priority);
772         Migration_priority_Inverse = getResourceOrNull(graph, URIs.Migration_priority_Inverse);
773         Migration_step = getResourceOrNull(graph, URIs.Migration_step);
774         Migration_step_Inverse = getResourceOrNull(graph, URIs.Migration_step_Inverse);
775         NameOf = getResourceOrNull(graph, URIs.NameOf);
776         NamespaceMigrationStep = getResourceOrNull(graph, URIs.NamespaceMigrationStep);
777         NamespaceMigrationStep_Prefix = getResourceOrNull(graph, URIs.NamespaceMigrationStep_Prefix);
778         NamespaceMigrationStep_Prefix_base = getResourceOrNull(graph, URIs.NamespaceMigrationStep_Prefix_base);
779         NamespaceMigrationStep_Prefix_base_Inverse = getResourceOrNull(graph, URIs.NamespaceMigrationStep_Prefix_base_Inverse);
780         NamespaceMigrationStep_Prefix_from = getResourceOrNull(graph, URIs.NamespaceMigrationStep_Prefix_from);
781         NamespaceMigrationStep_Prefix_from_Inverse = getResourceOrNull(graph, URIs.NamespaceMigrationStep_Prefix_from_Inverse);
782         NamespaceMigrationStep_Prefix_to = getResourceOrNull(graph, URIs.NamespaceMigrationStep_Prefix_to);
783         NamespaceMigrationStep_Prefix_to_Inverse = getResourceOrNull(graph, URIs.NamespaceMigrationStep_Prefix_to_Inverse);
784         Ontology = getResourceOrNull(graph, URIs.Ontology);
785         Ontology_global = getResourceOrNull(graph, URIs.Ontology_global);
786         Ontology_global_Inverse = getResourceOrNull(graph, URIs.Ontology_global_Inverse);
787         OrderedSet = getResourceOrNull(graph, URIs.OrderedSet);
788         OrderedSetToListMigrationStep = getResourceOrNull(graph, URIs.OrderedSetToListMigrationStep);
789         OrderedSetToListMigrationStep_Change = getResourceOrNull(graph, URIs.OrderedSetToListMigrationStep_Change);
790         OrderedSetToListMigrationStep_entityType = getResourceOrNull(graph, URIs.OrderedSetToListMigrationStep_entityType);
791         OrderedSetToListMigrationStep_listRelation = getResourceOrNull(graph, URIs.OrderedSetToListMigrationStep_listRelation);
792         OrderedSetToListMigrationStep_listType = getResourceOrNull(graph, URIs.OrderedSetToListMigrationStep_listType);
793         OrderedSetToListMigrationStep_orderedSetRelation = getResourceOrNull(graph, URIs.OrderedSetToListMigrationStep_orderedSetRelation);
794         OrderedSetToListMigrationStep_orderedSetType = getResourceOrNull(graph, URIs.OrderedSetToListMigrationStep_orderedSetType);
795         PGraph = getResourceOrNull(graph, URIs.PGraph);
796         PGraph_definition = getResourceOrNull(graph, URIs.PGraph_definition);
797         PGraph_definition_Inverse = getResourceOrNull(graph, URIs.PGraph_definition_Inverse);
798         PartOf = getResourceOrNull(graph, URIs.PartOf);
799         Property = getResourceOrNull(graph, URIs.Property);
800         PropertyDefinition = getResourceOrNull(graph, URIs.PropertyDefinition);
801         PropertyOf = getResourceOrNull(graph, URIs.PropertyOf);
802         PropertyRelation = getResourceOrNull(graph, URIs.PropertyRelation);
803         RVI = getResourceOrNull(graph, URIs.RVI);
804         RVIContext = getResourceOrNull(graph, URIs.RVIContext);
805         Relation = getResourceOrNull(graph, URIs.Relation);
806         RequiresValueType = getResourceOrNull(graph, URIs.RequiresValueType);
807         RequiresValueType_Inverse = getResourceOrNull(graph, URIs.RequiresValueType_Inverse);
808         ResourceIdArray = getResourceOrNull(graph, URIs.ResourceIdArray);
809         RevisionId = getResourceOrNull(graph, URIs.RevisionId);
810         SCLMigrationStep = getResourceOrNull(graph, URIs.SCLMigrationStep);
811         SCLMigrationStep_SCLMigrationStepAction = getResourceOrNull(graph, URIs.SCLMigrationStep_SCLMigrationStepAction);
812         SCLModule = getResourceOrNull(graph, URIs.SCLModule);
813         SCLModule_alias = getResourceOrNull(graph, URIs.SCLModule_alias);
814         SCLModule_alias_Inverse = getResourceOrNull(graph, URIs.SCLModule_alias_Inverse);
815         SCLModule_definition = getResourceOrNull(graph, URIs.SCLModule_definition);
816         SCLModule_definition_Inverse = getResourceOrNull(graph, URIs.SCLModule_definition_Inverse);
817         SCLValue = getResourceOrNull(graph, URIs.SCLValue);
818         SCLValue_Environment = getResourceOrNull(graph, URIs.SCLValue_Environment);
819         SCLValue_Environment_moduleName = getResourceOrNull(graph, URIs.SCLValue_Environment_moduleName);
820         SCLValue_Environment_moduleName_Inverse = getResourceOrNull(graph, URIs.SCLValue_Environment_moduleName_Inverse);
821         SCLValue_Environment_namespace = getResourceOrNull(graph, URIs.SCLValue_Environment_namespace);
822         SCLValue_Environment_namespace_Inverse = getResourceOrNull(graph, URIs.SCLValue_Environment_namespace_Inverse);
823         SCLValue_Environment_uses = getResourceOrNull(graph, URIs.SCLValue_Environment_uses);
824         SCLValue_environment = getResourceOrNull(graph, URIs.SCLValue_environment);
825         SCLValue_expression = getResourceOrNull(graph, URIs.SCLValue_expression);
826         SCLValue_expression_Inverse = getResourceOrNull(graph, URIs.SCLValue_expression_Inverse);
827         SharedOntology = getResourceOrNull(graph, URIs.SharedOntology);
828         SharedOntology_tg = getResourceOrNull(graph, URIs.SharedOntology_tg);
829         SharedOntology_tgResources = getResourceOrNull(graph, URIs.SharedOntology_tgResources);
830         SharedOntology_tgResources_Inverse = getResourceOrNull(graph, URIs.SharedOntology_tgResources_Inverse);
831         SharedOntology_tg_Inverse = getResourceOrNull(graph, URIs.SharedOntology_tg_Inverse);
832         SharedOntology_treatAsSystemOntology = getResourceOrNull(graph, URIs.SharedOntology_treatAsSystemOntology);
833         SharedOntology_treatAsSystemOntology_Inverse = getResourceOrNull(graph, URIs.SharedOntology_treatAsSystemOntology_Inverse);
834         SharedRange = getResourceOrNull(graph, URIs.SharedRange);
835         String = getResourceOrNull(graph, URIs.String);
836         StringArray = getResourceOrNull(graph, URIs.StringArray);
837         SubrelationOf = getResourceOrNull(graph, URIs.SubrelationOf);
838         SuperrelationOf = getResourceOrNull(graph, URIs.SuperrelationOf);
839         SupertypeOf = getResourceOrNull(graph, URIs.SupertypeOf);
840         Tag = getResourceOrNull(graph, URIs.Tag);
841         Template = getResourceOrNull(graph, URIs.Template);
842         TotalFunction = getResourceOrNull(graph, URIs.TotalFunction);
843         True = getResourceOrNull(graph, URIs.True);
844         Type = getResourceOrNull(graph, URIs.Type);
845         TypeWithIdentifier = getResourceOrNull(graph, URIs.TypeWithIdentifier);
846         URI = getResourceOrNull(graph, URIs.URI);
847         Value = getResourceOrNull(graph, URIs.Value);
848         Variant = getResourceOrNull(graph, URIs.Variant);
849         VariantArray = getResourceOrNull(graph, URIs.VariantArray);
850         assert_ = getResourceOrNull(graph, URIs.assert_);
851         classifications = getResourceOrNull(graph, URIs.classifications);
852         classifications_Inverse = getResourceOrNull(graph, URIs.classifications_Inverse);
853         defTag = getResourceOrNull(graph, URIs.defTag);
854         default_ = getResourceOrNull(graph, URIs.default_);
855         default_Inverse = getResourceOrNull(graph, URIs.default_Inverse);
856         domainChildren = getResourceOrNull(graph, URIs.domainChildren);
857         domainChildren_Inverse = getResourceOrNull(graph, URIs.domainChildren_Inverse);
858         domainProperties = getResourceOrNull(graph, URIs.domainProperties);
859         domainProperties_Inverse = getResourceOrNull(graph, URIs.domainProperties_Inverse);
860         entityReplacer = getResourceOrNull(graph, URIs.entityReplacer);
861         entityReplacer_Inverse = getResourceOrNull(graph, URIs.entityReplacer_Inverse);
862         hasStandardResource = getResourceOrNull(graph, URIs.hasStandardResource);
863         hasStandardResource_Inverse = getResourceOrNull(graph, URIs.hasStandardResource_Inverse);
864         identifier = getResourceOrNull(graph, URIs.identifier);
865         identifier_Inverse = getResourceOrNull(graph, URIs.identifier_Inverse);
866         list = getResourceOrNull(graph, URIs.list);
867         loadBytes = getResourceOrNull(graph, URIs.loadBytes);
868         loadDataValue = getResourceOrNull(graph, URIs.loadDataValue);
869         loadString = getResourceOrNull(graph, URIs.loadString);
870         new_ = getResourceOrNull(graph, URIs.new_);
871         optionalProperty = getResourceOrNull(graph, URIs.optionalProperty);
872         orderedSet = getResourceOrNull(graph, URIs.orderedSet);
873         property = getResourceOrNull(graph, URIs.property);
874         readOnly = getResourceOrNull(graph, URIs.readOnly);
875         readOnly_Inverse = getResourceOrNull(graph, URIs.readOnly_Inverse);
876         required = getResourceOrNull(graph, URIs.required);
877         required_Inverse = getResourceOrNull(graph, URIs.required_Inverse);
878         scl = getResourceOrNull(graph, URIs.scl);
879         singleProperty = getResourceOrNull(graph, URIs.singleProperty);
880         singlePropertyDefault = getResourceOrNull(graph, URIs.singlePropertyDefault);
881         symmetric = getResourceOrNull(graph, URIs.symmetric);
882         tag = getResourceOrNull(graph, URIs.tag);
883         typeURI = getResourceOrNull(graph, URIs.typeURI);
884         typeURI_Inverse = getResourceOrNull(graph, URIs.typeURI_Inverse);
885         valid = getResourceOrNull(graph, URIs.valid);
886         valid_Inverse = getResourceOrNull(graph, URIs.valid_Inverse);
887         validator = getResourceOrNull(graph, URIs.validator);
888         validator_Inverse = getResourceOrNull(graph, URIs.validator_Inverse);
889         valueAccessor = getResourceOrNull(graph, URIs.valueAccessor);
890         valueAccessor_Inverse = getResourceOrNull(graph, URIs.valueAccessor_Inverse);
891     }
892     
893     public static Layer0 getInstance(ReadGraph graph) {
894         Session session = graph.getSession();
895         Layer0 ret = session.peekService(Layer0.class);
896         if(ret == null) {
897             QueryControl qc = graph.getService(QueryControl.class);
898             ret = new Layer0(qc.getIndependentGraph(graph));
899             session.registerService(Layer0.class, ret);
900         }
901         return ret;
902     }
903     
904     public static Layer0 getInstance(RequestProcessor session) throws DatabaseException {
905         Layer0 ret = session.peekService(Layer0.class);
906         if(ret == null) {
907             ret = session.syncRequest(new Read<Layer0>() {
908                 public Layer0 perform(ReadGraph graph) throws DatabaseException {
909                     QueryControl qc = graph.getService(QueryControl.class);
910                     return new Layer0(qc.getIndependentGraph(graph));
911                 }
912             });
913             session.registerService(Layer0.class, ret);
914         }
915         return ret;
916     }
917     
918 }
919