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>
7 DOC = <http://www.simantics.org/Document-1.2> : L0.Ontology
9 L0.HasResourceClass "org.simantics.document.DocumentResource"
11 DOC.cssDocument <R L0.HasProperty --> L0.String : L0.FunctionalRelation
13 DOC.DocumentSettings <T L0.Literal
14 @L0.assert L0.HasDataType ${ marginLeft : Integer, marginRight : Integer, marginTop : Integer, marginBottom : Integer }
16 DOC.DocumentSettings."n-marginLeft" <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType
18 L0.HasSubliteralPredicate.Inverse DOC.DocumentSettings
19 L0.HasLabel "Left Margin"
22 DOC.DocumentSettings."n-marginRight" <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType
24 L0.HasSubliteralPredicate.Inverse DOC.DocumentSettings
25 L0.HasLabel "Right Margin"
28 DOC.DocumentSettings."n-marginTop" <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType
30 L0.HasSubliteralPredicate.Inverse DOC.DocumentSettings
31 L0.HasLabel "Top Margin"
34 DOC.DocumentSettings."n-marginBottom" <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType
36 L0.HasSubliteralPredicate.Inverse DOC.DocumentSettings
37 L0.HasLabel "Bottom Margin"
40 DOC.documentSettings <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType
41 L0.HasLabel "Wiki Document Settings"
42 --> DOC.DocumentSettings
43 SEL.HasDisplayValue ""
47 // Attachment relations
48 DOC.HasDocument <R L0.DependsOn
49 L0.HasRange DOC.Document
51 DOC.HasDocumentation <R DOC.HasDocument : L0.FunctionalRelation
52 L0.HasRange DOC.ScenegraphDocument
55 DOC.Document <T L0.Entity
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
66 DOC.FileDocument <T DOC.Document <T GF.File
68 DOC.HasUrl <R L0.HasProperty : L0.FunctionalRelation
70 L0.HasDomain DOC.UrlDocument
72 DOC.UrlDocument <T DOC.Document
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
78 //@L0.singleProperty DOC.HasDocumentation
79 //@L0.singleProperty DOC.HasWikiText
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"
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"
101 // Document scene graph
103 DOC.Scenegraph : L0.Library
105 DOC.Scenegraph.ParameterType <T L0.FunctionalRelation
106 @L0.assert SEL.HasDisplayProperty
107 _ : SEL.DisplayProperty
108 @L0.assert SEL.HasDisplayValue
110 @L0.assert SEL.HasDisplayUnit
112 @L0.assert SEL.HasStandardPropertyInfo
113 DOC.Scenegraph.CategoryHidden : SEL.StandardPropertyInfo
114 SEL.StandardPropertyInfo.CategoryName ""
115 SEL.StandardPropertyInfo.CategorySortingName ""
116 SEL.StandardPropertyInfo.IsHidden true
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
123 DOC.Scenegraph.Composite <T DOC.Scenegraph.Node
125 DOC.Scenegraph.Wiki <T DOC.Scenegraph.Node
126 >-- DOC.Scenegraph.Wiki.text ==> "String" <R SG.Node.HasProperty : DOC.Scenegraph.ParameterType
128 DOC.Scenegraph.Diagram <T DOC.Scenegraph.Node
129 >-- DOC.Scenegraph.Diagram.path ==> "String" <R SG.Node.HasProperty : DOC.Scenegraph.ParameterType
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
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
147 DOC.HasOlderVersion <R L0.IsWeaklyRelatedTo
148 L0.InverseOf DOC.HasNewerVersion <R L0.IsWeaklyRelatedTo
150 DOC.HasLibraryRelation <R L0.IsWeaklyRelatedTo
151 L0.HasRange L0.Relation
153 DOC.HasVersionType <R L0.IsRelatedTo
154 L0.HasRange L0.String
156 DOC.PlainTextDocument <T DOC.Document
157 >-- DOC.PlainTextDocument.text ==> "String" <R L0.HasProperty : L0.FunctionalRelation
160 DOC.DocumentLibrary <T L0.Library