]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.diagram.ontology/graph/DiagramSymbolContributions.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.diagram.ontology / graph / DiagramSymbolContributions.pgraph
diff --git a/bundles/org.simantics.diagram.ontology/graph/DiagramSymbolContributions.pgraph b/bundles/org.simantics.diagram.ontology/graph/DiagramSymbolContributions.pgraph
new file mode 100644 (file)
index 0000000..ab8bdbd
--- /dev/null
@@ -0,0 +1,47 @@
+L0 = <http://www.simantics.org/Layer0-1.1>\r
+DIA = <http://www.simantics.org/Diagram-2.2>\r
+\r
+DIA.SymbolContribution <T L0.Entity\r
+    L0.HasDescription """Adds symbols to symbol library"""\r
+    @L0.tag L0.Abstract\r
+\r
+DIA.HasSymbolContribution <R L0.IsRelatedTo\r
+    L0.HasDescription """Adds symbol contribution to Diagram"""\r
+    //<-- DIA.Diagram\r
+    --> DIA.SymbolContribution\r
+\r
+DIA.IndexRootSymbolContribution <T DIA.SymbolContribution\r
+    L0.HasDescription """Symbol contribution that searches for libraries from current index root"""\r
+\r
+DIA.BasicSymbolContribution <T DIA.SymbolContribution\r
+    L0.HasDescription """Symbol contribution that consists of specific libraries"""\r
+    @L0.property DIA.BasicSymbolContributionHasSymbolLibrary\r
+\r
+DIA.BasicSymbolContributionHasSymbolLibrary <R L0.IsRelatedTo\r
+    <-- DIA.BasicSymbolContribution\r
+    --> L0.Library\r
+    --> DIA.SymbolReferenceLibrary\r
+\r
+DIA.SymbolReferenceLibrary <T L0.Entity\r
+    L0.HasDescription """An entitylibrary type for gathering symbols, i.e. DIA.ElementClass instances."""\r
+    @L0.property DIA.HasSymbol\r
+    //TODO [L0.ConsistsOf all SymbolReferenceLibrary]\r
+    //TODO [L0.DependsOn all L0.Type]\r
+\r
+DIA.HasSymbol <R L0.IsRelatedTo\r
+    L0.InverseOf DIA.HasSymbol.Inverse <R L0.IsWeaklyRelatedTo\r
+    <-- DIA.SymbolReferenceLibrary\r
+    --> DIA.ElementClass\r
+\r
+// For symbol library / symbol filter definition.\r
+DIA.SymbolContributionFilter <T L0.Entity\r
+    L0.HasDescription """A symbol contribution filter is used to check whether a symbol or a symbol contribution should be contributed.\r
+It must be adaptable to class org.simantics.diagram.symbolcontribution.SymbolContributionFilter."""\r
+DIA.HasSymbolContributionFilter --> DIA.SymbolContributionFilter <R L0.IsRelatedTo\r
+    L0.HasDescription """Binds a symbol contribution filter to a symbol or a symbol contribution."""\r
+    L0.InverseOf DIA.SymbolContributionFilterOf <R L0.IsRelatedTo\r
+\r
+DIA.DenyFilter : DIA.SymbolContributionFilter\r
+DIA.SCLFilter <T DIA.SymbolContributionFilter\r
+    --> DIA.SCLFilter.filter ==> "Resource -> Resource -> Maybe Resource -> <ReadGraph> Boolean" <R L0.HasProperty : L0.TotalFunction\r
+    
\ No newline at end of file