forked from smart-data-models/data-models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ngsi-ld.yaml
133 lines (126 loc) · 3.77 KB
/
ngsi-ld.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
---
# Copyright (c) 2020 Contributors to Smart-Data-Models
# see https://github.com/smart-data-models
Common:
properties:
dateCreated:
description: "Creation timestamp of the entity."
format: date-time
readOnly: true
type: string
x-ngsi:
auto-gen: true
model: "https://schema.org/DateTime"
type: Property
dateModified:
description: "Update timestamp of this entity."
format: date-time
readOnly: true
type: string
x-ngsi:
attr-type: Property
auto-gen: true
model: "https://schema.org/DateTime"
id:
description: "URN holding the id of the attribute"
type: string
type:
description: "The entity type\n"
type: string
required:
- id
- type
type: object
Error:
properties:
detail:
type: string
title:
type: string
type:
format: uri
type: string
required:
- type
type: object
# Standard NGSI-LD definition of a description attribute
description:
description: "A description of the item"
externalDocs:
url: "http://purl.org/dc/elements/1.1/description"
x-see-also:
- "https://schema.org/description"
- "https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/description"
type: string
x-ngsi:
model: "https://schema.org/Text"
type: Property
uri: "https://uri.etsi.org/ngsi-ld/description"
uri-prefix: "https://uri.etsi.org/ngsi-ld/"
# Standard NGSI-LD definition of a location attribute
location:
description: "The current location of the itemr"
externalDocs:
url: "http://geojson.org/geojson-spec.html#geometry-objects"
oneOf:
-
$ref: "./geojson-ld.yaml#Point"
-
$ref: "./geojson-ld.yaml#LineString"
-
$ref: "./geojson-ld.yaml#Polygon"
-
$ref: "./geojson-ld.yaml#MultiPoint"
-
$ref: "./geojson-ld.yaml#MultiLineString"
-
$ref: "./geojson-ld.yaml#MultiPolygon"
type: object
x-ngsi:
model:
- "https://purl.org/geojson/vocab#Point"
- "https://purl.org/geojson/vocab#LineString"
- "https://purl.org/geojson/vocab#Polygon"
- "https://purl.org/geojson/vocab#MultiPoint"
- "https://purl.org/geojson/vocab#MultiLineString"
- "https://purl.org/geojson/vocab#MultiPolygon"
type: GeoProperty
uri: "https://uri.etsi.org/ngsi-ld/location"
uri-prefix: "https://uri.etsi.org/ngsi-ld/"
# Standard NGSI-LD definition of a name attribute
name:
description: "The name of the item\n"
type: string
x-ngsi:
type: Property
uri: "https://uri.etsi.org/ngsi-ld/name"
uri-prefix: "https://uri.etsi.org/ngsi-ld/"
# Standard NGSI-LD definition of an observedAt subattribute
observedAt:
description: "A timestamp which denotes when the reading was taken\n"
format: date-time
type: string
x-ngsi:
model: "https://schema.org/DateTime"
type: Property
uri: "https://uri.etsi.org/ngsi-ld/observedAt"
uri-prefix: "https://uri.etsi.org/ngsi-ld/"
# Standard NGSI-LD definition of a providedBy subattribute
providedBy:
description: "The device that sent this reading\n"
format: URL
type: string
x-ngsi:
model: "https://schema.org/URL"
type: Relationship
uri: "https://uri.etsi.org/ngsi-ld/providedBy"
uri-prefix: "https://uri.fiware.org/ns/data-models#"
# Standard NGSI-LD definition of a unitCode subattribute
unitCode:
description: "A string representing the measurement unit corresponding to the Property value. It shall be encoded using the UN/CEFACT Common Codes for Units of Measurement\n"
type: string
x-ngsi:
model: "https://schema.org/Text"
type: Property
uri: "https://uri.etsi.org/ngsi-ld/unitCode"
uri-prefix: "https://uri.etsi.org/ngsi-ld/"