]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.document.base.ontology/graph/Properties.pgraph
Merge "Testing SonarQube with Simantics Platform SDK - still"
[simantics/platform.git] / bundles / org.simantics.document.base.ontology / graph / Properties.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 DOC = <http://www.simantics.org/Documentation-1.2>
3 FUNCTIONS = <http://www.simantics.org/Documentation-1.2/Functions>
4 SEL = <http://www.simantics.org/SelectionView-1.2>
5
6 PROPERTIES = DOC.Properties : L0.Library
7   @L0.new
8     
9 DOC.Document.AttributeRelation <T L0.Relation
10   @L0.assert L0.domainProperties L0.Functions.standardPropertyDomainProperties
11   @L0.assert L0.domainChildren L0.Functions.standardPropertyDomainChildren
12   --> DOC.Document.AttributeRelation.dynamic ==> "Boolean" <R L0.HasProperty : L0.TotalFunction
13   @L0.assert DOC.Document.AttributeRelation.dynamic false
14   
15 DOC.Document.ExtraAttributeRelation <T L0.Relation
16   @L0.assert L0.domainProperties L0.Functions.standardPropertyDomainProperties
17   @L0.assert L0.domainChildren L0.Functions.standardPropertyDomainChildren
18   
19 defAttribute = PROPERTIES.defAttribute : L0.Template
20     @template %subject %range
21         %subject <R L0.HasProperty : DOC.Document.AttributeRelation : L0.FunctionalRelation
22             L0.HasRange %range
23
24 defExtraAttribute = PROPERTIES.defExtraAttribute : L0.Template
25     @template %subject %range 
26         %subject <R L0.HasProperty : DOC.Document.ExtraAttributeRelation : L0.FunctionalRelation
27             L0.HasRange %range
28
29 PROPERTIES.inputUri <R L0.HasProperty : PROPERTIES.ParameterType
30     ==> "String"
31     @PROPERTIES.defAttribute L0.Value
32     L0.HasLabel "Input URI"
33
34 PROPERTIES.input <R L0.HasProperty : L0.FunctionalRelation
35     ==> "Variable"
36     
37 PROPERTIES.state <R L0.HasProperty : L0.FunctionalRelation
38     ==> "Variable"
39
40 PROPERTIES.icstate <R L0.HasProperty : L0.FunctionalRelation
41     ==> "Variable"
42
43 PROPERTIES.session <R L0.HasProperty : L0.FunctionalRelation
44     ==> "Variable"
45
46 PROPERTIES.experiment <R L0.HasProperty : L0.FunctionalRelation
47     ==> "Variable"
48
49 PROPERTIES.model <R L0.HasProperty : L0.FunctionalRelation
50     ==> "Variable"
51     
52 PROPERTIES.exists <R L0.HasProperty : L0.FunctionalRelation
53     @defAttribute L0.Boolean    
54     L0.RequiresValueType "Boolean" 
55
56 PROPERTIES.pathExists <R L0.HasProperty : L0.FunctionalRelation
57     @defAttribute L0.Boolean    
58     L0.RequiresValueType "Boolean" 
59
60 PROPERTIES.commands <R L0.HasProperty : L0.FunctionalRelation
61     @defAttribute L0.String    
62     L0.RequiresValueType "String" 
63     L0.HasLabel "Commands"
64     
65 PROPERTIES.dataDefinitions <R L0.HasProperty : L0.FunctionalRelation
66     @defAttribute L0.String    
67     L0.RequiresValueType "String" 
68     L0.HasLabel "Data Definitions"
69
70 PROPERTIES.SCLFunction <R L0.HasProperty : PROPERTIES.ParameterType
71     @PROPERTIES.defAttribute L0.Value
72     ==> "EventHandler"   
73     L0.HasLabel "SCL Function"
74     
75 PROPERTIES.target : PROPERTIES.ParameterType : L0.FunctionalRelation
76     @PROPERTIES.defAttribute L0.String    
77     L0.RequiresValueType "String"
78     L0.HasLabel "Target"
79
80 PROPERTIES.hyperlinkTarget : PROPERTIES.ParameterType : L0.FunctionalRelation
81     @PROPERTIES.defAttribute L0.String    
82     L0.RequiresValueType "String"
83     L0.HasLabel "Target type (optional)"
84
85 PROPERTIES.targets : PROPERTIES.ParameterType : L0.FunctionalRelation
86     @PROPERTIES.defAttribute L0.StringArray  
87     L0.RequiresValueType "Array String"
88     L0.HasLabel "Targets"
89     
90 PROPERTIES.source : PROPERTIES.ParameterType : L0.FunctionalRelation
91     @PROPERTIES.defAttribute L0.String    
92     L0.RequiresValueType "String"
93     L0.HasLabel "Source"
94
95 PROPERTIES.sources : PROPERTIES.ParameterType : L0.FunctionalRelation
96     @PROPERTIES.defAttribute L0.StringArray  
97     L0.RequiresValueType "Array String"
98     L0.HasLabel "Sources"
99
100 PROPERTIES.ParameterType <T SEL.GenericParameterType
101     
102