]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.document.ontology/graph/Document.pgraph
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.document.ontology / graph / Document.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 L0X = <http://www.simantics.org/Layer0X-1.1>
3 SG = <http://www.simantics.org/Scenegraph-1.1>
4 SEL = <http://www.simantics.org/SelectionView-1.2>
5 GF = <http://www.simantics.org/GraphFile-0.1>
6
7 DOC = <http://www.simantics.org/Document-1.2> : L0.Ontology
8     @L0.new
9     L0.HasResourceClass "org.simantics.document.DocumentResource"
10     
11 DOC.cssDocument <R L0.HasProperty --> L0.String : L0.FunctionalRelation
12
13 DOC.DocumentSettings <T L0.Literal
14     @L0.assert L0.HasDataType ${ marginLeft : Integer, marginRight : Integer, marginTop : Integer, marginBottom : Integer }
15
16 DOC.DocumentSettings."n-marginLeft" <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType
17     ==> "Integer"
18     L0.HasSubliteralPredicate.Inverse DOC.DocumentSettings    
19     L0.HasLabel "Left Margin"
20     SEL.SortingName "1"
21
22 DOC.DocumentSettings."n-marginRight" <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType
23     ==> "Integer"
24     L0.HasSubliteralPredicate.Inverse DOC.DocumentSettings    
25     L0.HasLabel "Right Margin"
26     SEL.SortingName "2"
27     
28 DOC.DocumentSettings."n-marginTop" <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType
29     ==> "Integer"
30     L0.HasSubliteralPredicate.Inverse DOC.DocumentSettings    
31     L0.HasLabel "Top Margin"
32     SEL.SortingName "3"
33
34 DOC.DocumentSettings."n-marginBottom" <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType
35     ==> "Integer"
36     L0.HasSubliteralPredicate.Inverse DOC.DocumentSettings    
37     L0.HasLabel "Bottom Margin"
38     SEL.SortingName "4"
39
40 DOC.documentSettings <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType
41     L0.HasLabel "Wiki Document Settings"
42     --> DOC.DocumentSettings
43     SEL.HasDisplayValue ""
44     L0.readOnly true
45     SEL.canBeLifted false
46     
47 // Attachment relations    
48 DOC.HasDocument <R L0.DependsOn
49     L0.HasRange DOC.Document
50
51 DOC.HasDocumentation <R DOC.HasDocument : L0.FunctionalRelation
52     L0.HasRange DOC.ScenegraphDocument
53
54 // Document types
55 DOC.Document <T L0.Entity
56
57 DOC.WikiDocument <T DOC.Document
58     >-- DOC.WikiDocument.wikiText --> DOC.WikiDocument.WikiText <R L0.HasProperty : L0.FunctionalRelation
59 //DOC.MicrosoftWordDocument <T DOC.Document
60 //    >-- DOC.MicrosoftWordDocument.data --> DOC.MicrosoftWordDocument.Data <R L0.HasProperty : L0.FunctionalRelation
61 DOC.PlainTextFileDocument <T DOC.Document    
62     >-- DOC.PlainTextFileDocument.filePath --> DOC.PlainTextFileDocument.FilePath <R L0.HasProperty : L0.FunctionalRelation
63 DOC.ScenegraphDocument <T DOC.Document
64     >-- DOC.ScenegraphDocument.scenegraph --> DOC.Scenegraph.Node <R L0.DependsOn : L0.FunctionalRelation    
65
66 DOC.FileDocument <T DOC.Document <T GF.File
67
68 DOC.HasUrl <R L0.HasProperty : L0.FunctionalRelation
69     L0.HasRange L0.URI
70     L0.HasDomain DOC.UrlDocument
71
72 DOC.UrlDocument <T DOC.Document
73
74 // TODO: this should be removed after it is no longer used in Sysdyn.
75 DOC.Report <T DOC.Document
76     // [Tuukka] I've no idea what to replace this with
77     @L0.tag L0.Deprecated
78     //@L0.singleProperty DOC.HasDocumentation
79     //@L0.singleProperty DOC.HasWikiText
80
81 // Literals
82 DOC.WikiDocument.WikiText <T L0.String
83 //    @L0.assert L0.HasDataType $String
84 //    @L0.assert L0.HasValueType "String"
85 //DOC.MicrosoftWordDocument.Data <T L0.ByteArray
86 //    @L0.assert L0.HasDataType $(Byte[])
87 //    @L0.assert L0.HasValueType "ByteArray"
88 DOC.PlainTextFileDocument.FilePath <T L0.String
89 //    @L0.assert L0.HasDataType $String
90 //    @L0.assert L0.HasValueType "String"
91
92 // Functions    
93 DOC.Functions : L0.Library    
94 DOC.Functions.documentationRootVariable : L0.Function
95  L0.HasValueType "Variable"
96 DOC.Functions.documentationText : L0.Function
97  L0.HasValueType "String"
98 DOC.Functions.standardEditText : L0.Function
99   L0.HasValueType "String"
100
101 // Document scene graph
102     
103 DOC.Scenegraph : L0.Library
104
105 DOC.Scenegraph.ParameterType <T L0.FunctionalRelation
106   @L0.assert SEL.HasDisplayProperty
107     _ : SEL.DisplayProperty
108   @L0.assert SEL.HasDisplayValue
109     _ : SEL.DisplayValue
110   @L0.assert SEL.HasDisplayUnit
111     _ : SEL.DisplayUnit
112   @L0.assert SEL.HasStandardPropertyInfo
113     DOC.Scenegraph.CategoryHidden : SEL.StandardPropertyInfo
114       SEL.StandardPropertyInfo.CategoryName ""
115       SEL.StandardPropertyInfo.CategorySortingName ""
116       SEL.StandardPropertyInfo.IsHidden true
117
118 DOC.Scenegraph.Node <T SG.Node
119   >-- DOC.Scenegraph.Node.printInPDF ==> "Boolean" <R SG.Node.HasProperty : DOC.Scenegraph.ParameterType
120   >-- DOC.Scenegraph.Node.editText ==> "String" <R SG.Node.HasProperty : DOC.Scenegraph.ParameterType
121   @L0.assert DOC.Scenegraph.Node.editText ""//DOC.Functions.standardEditText
122
123 DOC.Scenegraph.Composite <T DOC.Scenegraph.Node
124
125 DOC.Scenegraph.Wiki <T DOC.Scenegraph.Node
126   >-- DOC.Scenegraph.Wiki.text ==> "String" <R SG.Node.HasProperty : DOC.Scenegraph.ParameterType
127
128 DOC.Scenegraph.Diagram <T DOC.Scenegraph.Node
129   >-- DOC.Scenegraph.Diagram.path ==> "String" <R SG.Node.HasProperty : DOC.Scenegraph.ParameterType
130     
131 DOC.DocumentTypeBinding <T L0.Entity
132   >-- DOC.DocumentTypeBinding.HasType --> L0.Type <R L0.DependsOn
133   >-- DOC.DocumentTypeBinding.HasDocumentType --> DOC.Scenegraph <R L0.DependsOn
134   >-- DOC.DocumentTypeBinding.priority ==> "Double" <R L0.HasProperty : L0.TotalFunction
135   @L0.assert DOC.DocumentTypeBinding.priority 0.0
136
137
138 // Deprecated
139 DOC.HasReportFactory <R L0.DependsOn
140     L0.HasRange DOC.Report
141 DOC.HasDocumentTemplate <R L0.DependsOn
142     L0.HasRange DOC.DocumentTemplate
143 DOC.DocumentTemplate <T L0.Entity
144     @L0.singleProperty DOC.HasDocumentation
145     
146     
147 DOC.HasOlderVersion <R L0.IsWeaklyRelatedTo
148    L0.InverseOf DOC.HasNewerVersion <R L0.IsWeaklyRelatedTo
149    
150 DOC.HasLibraryRelation <R L0.IsWeaklyRelatedTo
151    L0.HasRange L0.Relation
152
153 DOC.HasVersionType <R L0.IsRelatedTo
154    L0.HasRange L0.String
155
156 DOC.PlainTextDocument <T DOC.Document
157    >-- DOC.PlainTextDocument.text ==> "String" <R L0.HasProperty : L0.FunctionalRelation
158
159
160 DOC.DocumentLibrary <T L0.Library
161