]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.diagram.ontology/graph/DiagramSymbolContributions.pgraph
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.diagram.ontology / graph / DiagramSymbolContributions.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 DIA = <http://www.simantics.org/Diagram-2.2>
3
4 DIA.SymbolContribution <T L0.Entity
5     L0.HasDescription """Adds symbols to symbol library"""
6     @L0.tag L0.Abstract
7
8 DIA.HasSymbolContribution <R L0.IsRelatedTo
9     L0.HasDescription """Adds symbol contribution to Diagram"""
10     //<-- DIA.Diagram
11     --> DIA.SymbolContribution
12
13 DIA.IndexRootSymbolContribution <T DIA.SymbolContribution
14     L0.HasDescription """Symbol contribution that searches for libraries from current index root"""
15
16 DIA.BasicSymbolContribution <T DIA.SymbolContribution
17     L0.HasDescription """Symbol contribution that consists of specific libraries"""
18     @L0.property DIA.BasicSymbolContributionHasSymbolLibrary
19
20 DIA.BasicSymbolContributionHasSymbolLibrary <R L0.IsRelatedTo
21     <-- DIA.BasicSymbolContribution
22     --> L0.Library
23     --> DIA.SymbolReferenceLibrary
24
25 DIA.SymbolReferenceLibrary <T L0.Entity
26     L0.HasDescription """An entitylibrary type for gathering symbols, i.e. DIA.ElementClass instances."""
27     @L0.property DIA.HasSymbol
28     //TODO [L0.ConsistsOf all SymbolReferenceLibrary]
29     //TODO [L0.DependsOn all L0.Type]
30
31 DIA.HasSymbol <R L0.IsRelatedTo
32     L0.InverseOf DIA.HasSymbol.Inverse <R L0.IsWeaklyRelatedTo
33     <-- DIA.SymbolReferenceLibrary
34     --> DIA.ElementClass
35
36 // For symbol library / symbol filter definition.
37 DIA.SymbolContributionFilter <T L0.Entity
38     L0.HasDescription """A symbol contribution filter is used to check whether a symbol or a symbol contribution should be contributed.
39 It must be adaptable to class org.simantics.diagram.symbolcontribution.SymbolContributionFilter."""
40 DIA.HasSymbolContributionFilter --> DIA.SymbolContributionFilter <R L0.IsRelatedTo
41     L0.HasDescription """Binds a symbol contribution filter to a symbol or a symbol contribution."""
42     L0.InverseOf DIA.SymbolContributionFilterOf <R L0.IsRelatedTo
43
44 DIA.DenyFilter : DIA.SymbolContributionFilter
45 DIA.SCLFilter <T DIA.SymbolContributionFilter
46     --> DIA.SCLFilter.filter ==> "Resource -> Resource -> Maybe Resource -> <ReadGraph> Boolean" <R L0.HasProperty : L0.TotalFunction
47