You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add linter and formatter for markdown (FixFIWARE#186)
* Format markdown
* Run text linter - spellcheck and correct.
* Remove whitespace around codeblock fences - (FixFIWARE#310)
After correcting spelling mistakes additional whitespace formatting issues can be corrected.
*[JSON Schemas and documentation](./specs/README.md) on harmonized datamodels for smart cities, developed jointly with [OASC](http://oascities.org), and other domains.
12
-
* code that allows to expose different harmonized datasets useful for different applications.
13
-
Such datasets are exposed through the [FIWARE NGSI version 2](http://fiware.github.io/specifications/ngsiv2/stable) API (query).
10
+
This repository contains:
11
+
12
+
-[JSON Schemas and documentation](./specs/README.md) on harmonized datamodels
13
+
for smart cities, developed jointly with [OASC](http://oascities.org), and
14
+
other domains.
15
+
- code that allows to expose different harmonized datasets useful for
16
+
different applications. Such datasets are exposed through the
17
+
[FIWARE NGSI version 2](http://fiware.github.io/specifications/ngsiv2/stable)
18
+
API (query).
14
19
15
20
This work is aligned with the results of the
16
21
[GSMA IoT Big Data](http://www.gsma.com/connectedliving/iot-big-data/) Project.
17
-
Such project is working on the harmonization of APIs and data models for fueling IoT and Big Data Ecosystems.
18
-
In fact the FIWARE data models are a superset of the [GSMA Data Models](http://www.gsma.com/connectedliving/wp-content/uploads/2016/11/CLP.26-v1.0.pdf).
22
+
Such project is working on the harmonization of APIs and data models for fueling
23
+
IoT and Big Data Ecosystems. In fact the FIWARE data models are a superset of
24
+
the
25
+
[GSMA Data Models](http://www.gsma.com/connectedliving/wp-content/uploads/2016/11/CLP.26-v1.0.pdf).
19
26
20
-
All the code in this repository is licensed under the MIT License. However each original data source may have a different license.
21
-
So before using harmonized data please check carefully each data license.
27
+
All the code in this repository is licensed under the MIT License. However each
28
+
original data source may have a different license. So before using harmonized
29
+
data please check carefully each data license.
22
30
23
-
All the data models documented here are offered under a [Creative Commons by Attribution 4.0](https://creativecommons.org/licenses/by/4.0/) License.
31
+
All the data models documented here are offered under a
32
+
[Creative Commons by Attribution 4.0](https://creativecommons.org/licenses/by/4.0/)
33
+
License.
24
34
25
35
## Data Models adoption
26
36
27
-
To support the adoption, we created a short [guideline](specs/howto.md)
28
-
for the usage of data models.
37
+
To support the adoption, we created a short [guideline](specs/howto.md) for the
38
+
usage of data models.
29
39
30
40
## JSON Schemas
31
41
32
-
We intend to provide a [JSON Schema](http://json-schema.org/) for every harmonized data model. In the future all the
33
-
documentation could be generated from a JSON Schema, as it is part of our roadmap. The different JSON Schemas usually
34
-
depend on common JSON Schema definitions found at the root directory of this repository.
42
+
We intend to provide a [JSON Schema](http://json-schema.org/) for every
43
+
harmonized data model. In the future all the documentation could be generated
44
+
from a JSON Schema, as it is part of our roadmap. The different JSON Schemas
45
+
usually depend on common JSON Schema definitions found at the root directory of
46
+
this repository.
35
47
36
-
There are different online JSON Schema Validators, for instance: [http://jsonschemalint.com/](http://jsonschemalint.com/).
37
-
For the development of these schemas the [AJV JSON Schema Validator](https://github.com/epoberezkin/ajv) is being used. For
38
-
using it just install it through npm:
48
+
There are different online JSON Schema Validators, for instance:
49
+
[http://jsonschemalint.com/](http://jsonschemalint.com/). For the development of
50
+
these schemas the
51
+
[AJV JSON Schema Validator](https://github.com/epoberezkin/ajv) is being used.
52
+
For using it just install it through npm:
39
53
40
54
```
41
55
npm install ajv
@@ -44,47 +58,61 @@ using it just install it through npm:
44
58
45
59
A `validate.sh` script is provided for convenience.
46
60
47
-
**Note**: JSON Schemas only capture the NGSI simplified representation, this means that to test the JSON schema examples with
48
-
a [FIWARE NGSI version 2](http://fiware.github.io/specifications/ngsiv2/stable) API implementation, you need to use the `keyValues`
49
-
mode (`options=keyValues`).
61
+
**Note**: JSON Schemas only capture the NGSI simplified representation, this
62
+
means that to test the JSON schema examples with a
63
+
[FIWARE NGSI version 2](http://fiware.github.io/specifications/ngsiv2/stable)
64
+
API implementation, you need to use the `keyValues` mode (`options=keyValues`).
50
65
51
66
## How to contribute
52
67
53
-
Contributions should come in the form of pull requests.
68
+
Contributions should come in the form of pull requests.
54
69
55
70
New data models should be added under a folder structured as follows:
56
-
-`specs/`
57
-
-`NewModel/`
58
-
-`doc/`
59
-
-`spec.md`: A data model description based on the [data model template](datamodel_template.md), e.g. [spec.md of WeatherObserved](specs/Weather/WeatherObserved/doc/spec.md).
60
-
-`README.md`: A summary file (as an extract from the spec file), e.g. [README.md of WeatherObserved](specs/Weather/WeatherObserved/README.md)
61
-
-`schema.json`: The JSON Schema definition, e.g. [schema.json of WeatherObserved](specs/Weather/WeatherObserved/schema.json)
62
-
-`example.json`: One or more JSON example file, e.g. [example.json of WeatherObserved](specs/Weather/WeatherObserved/example.json)
63
-
64
-
The name of the folder should match the entity type used in the JSON Schema (e.g. `NewModel`). For data models including more entities, a hierarchical folder should be used. The father folder can include common JSON schemas shared among the entities. e.g.:
65
-
66
-
-`specs/`
67
-
-`NewModel/`
68
-
-`doc/`
69
-
-`spec.md`
70
-
-`README.md`
71
-
-`newmodel-schema.json`: the common schema for the different entities.
72
-
-`NewModelEntityOne/`
73
-
-`doc/`
74
-
-`spec.md`
75
-
-`README.md`
76
-
-`schema.json`
77
-
-`example.json`
78
-
-`NewModelEntityTwo/`
79
-
-`doc/`
80
-
-`spec.md`
81
-
-`README.md`
82
-
-`schema.json`
83
-
-`example.json`
84
-
85
-
To facilitate contributions and their validation, we developed a tool that is also used for the Continuous Integration of FIWARE Data Models. The FIWARE Data Model validator checks the adherence of each data model to the [FIWARE Data Models guidelines](specs/guidelines.md).
86
-
87
-
For using it just install it through npm:
71
+
72
+
-`specs/`
73
+
-`NewModel/`
74
+
-`doc/`
75
+
-`spec.md`: A data model description based on the
76
+
[data model template](datamodel_template.md), e.g.
77
+
[spec.md of WeatherObserved](specs/Weather/WeatherObserved/doc/spec.md).
78
+
-`README.md`: A summary file (as an extract from the spec file), e.g.
79
+
[README.md of WeatherObserved](specs/Weather/WeatherObserved/README.md)
80
+
-`schema.json`: The JSON Schema definition, e.g.
81
+
[schema.json of WeatherObserved](specs/Weather/WeatherObserved/schema.json)
82
+
-`example.json`: One or more JSON example file, e.g.
83
+
[example.json of WeatherObserved](specs/Weather/WeatherObserved/example.json)
84
+
85
+
The name of the folder should match the entity type used in the JSON Schema
86
+
(e.g. `NewModel`). For data models including more entities, a hierarchical
87
+
folder should be used. The father folder can include common JSON schemas shared
88
+
among the entities. e.g.:
89
+
90
+
-`specs/`
91
+
-`NewModel/`
92
+
-`doc/`
93
+
-`spec.md`
94
+
-`README.md`
95
+
-`newmodel-schema.json`: the common schema for the different
96
+
entities.
97
+
-`NewModelEntityOne/`
98
+
-`doc/`
99
+
-`spec.md`
100
+
-`README.md`
101
+
-`schema.json`
102
+
-`example.json`
103
+
-`NewModelEntityTwo/`
104
+
-`doc/`
105
+
-`spec.md`
106
+
-`README.md`
107
+
-`schema.json`
108
+
-`example.json`
109
+
110
+
To facilitate contributions and their validation, we developed a tool that is
111
+
also used for the Continuous Integration of FIWARE Data Models. The FIWARE Data
112
+
Model validator checks the adherence of each data model to the
113
+
[FIWARE Data Models guidelines](specs/guidelines.md).
114
+
115
+
For using it just install it through npm:
88
116
89
117
```
90
118
npm install -g fiware-model-validator
@@ -95,10 +123,10 @@ More details are available in the [validator documentation](validator).
Copy file name to clipboardExpand all lines: specs/Alert/README.md
+16-8
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,25 @@
1
1
# Alert data model
2
2
3
3
## Description
4
-
This entity models an alert and could be used to send alerts related to traffic jam, accidents, weather conditions, high level of pollutants and so on.
5
-
The purpose of the model is to support the generation of notifications for a user or trigger other actions,
6
-
based on such alerts.
7
4
8
-
An alert is generated by a specific situation. The main features of an alert is that it is not predictable and it is not a recurrent data. That means that an alert could be an accident or a high level of pollutants measure, additionally it could be the fall down of a patient or a car driving in the opposite direction.
5
+
This entity models an alert and could be used to send alerts related to traffic
6
+
jam, accidents, weather conditions, high level of pollutants and so on. The
7
+
purpose of the model is to support the generation of notifications for a user or
8
+
trigger other actions, based on such alerts.
9
9
10
-
Some examples of context data are: type of alert (traffic, suspicious activities, and pollution, etc.), severity, location and so on.
10
+
An alert is generated by a specific situation. The main features of an alert is
11
+
that it is not predictable and it is not a recurrent data. That means that an
12
+
alert could be an accident or a high level of pollutants measure, additionally
13
+
it could be the fall down of a patient or a car driving in the opposite
14
+
direction.
11
15
12
-
**Note**: JSON Schemas only capture the NGSI simplified representation, this means that to test the JSON schema examples with
13
-
a [FIWARE NGSI version 2](http://fiware.github.io/specifications/ngsiv2/stable) API implementation, you need to use the `keyValues`
14
-
mode (`options=keyValues`).
16
+
Some examples of context data are: type of alert (traffic, suspicious
17
+
activities, and pollution, etc.), severity, location and so on.
18
+
19
+
**Note**: JSON Schemas only capture the NGSI simplified representation, this
20
+
means that to test the JSON schema examples with a
21
+
[FIWARE NGSI version 2](http://fiware.github.io/specifications/ngsiv2/stable)
22
+
API implementation, you need to use the `keyValues` mode (`options=keyValues`).
0 commit comments