Skip to content

Commit 75dedcf

Browse files
beta version of DTDL digital twin
1 parent 290edb2 commit 75dedcf

1 file changed

Lines changed: 253 additions & 0 deletions

File tree

PolarH10/schemaDTDL.json

Lines changed: 253 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,253 @@
1+
{
2+
"@id": "dtmi:com:ngsi-ld:PolarH10;0",
3+
"@type": "Interface",
4+
"@context": "dtmi:dtdl:context;2",
5+
"comment": "Smart Data Models - Polar H10 ACC Topic adapted to DTDL from smartdatamodels.org. Source: https://raw.githubusercontent.com/smart-data-models/dataModel.Device/master/PolarH10/schema.json",
6+
"description": "A Data Model of Polar H10 Heart Rate Sensor with RR, HRV, HR, and ECG",
7+
"displayName": "PolarH10",
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": "clientId",
27+
"writable": true,
28+
"displayName": "clientId",
29+
"@type": "Property",
30+
"schema": "string",
31+
"comment": "Client ID"
32+
},
33+
{
34+
"name": "dataProvider",
35+
"writable": true,
36+
"displayName": "dataProvider",
37+
"@type": "Property",
38+
"schema": "string",
39+
"comment": "A sequence of characters identifying the 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": "description",
59+
"writable": true,
60+
"displayName": "description",
61+
"@type": "Property",
62+
"schema": "string",
63+
"comment": "A description of this item"
64+
},
65+
{
66+
"name": "deviceId",
67+
"writable": true,
68+
"displayName": "deviceId",
69+
"@type": "Property",
70+
"schema": "string",
71+
"comment": "Device ID"
72+
},
73+
{
74+
"name": "hr",
75+
"writable": true,
76+
"displayName": "hr",
77+
"@type": "Property",
78+
"schema": "long",
79+
"comment": "Heart Rate (HR) with one second sample time or with five second sample time"
80+
},
81+
{
82+
"name": "hrv",
83+
"writable": true,
84+
"displayName": "hrv",
85+
"@type": "Property",
86+
"schema": "long",
87+
"comment": "Heart Rate Variability (HRV) heart rate variability"
88+
},
89+
{
90+
"name": "name",
91+
"writable": true,
92+
"displayName": "name",
93+
"@type": "Property",
94+
"schema": "string",
95+
"comment": "The name of this item"
96+
},
97+
{
98+
"name": "sampleRate",
99+
"writable": true,
100+
"displayName": "sampleRate",
101+
"@type": "Property",
102+
"schema": "long",
103+
"comment": "Data acquisition rate"
104+
},
105+
{
106+
"name": "seeAlso",
107+
"writable": true,
108+
"displayName": "seeAlso"
109+
},
110+
{
111+
"name": "sensorTimeStamp",
112+
"writable": true,
113+
"displayName": "sensorTimeStamp",
114+
"@type": "Property",
115+
"schema": "long",
116+
"comment": "Sensor Timestamp"
117+
},
118+
{
119+
"name": "sessionId",
120+
"writable": true,
121+
"displayName": "sessionId",
122+
"@type": "Property",
123+
"schema": "long",
124+
"comment": "Session ID"
125+
},
126+
{
127+
"name": "source",
128+
"writable": true,
129+
"displayName": "source",
130+
"@type": "Property",
131+
"schema": "string",
132+
"comment": "A sequence of characters giving the original source of the entity data as a URL. Recommended to be the fully qualified domain name of the source provider, or the URL to the source object"
133+
},
134+
{
135+
"name": "timeStamp",
136+
"writable": true,
137+
"displayName": "timeStamp",
138+
"@type": "Property",
139+
"schema": "long",
140+
"comment": "Phone Timestamp"
141+
},
142+
{
143+
"@type": "Telemetry",
144+
"name": "acc",
145+
"schema": {
146+
"@type": "Array",
147+
"elementSchema": "array"
148+
},
149+
"comment": "Accelerometer data with sample rates of 25Hz, 50Hz, 100Hz and 200Hz and range of 2G, 4G and 8G. Axis specific acceleration data in mG.",
150+
"displayName": "acc"
151+
},
152+
{
153+
"@type": "Telemetry",
154+
"name": "ecg",
155+
"schema": {
156+
"@type": "Array",
157+
"elementSchema": "integer"
158+
},
159+
"comment": "Electrocardiography (ECG) data in \u00b5V with sample rate 130Hz.",
160+
"displayName": "ecg"
161+
},
162+
{
163+
"@type": "Telemetry",
164+
"name": "owner",
165+
"schema": {
166+
"@type": "Array",
167+
"elementSchema": "string"
168+
},
169+
"comment": "A List containing a JSON encoded sequence of characters referencing the unique Ids of the owner(s)",
170+
"displayName": "owner"
171+
},
172+
{
173+
"@type": "Telemetry",
174+
"name": "rr",
175+
"schema": {
176+
"@type": "Array",
177+
"elementSchema": "integer"
178+
},
179+
"comment": "Intervals between successive heartbeats (RR) in ms",
180+
"displayName": "rr"
181+
},
182+
{
183+
"@type": "object",
184+
"name": "address",
185+
"comment": "The mailing address",
186+
"displayName": "address",
187+
"fields": [
188+
{
189+
"name": "addressCountry",
190+
"schema": "string"
191+
},
192+
{
193+
"name": "addressLocality",
194+
"schema": "string"
195+
},
196+
{
197+
"name": "addressRegion",
198+
"schema": "string"
199+
},
200+
{
201+
"name": "district",
202+
"schema": "string"
203+
},
204+
{
205+
"name": "postOfficeBoxNumber",
206+
"schema": "string"
207+
},
208+
{
209+
"name": "postalCode",
210+
"schema": "string"
211+
},
212+
{
213+
"name": "streetAddress",
214+
"schema": "string"
215+
},
216+
{
217+
"name": "streetNr",
218+
"schema": "string"
219+
}
220+
]
221+
},
222+
{
223+
"@type": "Telemetry",
224+
"name": "location_Point",
225+
"schema": "point"
226+
},
227+
{
228+
"@type": "Telemetry",
229+
"name": "location_LineString",
230+
"schema": "lineString"
231+
},
232+
{
233+
"@type": "Telemetry",
234+
"name": "location_Polygon",
235+
"schema": "polygon"
236+
},
237+
{
238+
"@type": "Telemetry",
239+
"name": "location_MultiPoint",
240+
"schema": "multiPoint"
241+
},
242+
{
243+
"@type": "Telemetry",
244+
"name": "location_MultiLineString",
245+
"schema": "multiLineString"
246+
},
247+
{
248+
"@type": "Telemetry",
249+
"name": "location_MultiPolygon",
250+
"schema": "multiPolygon"
251+
}
252+
]
253+
}

0 commit comments

Comments
 (0)