]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.spreadsheet.ontology/graph/Spreadsheet.pgraph
Merge commit '0580ea8b675c868685993b0780c9ecc31010f681' into master
[simantics/platform.git] / bundles / org.simantics.spreadsheet.ontology / graph / Spreadsheet.pgraph
1 // Converted from version 16888
2 L0 = <http://www.simantics.org/Layer0-1.1>
3 STR = <http://www.simantics.org/Structural-1.2>
4 SIMU = <http://www.simantics.org/Simulation-1.1>
5 SEL = <http://www.simantics.org/SelectionView-1.2>
6 DATA = <http://www.simantics.org/Datatypes-1.1>
7
8 SHEET = <http://www.simantics.org/Spreadsheet-1.2> : L0.Ontology
9     @L0.new
10     L0.HasResourceClass "org.simantics.spreadsheet.resource.SpreadsheetResource" 
11
12 SHEET.SCLMain : L0.SCLModule
13     L0.SCLModule.definition _ : L0.String
14       @L0.loadString "scl/SCLMain.scl"
15
16 FUNCTIONS = SHEET.Functions
17
18 SHEET.Book <T STR.Composite <T L0.RVIContext
19     @L0.assert L0.domainChildren FUNCTIONS.spreadsheetChildren
20     
21 SHEET.HasInitialCondition --> SHEET.InitialCondition <R L0.DependsOn
22
23 SHEET.InitialCondition <T L0.Entity
24     --> SHEET.InitialCondition.bytes --> L0.ByteArray <R L0.HasProperty : L0.TotalFunction
25     --> SHEET.InitialCondition.ConditionOf --> SHEET.Book <R L0.DependsOn : L0.TotalFunction
26     --> SHEET.InitialCondition.DefaultConditionOf <R SHEET.InitialCondition.ConditionOf
27         L0.InverseOf SHEET.Book.HasDefaultInitialCondition
28
29 SHEET.cellEditor <R L0.HasProperty : L0.FunctionalRelation
30     ==> "CellEditor"
31
32 SHEET.Spreadsheet <T STR.Composite
33     @L0.property L0.ConsistsOf // all Cell
34     @L0.assert SHEET.ForCompositeTemplate SHEET.CompositeTemplate
35     @L0.assert SHEET.cellEditor FUNCTIONS.defaultSheetCellEditor
36     @L0.assert STR.input FUNCTIONS.spreadsheetInput
37     >-- STR.input
38     @L0.assert SHEET.session FUNCTIONS.spreadsheetSession
39     >-- SHEET.session
40
41 SHEET.Attribute <T SEL.GenericParameterType
42
43 SHEET.SCLValue <T STR.SCLValue
44   @L0.assert L0.ConvertsToValueWith
45     FUNCTIONS.sclValue : L0.ExternalValue
46
47 SHEET.scl : L0.Template
48     @template %subject %property %expression %valueType
49         %subject
50             %property _ : SHEET.SCLValue
51               L0.SCLValue.expression %expression
52               L0.HasValueType %valueType
53
54 SHEET.sclValue : L0.Template
55     @template %subject %expression %valueType
56         %subject : SHEET.SCLValue
57             L0.SCLValue.expression %expression
58             L0.HasValueType %valueType
59
60 SHEET.Experiment <T SIMU.Experiment
61 SHEET.Run <T SIMU.Run
62   @L0.assert L0.domainChildren 
63     FUNCTIONS.sheetRunDomainChildren : L0.ExternalValue
64       L0.HasValueType "VariableMap"
65   @L0.assert STR.input FUNCTIONS.spreadsheetRunInput
66
67 SHEET.SourceContribution <T L0.Entity
68   >-- SHEET.SourceContribution.function ==> "Resource -> <ReadGraph> [Variable]" <R L0.HasProperty : L0.FunctionalRelation
69   >-- SHEET.SourceContribution.labeler ==> "Variable -> <ReadGraph> String" <R L0.HasProperty : L0.FunctionalRelation
70   
71 SHEET.SheetSourceContribution : SHEET.SourceContribution
72   L0.HasLabel "Sheet"
73   @SHEET.scl SHEET.SourceContribution.function "sheetSourceContribution" "Resource -> <ReadGraph> Variable"
74   @SHEET.scl SHEET.SourceContribution.labeler "sheetSourceContributionLabeler" "Variable -> <ReadGraph> String"
75   
76
77 SHEET.ModelSourceContribution : SHEET.SourceContribution
78   L0.HasLabel "Models"
79   @SHEET.scl SHEET.SourceContribution.function "modelsSourceContribution" "Resource -> <ReadGraph> Variable"
80   @SHEET.scl SHEET.SourceContribution.labeler "modelsSourceContributionLabeler" "Variable -> <ReadGraph> String"