Skip to content

Latest commit

 

History

History
196 lines (190 loc) · 9 KB

Air-Quality-Observed.md

File metadata and controls

196 lines (190 loc) · 9 KB

Air Quality Observed

This entity contains a harmonised description of the air quality observed at a particular location and time. This entity is primarily associated with the vertical segment of the environment and may also be used in smart homes, smart cities, agriculture, industry and related IoT applications.

Attribute Name Attribute Type Description Constraint
id @id Provides a unique identifier for an instance of the entity either in the form of a URI (i.e. either a publicly accessible URL or a URN). Mandatory
type @type Defines the type of the entity. Mandatory
createdAt TemporalProperty Indicates the date/ time that the instance of the entity was created in ISO 8601 format. The value of this will be set by the server when the entity was created. Mandatory
modifiedAt TemporalProperty Indicates the date/ time when the entity was last modified in ISO 8601 format. The value of this will be set by the server when the entity was modified, if the entity has not been modified it may have a null value. Optional
source Property Specifies the URL to the source of this data (either organisation or where relevant more specific source) Recommended
dataProvider Property Specifies the URL to information about the provider of this information Recommended
entityVersion Property The entity specification version as a number. A version number of 2.0 or later denotes the entity is represented using NGSI-LD Recommended
name Property The name of the air quality observation location. Optional
location GeoProperty The geo location (point/ polygon) for this observation. Mandatory
POI Relationship A reference to the Point of Interest (i.e. monitoring station) that this observation was reported from. Recommended
stationCode Property The station code for the air quality monitoring device/ station. Optional
devices Relationship Reference to the IoT devices (i.e. sensors) which generated the air quality observations. Recommended
observedAt DateTime Indicates the date/time the observation was recorded. Recommended
airQualityIndex Property Indicates the subjective Air Quality Index nominally according to a specified standard such as the US EPA (https://www3.epa.gov/airnow/aqi_brochure_02_14.pdf). Optional
CO Property Indicates the level of observed Carbon Monoxide nominally in units of microgrammes per cubic metre. Optional
NO Property Indicates the level of observed Nitrogen Monoxide nominally in units of microgrammes per cubic metre. Optional
NO2 Property Indicates the level of observed Nitrogen Dioxide nominally in units of microgrammes per cubic metre. Optional
NOx Property Indicates the level of observed Nitrous Oxides (excluding Nitrogen Dioxide) nominally in units of microgrammes per cubic metre. Optional
O3 Property Indicates the level of observed Ozone nominally in units of microgrammes per cubic metre. Optional
PM2.5 Property Indicates the level of observed Particulate Matter (under 2.5 microns in size) nominally in units of microgrammes per cubic metre. Optional
PM10 Property Indicates the level of observed Particulate Matter (under 10 microns in size) nominally in units of microgrammes per cubic metre. Optional
SO2 Property Indicates the level of observed Suplhur Dioxide nominally in units of microgrammes per cubic metre. Optional
dateObserved DateTime Indicates the date/time the observation was recorded.

Note this field was defined for use with NGSIv2 and is now deprecated. For new entities and applications replace with observedAt
Deprecated

NGSI-LD Context Definition

The following NGSI-LD context definition applies to the Air Quality Observed entity

Download context definition.

{
    "@context": {
        "source": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/source",
        "dataProvider": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dataprovider",
        "entityVersion": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/entityversion",
        "name": "https://schema.org/name",
        "location": "http://uri.etsi.org/ngsi-ld/location",
        "POI": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/poi",
        "stationCode": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/stationcode",
        "devices": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/devices",
        "airQualityIndex": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/airqualityindex",
        "CO": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/co",
        "NO": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/no",
        "NO2": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/no2",
        "NOx": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/nox",
        "O3": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/o3",
        "PM2.5": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/pm2.5",
        "PM10": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/pm10",
        "SO2": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/so2",
        "dateObserved": {
            "@type": "DateTime",
            "@id": "https://www.gsma.com/iot/iot-big-data/ngsi-ld/dateobserved"
        }
    }
}

Example of Air Quality Observed Entity

The following is an example instance of the Air Quality Observed entity

Download example entity definition.

{
    "@context": [
        "https://forge.etsi.org/gitlab/NGSI-LD/NGSI-LD/raw/master/coreContext/ngsi-ld-core-context.json",
        "https://raw.githubusercontent.com/GSMADeveloper/NGSI-LD-Entities/master/examples/Air-Quality-Observed-context.jsonld"
    ],
    "id": "urn:ngsi-ld:AirQualityObserved:c9f32b35-a185-48e2-835f-c521efc294ab",
    "type": "AirQualityObserved",
    "createdAt": "2017-01-01T01:20:00Z",
    "modifiedAt": "2017-05-04T12:30:00Z",
    "source": "https://source.example.com",
    "dataProvider": "https://provider.example.com",
    "entityVersion": 2.0,
    "name": {
        "type": "Property",
        "value": "London Walbrook Building"
    },
    "location": {
        "type": "GeoProperty",
        "value": {
            "type": "Point",
            "coordinates": [
                -104.99404,
                39.75621
            ]
        }
    },
    "POI": {
        "type": "Relationship",
        "object": "urn:ngsi-ld:POI:b16f4666-5a6b-11e8-be71-3b0aa1fc6248"
    },
    "stationCode": {
        "type": "Property",
        "value": "LW101"
    },
    "devices": {
        "type": "Relationship",
        "object": [
            "urn:ngsi-ld:Device:e8bbad7e-46db-11e8-b23a-8bb626923249",
            "urn:ngsi-ld:Device:ef379c6c-46db-11e8-90ae-d3c85fee58c1",
            "urn:ngsi-ld:Device:f581d088-46db-11e8-96f8-33f0aaf9d24d",
            "urn:ngsi-ld:0be5c6ea-46dc-11e8-b16b-0ff93e4638ff"
        ]
    },
    "observedAt": {
        "type": "Property",
        "value": "2017-05-04T10:18:16Z"
    },
    "airQualityIndex": {
        "type": "Property",
        "value": {
            "value": 238,
            "unitText": "US EPA AQI"
        },
        "observedAt": "2017-05-04T12:30:00Z"
    },
    "CO": {
        "type": "Property",
        "value": {
            "value": 0.8,
            "unitText": "microgramme per cubic metre"
        },
        "unitCode": "GQ",
        "observedAt": "2017-05-04T12:30:00Z"
    },
    "NO": {
        "type": "Property",
        "value": {
            "value": 137,
            "unitText": "microgramme per cubic metre"
        },
        "unitCode": "GQ",
        "observedAt": "2017-05-04T12:30:00Z"
    },
    "NO2": {
        "type": "Property",
        "value": {
            "value": 63,
            "unitText": "microgramme per cubic metre"
        },
        "unitCode": "GQ",
        "observedAt": "2017-05-04T12:30:00Z"
    },
    "NOx": {
        "type": "Property",
        "value": {
            "value": 273,
            "unitText": "microgramme per cubic metre"
        },
        "unitCode": "GQ",
        "observedAt": "2017-05-04T12:30:00Z"
    },
    "O3": {
        "type": "Property",
        "value": {
            "value": 300,
            "unitText": "microgramme per cubic metre"
        },
        "unitCode": "GQ",
        "observedAt": "2017-05-04T12:30:00Z"
    },
    "PM2.5": {
        "type": "Property",
        "value": {
            "value": 187,
            "unitText": "microgramme per cubic metre"
        },
        "unitCode": "GQ",
        "observedAt": "2017-05-04T12:30:00Z"
    },
    "PM10": {
        "type": "Property",
        "value": {
            "value": 50,
            "unitText": "microgramme per cubic metre"
        },
        "unitCode": "GQ",
        "observedAt": "2017-05-04T12:30:00Z"
    },
    "SO2": {
        "type": "Property",
        "value": {
            "value": 7,
            "unitText": "microgramme per cubic metre"
        },
        "unitCode": "GQ",
        "observedAt": "2017-05-04T12:30:00Z"
    }
}