]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.layer0/graph/Layer0SCL.pgraph
Variable optimizations for documents (Simupedia)
[simantics/platform.git] / bundles / org.simantics.layer0 / graph / Layer0SCL.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2
3 L0.Functions : L0.Library
4
5 L0.Function <T L0.Value
6     @L0.assert L0.ConvertsToValueWith L0.Functions.functionApplication
7
8 // External values
9 L0.Functions.entityLabel : L0.ExternalValue
10 L0.Functions.listResources : L0.ExternalValue    
11 L0.Functions.resourceAsValue : L0.ExternalValue    
12 L0.Functions.functionApplication : L0.ExternalValue
13
14 // This was replaced by L0.Functions.sclValue to make things more uniform
15 L0.Functions.computeExpression : L0.ExternalValue
16     @L0.tag L0.Deprecated
17     
18 L0.Functions.sclValue : L0.ExternalValue
19 L0.Functions.composedPropertyValue : L0.ExternalValue
20
21 L0.Functions.standardValueAccessor : L0.ExternalValue
22   L0.HasValueType "ValueAccessor"
23 L0.Functions.standardChildDomainProperties : L0.ExternalValue
24   L0.HasValueType "VariableMap"
25 L0.Functions.standardPropertyDomainProperties : L0.ExternalValue
26   L0.HasValueType "VariableMap"
27 L0.Functions.standardChildDomainChildren : L0.ExternalValue
28   L0.HasValueType "VariableMap"
29 L0.Functions.standardPropertyDomainChildren : L0.ExternalValue
30   L0.HasValueType "VariableMap"
31 L0.Functions.methodsPropertyDomainProperties : L0.ExternalValue
32   L0.HasValueType "VariableMap"
33 L0.Functions.standardClassifications : L0.Function
34   L0.HasValueType "[String]"
35
36 L0.Functions.hasStandardResource : L0.Function
37   L0.HasValueType "Resource"
38
39 L0.Functions.standardValidValue : L0.Function
40   L0.HasValueType "Boolean"
41 L0.Functions.standardRequiredValue : L0.Function
42   L0.HasValueType "Boolean"
43 L0.Functions.standardDefaultValue : L0.Function
44   L0.HasValueType "Boolean"
45 L0.Functions.standardReadOnlyValue : L0.Function
46   L0.HasValueType "Boolean"
47 L0.Functions.standardValidator : L0.Function
48   L0.HasValueType "StringInputValidator"
49
50 // External values applied as functions
51 L0.Functions.numberInputValidator : L0.Function
52 L0.Functions.booleanInputValidator : L0.Function
53
54 // Validators
55 L0.Functions.relationValidator : L0.Function
56 L0.Functions.propertyValidator : L0.Function
57 L0.Functions.valueValidator : L0.Function
58 L0.Functions.uriValidator : L0.Function
59 L0.Functions.clusterValidator : L0.Function
60
61 L0.SCLModule <T L0.Entity
62     >-- L0.SCLModule.definition --> L0.String <R L0.HasProperty : L0.TotalFunction
63     @L0.assert L0.SCLModule.definition ""
64
65 L0.SCLScript <T L0.Entity
66     >-- L0.SCLScript.definition --> L0.String <R L0.HasProperty : L0.TotalFunction
67     @L0.assert L0.SCLScript.definition ""
68
69 L0.Ontology
70     >-- L0.Ontology.defaultLocalName --> L0.String <R L0.HasProperty : L0.TotalFunction
71     @L0.assert L0.Ontology.defaultLocalName ""
72
73 L0.entityReplacer ==> "Resource -> Resource -> <WriteGraph> ()" <R L0.HasProperty : L0.FunctionalRelation
74     L0.HasDescription """Used for defining an SCL function that knows how to copy the contents from one entity instance to another when both instances are known to be of the same type.
75 The first resource parameter is the source entity that will be used to replace the target entity which is defined by the second resource parameter."""
76
77 L0.Functions.defaultInstantiateUnder : L0.Function
78     L0.HasValueType "Resource -> Resource -> <WriteGraph> Resource"