1+ [
2+ {
3+ "@id" : " dtmi:com:microsoft:iot:e2e:digital_factory:chocolate_factory;1" ,
4+ "@type" : " Interface" ,
5+ "displayName" : " Digital Factory - Interface Model" ,
6+ "@context" : " dtmi:dtdl:context;2" ,
7+ "contents" : [
8+ {
9+ "@type" : " Property" ,
10+ "name" : " FactoryId" ,
11+ "schema" : " string"
12+ },
13+ {
14+ "@type" : " Property" ,
15+ "name" : " FactoryName" ,
16+ "schema" : " string" ,
17+ "writable" : true
18+ },
19+ {
20+ "@type" : " Property" ,
21+ "name" : " Country" ,
22+ "schema" : " string"
23+ },
24+ {
25+ "@type" : " Property" ,
26+ "name" : " ZipCode" ,
27+ "schema" : " string" ,
28+ "writable" : true
29+ },
30+ {
31+ "@type" : " Property" ,
32+ "name" : " GeoLocation" ,
33+ "schema" : {
34+ "@id" : " dtmi:com:microsoft:iot:e2e:digital_factory:custom_schema:GeoCord;1" ,
35+ "@type" : " Object" ,
36+ "fields" : [
37+ {
38+ "@id" : " dtmi:com:microsoft:iot:e2e:digital_factory:custom_schema:GeoCord:lat;1" ,
39+ "name" : " Latitude" ,
40+ "schema" : " double"
41+ },
42+ {
43+ "@id" : " dtmi:com:microsoft:iot:e2e:digital_factory:custom_schema:GeoCord:lon;1" ,
44+ "name" : " Longitude" ,
45+ "schema" : " double"
46+ }
47+ ]
48+ }
49+ },
50+ {
51+ "@type" : " Property" ,
52+ "name" : " Tags" ,
53+ "schema" : " string" ,
54+ "writable" : true
55+ },
56+ {
57+ "@type" : " Relationship" ,
58+ "@id" : " dtmi:com:microsoft:iot:e2e:digital_factory:chocolate_factory:rel_has_floors;1" ,
59+ "name" : " rel_has_floors" ,
60+ "displayName" : " Has Floors" ,
61+ "target" : " dtmi:com:microsoft:iot:e2e:digital_factory:floor;1"
62+ },
63+ {
64+ "@type" : " Relationship" ,
65+ "@id" : " dtmi:com:microsoft:iot:e2e:digital_factory:chocolate_factory:rel_supplied_by;1" ,
66+ "name" : " rel_supplied_by" ,
67+ "displayName" : " SuppliedBy" ,
68+ "target" : " dtmi:com:microsoft:iot:e2e:digital_factory:chocolate_factory:supplier;1" ,
69+ "properties" : [
70+ {
71+ "@type" : " Property" ,
72+ "name" : " last_supply_date" ,
73+ "schema" : " date"
74+ },
75+ {
76+ "@type" : " Property" ,
77+ "name" : " supplier_contact" ,
78+ "schema" : " string"
79+ }
80+ ]
81+ },
82+ {
83+ "@type" : " Relationship" ,
84+ "@id" : " dtmi:com:microsoft:iot:e2e:digital_factory:chocolate_factory:rel_serves_retailer;1" ,
85+ "name" : " rel_serves_retailer" ,
86+ "displayName" : " serves retailer" ,
87+ "target" : " dtmi:com:microsoft:iot:e2e:digital_factory:chocolate_factory:retailer;1" ,
88+ "properties" : [
89+ {
90+ "@type" : " Property" ,
91+ "name" : " RetailerId" ,
92+ "schema" : " string"
93+ }
94+ ]
95+ },
96+ {
97+ "@type" : " Relationship" ,
98+ "@id" : " dtmi:com:microsoft:iot:e2e:digital_factory:chocolate_factory:rel_trasnportation_by;1" ,
99+ "name" : " transportation_by" ,
100+ "displayName" : " Transportation By" ,
101+ "properties" : [
102+ {
103+ "@type" : " Property" ,
104+ "name" : " last_shipment_date" ,
105+ "schema" : " string"
106+ },
107+ {
108+ "@type" : " Property" ,
109+ "name" : " last_shipment_product_id" ,
110+ "schema" : " string"
111+ },
112+ {
113+ "@type" : " Property" ,
114+ "name" : " last_shipment_TransportationUnitId" ,
115+ "schema" : " string"
116+ }
117+ ]
118+ }
119+ ]
120+ }
121+ ]
0 commit comments