]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.layer0/graph/Layer0SCL.pgraph
783f4f401f271affbd497959b5ec60e2806ee6bd
[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 L0.Functions.computeExpression : L0.ExternalValue
14 L0.Functions.composedPropertyValue : L0.ExternalValue
15
16 L0.Functions.standardValueAccessor : L0.ExternalValue
17   L0.HasValueType "ValueAccessor"
18 L0.Functions.standardChildDomainProperties : L0.ExternalValue
19   L0.HasValueType "VariableMap"
20 L0.Functions.standardPropertyDomainProperties : L0.ExternalValue
21   L0.HasValueType "VariableMap"
22 L0.Functions.standardChildDomainChildren : L0.ExternalValue
23   L0.HasValueType "VariableMap"
24 L0.Functions.standardPropertyDomainChildren : L0.ExternalValue
25   L0.HasValueType "VariableMap"
26 L0.Functions.methodsPropertyDomainProperties : L0.ExternalValue
27   L0.HasValueType "VariableMap"
28 L0.Functions.standardClassifications : L0.Function
29   L0.HasValueType "[String]"
30
31 L0.Functions.hasStandardResource : L0.Function
32   L0.HasValueType "Resource"
33
34 L0.Functions.standardValidValue : L0.Function
35   L0.HasValueType "Boolean"
36 L0.Functions.standardRequiredValue : L0.Function
37   L0.HasValueType "Boolean"
38 L0.Functions.standardDefaultValue : L0.Function
39   L0.HasValueType "Boolean"
40 L0.Functions.standardReadOnlyValue : L0.Function
41   L0.HasValueType "Boolean"
42 L0.Functions.standardValidator : L0.Function
43   L0.HasValueType "StringInputValidator"
44
45 // External values applied as functions
46 L0.Functions.numberInputValidator : L0.Function
47 L0.Functions.booleanInputValidator : L0.Function
48
49 // Validators
50 L0.Functions.relationValidator : L0.Function
51 L0.Functions.propertyValidator : L0.Function
52 L0.Functions.valueValidator : L0.Function
53 L0.Functions.uriValidator : L0.Function
54 L0.Functions.clusterValidator : L0.Function
55
56 L0.SCLModule <T L0.Entity
57     >-- L0.SCLModule.definition --> L0.String <R L0.HasProperty : L0.TotalFunction
58     @L0.assert L0.SCLModule.definition ""
59
60 L0.SCLScript <T L0.Entity
61     >-- L0.SCLScript.definition --> L0.String <R L0.HasProperty : L0.TotalFunction
62     @L0.assert L0.SCLScript.definition ""
63
64 L0.Ontology
65     >-- L0.Ontology.defaultLocalName --> L0.String <R L0.HasProperty : L0.TotalFunction
66     @L0.assert L0.Ontology.defaultLocalName ""
67
68 L0.entityReplacer ==> "Resource -> Resource -> <WriteGraph> ()" <R L0.HasProperty : L0.FunctionalRelation
69     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.
70 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."""
71
72 L0.Functions.defaultInstantiateUnder : L0.Function
73     L0.HasValueType "Resource -> Resource -> <WriteGraph> Resource"