Skip to content

Commit bacc890

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

1 file changed

Lines changed: 211 additions & 0 deletions

File tree

SenseHat/schemaDTDL.json

Lines changed: 211 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,211 @@
1+
{
2+
"@id": "dtmi:com:ngsi-ld:SenseHat;0",
3+
"@type": "Interface",
4+
"@context": "dtmi:dtdl:context;2",
5+
"comment": "Smart Data Models - SenseHat adapted to DTDL from smartdatamodels.org. Source: https://raw.githubusercontent.com/smart-data-models/dataModel.Device/master/SenseHat/schema.json",
6+
"description": "Data model for Sense Hat sensor readings for an array of sensing capabilities for Raspberry Pi.",
7+
"displayName": "SenseHat",
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": "dataProvider",
27+
"writable": true,
28+
"displayName": "dataProvider",
29+
"@type": "Property",
30+
"schema": "string",
31+
"comment": "A sequence of characters identifying the provider of the harmonised data entity"
32+
},
33+
{
34+
"name": "dateCreated",
35+
"writable": true,
36+
"displayName": "dateCreated",
37+
"@type": "Property",
38+
"schema": "dateTime",
39+
"comment": "Entity creation timestamp. This will usually be allocated by the storage platform"
40+
},
41+
{
42+
"name": "dateModified",
43+
"writable": true,
44+
"displayName": "dateModified",
45+
"@type": "Property",
46+
"schema": "dateTime",
47+
"comment": "Timestamp of the last modification of the entity. This will usually be allocated by the storage platform"
48+
},
49+
{
50+
"name": "description",
51+
"writable": true,
52+
"displayName": "description",
53+
"@type": "Property",
54+
"schema": "string",
55+
"comment": "A description of this item"
56+
},
57+
{
58+
"name": "humidity",
59+
"writable": true,
60+
"displayName": "humidity",
61+
"@type": "Property",
62+
"schema": "long",
63+
"comment": "Humidity reading from the sensor."
64+
},
65+
{
66+
"name": "name",
67+
"writable": true,
68+
"displayName": "name",
69+
"@type": "Property",
70+
"schema": "string",
71+
"comment": "The name of this item"
72+
},
73+
{
74+
"name": "pressure",
75+
"writable": true,
76+
"displayName": "pressure",
77+
"@type": "Property",
78+
"schema": "long",
79+
"comment": "Pressure reading from the sensor."
80+
},
81+
{
82+
"name": "raspSn",
83+
"writable": true,
84+
"displayName": "raspSn",
85+
"@type": "Property",
86+
"schema": "string",
87+
"comment": "Serial number of the Raspberry Pi."
88+
},
89+
{
90+
"name": "seeAlso",
91+
"writable": true,
92+
"displayName": "seeAlso"
93+
},
94+
{
95+
"name": "source",
96+
"writable": true,
97+
"displayName": "source",
98+
"@type": "Property",
99+
"schema": "string",
100+
"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"
101+
},
102+
{
103+
"name": "temperature",
104+
"writable": true,
105+
"displayName": "temperature",
106+
"@type": "Property",
107+
"schema": "long",
108+
"comment": "Temperature reading from the sensor."
109+
},
110+
{
111+
"@type": "Telemetry",
112+
"name": "owner",
113+
"schema": {
114+
"@type": "Array",
115+
"elementSchema": "string"
116+
},
117+
"comment": "A List containing a JSON encoded sequence of characters referencing the unique Ids of the owner(s)",
118+
"displayName": "owner"
119+
},
120+
{
121+
"@type": "object",
122+
"name": "accelerometer",
123+
"comment": "NGSI Entity type. Accelerometer readings from the sensor.",
124+
"displayName": "accelerometer",
125+
"fields": [
126+
{
127+
"name": "x",
128+
"schema": "long"
129+
},
130+
{
131+
"name": "y",
132+
"schema": "long"
133+
},
134+
{
135+
"name": "z",
136+
"schema": "long"
137+
}
138+
]
139+
},
140+
{
141+
"@type": "object",
142+
"name": "address",
143+
"comment": "The mailing address",
144+
"displayName": "address",
145+
"fields": [
146+
{
147+
"name": "addressCountry",
148+
"schema": "string"
149+
},
150+
{
151+
"name": "addressLocality",
152+
"schema": "string"
153+
},
154+
{
155+
"name": "addressRegion",
156+
"schema": "string"
157+
},
158+
{
159+
"name": "district",
160+
"schema": "string"
161+
},
162+
{
163+
"name": "postOfficeBoxNumber",
164+
"schema": "string"
165+
},
166+
{
167+
"name": "postalCode",
168+
"schema": "string"
169+
},
170+
{
171+
"name": "streetAddress",
172+
"schema": "string"
173+
},
174+
{
175+
"name": "streetNr",
176+
"schema": "string"
177+
}
178+
]
179+
},
180+
{
181+
"@type": "Telemetry",
182+
"name": "location_Point",
183+
"schema": "point"
184+
},
185+
{
186+
"@type": "Telemetry",
187+
"name": "location_LineString",
188+
"schema": "lineString"
189+
},
190+
{
191+
"@type": "Telemetry",
192+
"name": "location_Polygon",
193+
"schema": "polygon"
194+
},
195+
{
196+
"@type": "Telemetry",
197+
"name": "location_MultiPoint",
198+
"schema": "multiPoint"
199+
},
200+
{
201+
"@type": "Telemetry",
202+
"name": "location_MultiLineString",
203+
"schema": "multiLineString"
204+
},
205+
{
206+
"@type": "Telemetry",
207+
"name": "location_MultiPolygon",
208+
"schema": "multiPolygon"
209+
}
210+
]
211+
}

0 commit comments

Comments
 (0)