]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.district.network.ontology/graph/DistrictNetworkTechType.pgraph
d63271af5befbfb607c17943885690851cfdd8c8
[simantics/district.git] / org.simantics.district.network.ontology / graph / DistrictNetworkTechType.pgraph
1 L0 = <http://www.simantics.org/Layer0-1.1>
2 STR = <http://www.simantics.org/Structural-1.2>
3 SEL = <http://www.simantics.org/SelectionView-1.2>
4
5 DN = <http://www.simantics.org/DistrictNetwork-1.0>
6
7 TT = DN.TechType : L0.Library
8
9 table = TT.TechTypeTable <T L0.Entity
10     // Table data as a CSV string literal
11     >-- table.HasData <R L0.HasProperty : L0.TotalFunction
12         --> L0.String
13     
14     // Link to corresponding component type
15     >-- table.HasComponentType <R L0.IsRelatedTo : L0.FunctionalRelation
16         --> STR.ComponentType
17
18 TT.Functions : L0.Library
19 TT.Functions.techTypeCodeValueAccessor : L0.ExternalValue
20   L0.HasValueType "ValueAccessor"
21 TT.Functions.techTypeKeys : L0.Function
22   L0.HasValueType "ReadGraph -> Resource -> a -> b"
23
24 TT.TechTypeCodeParameterType : SEL.GenericParameterType
25     @L0.assert L0.valueAccessor TT.Functions.techTypeCodeValueAccessor