]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.ontology/graph/Document.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.document.ontology / graph / Document.pgraph
diff --git a/bundles/org.simantics.document.ontology/graph/Document.pgraph b/bundles/org.simantics.document.ontology/graph/Document.pgraph
new file mode 100644 (file)
index 0000000..e869da0
--- /dev/null
@@ -0,0 +1,161 @@
+L0 = <http://www.simantics.org/Layer0-1.1>\r
+L0X = <http://www.simantics.org/Layer0X-1.1>\r
+SG = <http://www.simantics.org/Scenegraph-1.1>\r
+SEL = <http://www.simantics.org/SelectionView-1.2>\r
+GF = <http://www.simantics.org/GraphFile-0.1>\r
+\r
+DOC = <http://www.simantics.org/Document-1.2> : L0.Ontology\r
+    @L0.new\r
+    L0.HasResourceClass "org.simantics.document.DocumentResource"\r
+    \r
+DOC.cssDocument <R L0.HasProperty --> L0.String : L0.FunctionalRelation\r
+\r
+DOC.DocumentSettings <T L0.Literal\r
+    @L0.assert L0.HasDataType ${ marginLeft : Integer, marginRight : Integer, marginTop : Integer, marginBottom : Integer }\r
+\r
+DOC.DocumentSettings."n-marginLeft" <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
+    ==> "Integer"\r
+    L0.HasSubliteralPredicate.Inverse DOC.DocumentSettings    \r
+    L0.HasLabel "Left Margin"\r
+    SEL.SortingName "1"\r
+\r
+DOC.DocumentSettings."n-marginRight" <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
+    ==> "Integer"\r
+    L0.HasSubliteralPredicate.Inverse DOC.DocumentSettings    \r
+    L0.HasLabel "Right Margin"\r
+    SEL.SortingName "2"\r
+    \r
+DOC.DocumentSettings."n-marginTop" <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
+    ==> "Integer"\r
+    L0.HasSubliteralPredicate.Inverse DOC.DocumentSettings    \r
+    L0.HasLabel "Top Margin"\r
+    SEL.SortingName "3"\r
+\r
+DOC.DocumentSettings."n-marginBottom" <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
+    ==> "Integer"\r
+    L0.HasSubliteralPredicate.Inverse DOC.DocumentSettings    \r
+    L0.HasLabel "Bottom Margin"\r
+    SEL.SortingName "4"\r
+\r
+DOC.documentSettings <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericParameterType\r
+    L0.HasLabel "Wiki Document Settings"\r
+    --> DOC.DocumentSettings\r
+    SEL.HasDisplayValue ""\r
+    L0.readOnly true\r
+    SEL.canBeLifted false\r
+    \r
+// Attachment relations    \r
+DOC.HasDocument <R L0.DependsOn\r
+    L0.HasRange DOC.Document\r
+\r
+DOC.HasDocumentation <R DOC.HasDocument : L0.FunctionalRelation\r
+    L0.HasRange DOC.ScenegraphDocument\r
+\r
+// Document types\r
+DOC.Document <T L0.Entity\r
+\r
+DOC.WikiDocument <T DOC.Document\r
+    >-- DOC.WikiDocument.wikiText --> DOC.WikiDocument.WikiText <R L0.HasProperty : L0.FunctionalRelation\r
+//DOC.MicrosoftWordDocument <T DOC.Document\r
+//    >-- DOC.MicrosoftWordDocument.data --> DOC.MicrosoftWordDocument.Data <R L0.HasProperty : L0.FunctionalRelation\r
+DOC.PlainTextFileDocument <T DOC.Document    \r
+    >-- DOC.PlainTextFileDocument.filePath --> DOC.PlainTextFileDocument.FilePath <R L0.HasProperty : L0.FunctionalRelation\r
+DOC.ScenegraphDocument <T DOC.Document\r
+    >-- DOC.ScenegraphDocument.scenegraph --> DOC.Scenegraph.Node <R L0.DependsOn : L0.FunctionalRelation    \r
+\r
+DOC.FileDocument <T DOC.Document <T GF.File\r
+\r
+DOC.HasUrl <R L0.HasProperty : L0.FunctionalRelation\r
+    L0.HasRange L0.URI\r
+    L0.HasDomain DOC.UrlDocument\r
+\r
+DOC.UrlDocument <T DOC.Document\r
+\r
+// TODO: this should be removed after it is no longer used in Sysdyn.\r
+DOC.Report <T DOC.Document\r
+    // [Tuukka] I've no idea what to replace this with\r
+    @L0.tag L0.Deprecated\r
+    //@L0.singleProperty DOC.HasDocumentation\r
+    //@L0.singleProperty DOC.HasWikiText\r
+\r
+// Literals\r
+DOC.WikiDocument.WikiText <T L0.String\r
+//    @L0.assert L0.HasDataType $String\r
+//    @L0.assert L0.HasValueType "String"\r
+//DOC.MicrosoftWordDocument.Data <T L0.ByteArray\r
+//    @L0.assert L0.HasDataType $(Byte[])\r
+//    @L0.assert L0.HasValueType "ByteArray"\r
+DOC.PlainTextFileDocument.FilePath <T L0.String\r
+//    @L0.assert L0.HasDataType $String\r
+//    @L0.assert L0.HasValueType "String"\r
+\r
+// Functions    \r
+DOC.Functions : L0.Library    \r
+DOC.Functions.documentationRootVariable : L0.Function\r
+ L0.HasValueType "Variable"\r
+DOC.Functions.documentationText : L0.Function\r
+ L0.HasValueType "String"\r
+DOC.Functions.standardEditText : L0.Function\r
+  L0.HasValueType "String"\r
+\r
+// Document scene graph\r
+    \r
+DOC.Scenegraph : L0.Library\r
+\r
+DOC.Scenegraph.ParameterType <T L0.FunctionalRelation\r
+  @L0.assert SEL.HasDisplayProperty\r
+    _ : SEL.DisplayProperty\r
+  @L0.assert SEL.HasDisplayValue\r
+    _ : SEL.DisplayValue\r
+  @L0.assert SEL.HasDisplayUnit\r
+    _ : SEL.DisplayUnit\r
+  @L0.assert SEL.HasStandardPropertyInfo\r
+    DOC.Scenegraph.CategoryHidden : SEL.StandardPropertyInfo\r
+      SEL.StandardPropertyInfo.CategoryName ""\r
+      SEL.StandardPropertyInfo.CategorySortingName ""\r
+      SEL.StandardPropertyInfo.IsHidden true\r
+\r
+DOC.Scenegraph.Node <T SG.Node\r
+  >-- DOC.Scenegraph.Node.printInPDF ==> "Boolean" <R SG.Node.HasProperty : DOC.Scenegraph.ParameterType\r
+  >-- DOC.Scenegraph.Node.editText ==> "String" <R SG.Node.HasProperty : DOC.Scenegraph.ParameterType\r
+  @L0.assert DOC.Scenegraph.Node.editText ""//DOC.Functions.standardEditText\r
+\r
+DOC.Scenegraph.Composite <T DOC.Scenegraph.Node\r
+\r
+DOC.Scenegraph.Wiki <T DOC.Scenegraph.Node\r
+  >-- DOC.Scenegraph.Wiki.text ==> "String" <R SG.Node.HasProperty : DOC.Scenegraph.ParameterType\r
+\r
+DOC.Scenegraph.Diagram <T DOC.Scenegraph.Node\r
+  >-- DOC.Scenegraph.Diagram.path ==> "String" <R SG.Node.HasProperty : DOC.Scenegraph.ParameterType\r
+    \r
+DOC.DocumentTypeBinding <T L0.Entity\r
+  >-- DOC.DocumentTypeBinding.HasType --> L0.Type <R L0.DependsOn\r
+  >-- DOC.DocumentTypeBinding.HasDocumentType --> DOC.Scenegraph <R L0.DependsOn\r
+  >-- DOC.DocumentTypeBinding.priority ==> "Double" <R L0.HasProperty : L0.TotalFunction\r
+  @L0.assert DOC.DocumentTypeBinding.priority 0.0\r
+\r
+\r
+// Deprecated\r
+DOC.HasReportFactory <R L0.DependsOn\r
+    L0.HasRange DOC.Report\r
+DOC.HasDocumentTemplate <R L0.DependsOn\r
+    L0.HasRange DOC.DocumentTemplate\r
+DOC.DocumentTemplate <T L0.Entity\r
+    @L0.singleProperty DOC.HasDocumentation\r
+    \r
+    \r
+DOC.HasOlderVersion <R L0.IsWeaklyRelatedTo\r
+   L0.InverseOf DOC.HasNewerVersion <R L0.IsWeaklyRelatedTo\r
+   \r
+DOC.HasLibraryRelation <R L0.IsWeaklyRelatedTo\r
+   L0.HasRange L0.Relation\r
+\r
+DOC.HasVersionType <R L0.IsRelatedTo\r
+   L0.HasRange L0.String\r
+\r
+DOC.PlainTextDocument <T DOC.Document\r
+   >-- DOC.PlainTextDocument.text ==> "String" <R L0.HasProperty : L0.FunctionalRelation\r
+\r
+\r
+DOC.DocumentLibrary <T L0.Library\r
+   
\ No newline at end of file