Skip to content

Commit 80067a0

Browse files
beta version of DTDL digital twin
1 parent 2a511ed commit 80067a0

1 file changed

Lines changed: 280 additions & 0 deletions

File tree

Lines changed: 280 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,280 @@
1+
{
2+
"@id": "dtmi:com:ngsi-ld:ElectricVehicleMobility;0",
3+
"@type": "Interface",
4+
"@context": "dtmi:dtdl:context;2",
5+
"comment": "Electric Vehicle Mobility adapted to DTDL from smartdatamodels.org. Source: https://raw.githubusercontent.com/smart-data-models/dataModel.Transportation/master/ElectricVehicleMobility/schema.json",
6+
"description": "Daily observation of electric vehicle mobility patterns aggregated by location, vehicle brand, and geographic region.",
7+
"displayName": "ElectricVehicleMobility",
8+
"contents": [
9+
{
10+
"name": "alternateName",
11+
"writable": true,
12+
"displayName": "alternateName",
13+
"@type": "Property",
14+
"schema": "string",
15+
"comment": "An alternative name for this item"
16+
},
17+
{
18+
"name": "areaServed",
19+
"writable": true,
20+
"displayName": "areaServed",
21+
"@type": "Property",
22+
"schema": "string",
23+
"comment": "The geographic area where a service or offered item is provided"
24+
},
25+
{
26+
"name": "averageDistanceKm",
27+
"writable": true,
28+
"displayName": "averageDistanceKm",
29+
"@type": "Property",
30+
"schema": "long",
31+
"comment": "Average distance traveled in kilometers"
32+
},
33+
{
34+
"name": "dataProvider",
35+
"writable": true,
36+
"displayName": "dataProvider",
37+
"@type": "Property",
38+
"schema": "string",
39+
"comment": "Provider of the harmonised data entity"
40+
},
41+
{
42+
"name": "dateCreated",
43+
"writable": true,
44+
"displayName": "dateCreated",
45+
"@type": "Property",
46+
"schema": "dateTime",
47+
"comment": "Entity creation timestamp. This will usually be allocated by the storage platform"
48+
},
49+
{
50+
"name": "dateModified",
51+
"writable": true,
52+
"displayName": "dateModified",
53+
"@type": "Property",
54+
"schema": "dateTime",
55+
"comment": "Timestamp of the last modification of the entity. This will usually be allocated by the storage platform"
56+
},
57+
{
58+
"name": "dateObserved",
59+
"writable": true,
60+
"displayName": "dateObserved",
61+
"@type": "Property",
62+
"schema": "date",
63+
"comment": "Date of the observation (YYYY-MM-DD)"
64+
},
65+
{
66+
"name": "description",
67+
"writable": true,
68+
"displayName": "description",
69+
"@type": "Property",
70+
"schema": "string",
71+
"comment": "A description of this item"
72+
},
73+
{
74+
"name": "deviceBrand",
75+
"writable": true,
76+
"displayName": "deviceBrand",
77+
"@type": "Property",
78+
"schema": "string",
79+
"comment": "Brand or manufacturer of the electric vehicle"
80+
},
81+
{
82+
"name": "district",
83+
"writable": true,
84+
"displayName": "district",
85+
"@type": "Property",
86+
"schema": "string",
87+
"comment": "District where the observation was made"
88+
},
89+
{
90+
"name": "locationCode",
91+
"writable": true,
92+
"displayName": "locationCode",
93+
"@type": "Property",
94+
"schema": "string",
95+
"comment": "Official municipality code"
96+
},
97+
{
98+
"name": "municipality",
99+
"writable": true,
100+
"displayName": "municipality",
101+
"@type": "Property",
102+
"schema": "string",
103+
"comment": "Municipality where the observation was made"
104+
},
105+
{
106+
"name": "n",
107+
"writable": true,
108+
"displayName": "n",
109+
"@type": "Property",
110+
"schema": "long",
111+
"comment": "Number of observations used to calculate the average distance"
112+
},
113+
{
114+
"name": "name",
115+
"writable": true,
116+
"displayName": "name",
117+
"@type": "Property",
118+
"schema": "string",
119+
"comment": "The name of this item"
120+
},
121+
{
122+
"name": "seeAlso",
123+
"writable": true,
124+
"displayName": "seeAlso"
125+
},
126+
{
127+
"name": "source",
128+
"writable": true,
129+
"displayName": "source",
130+
"@type": "Property",
131+
"schema": "string",
132+
"comment": "Original source of the data as a URL"
133+
},
134+
{
135+
"@type": "Telemetry",
136+
"name": "owner",
137+
"schema": {
138+
"@type": "Array",
139+
"elementSchema": "string"
140+
},
141+
"comment": "A List containing a JSON encoded sequence of characters referencing the unique Ids of the owner(s)",
142+
"displayName": "owner"
143+
},
144+
{
145+
"@type": "object",
146+
"name": "address",
147+
"comment": "The mailing address",
148+
"displayName": "address",
149+
"fields": [
150+
{
151+
"name": "addressCountry",
152+
"schema": "string"
153+
},
154+
{
155+
"name": "addressLocality",
156+
"schema": "string"
157+
},
158+
{
159+
"name": "addressRegion",
160+
"schema": "string"
161+
},
162+
{
163+
"name": "district",
164+
"schema": "string"
165+
},
166+
{
167+
"name": "postOfficeBoxNumber",
168+
"schema": "string"
169+
},
170+
{
171+
"name": "postalCode",
172+
"schema": "string"
173+
},
174+
{
175+
"name": "streetAddress",
176+
"schema": "string"
177+
},
178+
{
179+
"name": "streetNr",
180+
"schema": "string"
181+
}
182+
]
183+
},
184+
{
185+
"@type": "Telemetry",
186+
"name": "location_Point",
187+
"schema": "point"
188+
},
189+
{
190+
"@type": "Telemetry",
191+
"name": "location_LineString",
192+
"schema": "lineString"
193+
},
194+
{
195+
"@type": "Telemetry",
196+
"name": "location_Polygon",
197+
"schema": "polygon"
198+
},
199+
{
200+
"@type": "Telemetry",
201+
"name": "location_MultiPoint",
202+
"schema": "multiPoint"
203+
},
204+
{
205+
"@type": "Telemetry",
206+
"name": "location_MultiLineString",
207+
"schema": "multiLineString"
208+
},
209+
{
210+
"@type": "Telemetry",
211+
"name": "location_MultiPolygon",
212+
"schema": "multiPolygon"
213+
},
214+
{
215+
"@type": "Telemetry",
216+
"name": "region",
217+
"schema": {
218+
"@type": "Enum",
219+
"valueSchema": "string",
220+
"enumValues": [
221+
{
222+
"name": "CONTINENTE",
223+
"displayName": "CONTINENTE",
224+
"enumValue": 1
225+
},
226+
{
227+
"name": "A\u00c7ORES",
228+
"displayName": "A\u00c7ORES",
229+
"enumValue": 2
230+
},
231+
{
232+
"name": "MADEIRA",
233+
"displayName": "MADEIRA",
234+
"enumValue": 3
235+
},
236+
{
237+
"name": "Outros - GDPR",
238+
"displayName": "Outros - GDPR",
239+
"enumValue": 4
240+
}
241+
]
242+
}
243+
},
244+
{
245+
"@type": "Telemetry",
246+
"name": "vehicleType",
247+
"schema": {
248+
"@type": "Enum",
249+
"valueSchema": "string",
250+
"enumValues": [
251+
{
252+
"name": "BEV",
253+
"displayName": "BEV",
254+
"enumValue": 1
255+
},
256+
{
257+
"name": "PHEV",
258+
"displayName": "PHEV",
259+
"enumValue": 2
260+
},
261+
{
262+
"name": "HEV",
263+
"displayName": "HEV",
264+
"enumValue": 3
265+
},
266+
{
267+
"name": "FCEV",
268+
"displayName": "FCEV",
269+
"enumValue": 4
270+
},
271+
{
272+
"name": "unknown",
273+
"displayName": "unknown",
274+
"enumValue": 5
275+
}
276+
]
277+
}
278+
}
279+
]
280+
}

0 commit comments

Comments
 (0)