Skip to content

Commit 80ff16a

Browse files
Carbon Footprint
1 parent 9e1ebf1 commit 80ff16a

7 files changed

Lines changed: 197 additions & 0 deletions

File tree

CarbonFootprint/ADOPTERS.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
description: This is a compilation list of the current adopters of the data model Carbon Footprint of the Subject Environmental Data
2+
currentAdopters:
3+
- adopter: Raquel Franquelo
4+
description: Software developer working on energy consumption tracking
5+
mail: rfranquelo@purpleblob.net
6+
organization: Purple Blob
7+
project: Carbon Footprint Tracker
8+
comments: Using the model to integrate carbon emissions data into energy monitoring system.
9+
startDate: 2025-04-15
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"id": "CarbonFootprint:TransportFleet",
3+
"type": "CarbonFootprint",
4+
"emissionSource": {
5+
"type": "Text",
6+
"value": "Transport"
7+
},
8+
"CO2eq": {
9+
"type": "Number",
10+
"value": 25.5
11+
},
12+
"emissionDate": {
13+
"type": "DateTime",
14+
"value": "2025-05-12T10:00:00Z"
15+
},
16+
"location": {
17+
"type": "geo:json",
18+
"value": {
19+
"type": "Point",
20+
"coordinates": [-3.70379, 40.41678]
21+
}
22+
},
23+
"relatedSource": {
24+
"type": "URI",
25+
"value": "urn:ngsi-ld:Source:001"
26+
},
27+
"description": {
28+
"type": "Text",
29+
"value": "Annual emissions from a vehicle fleet."
30+
},
31+
"tags": {
32+
"type": "array",
33+
"value": [
34+
"transport",
35+
"CO2",
36+
"annual"
37+
]
38+
}
39+
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"id": "urn:ngsi-ld:CarbonFootprint:001",
3+
"type": "CarbonFootprint",
4+
"emissionSource": {
5+
"type": "Property",
6+
"value": "Transport"
7+
},
8+
"CO2eq": {
9+
"type": "Property",
10+
"value": 25.5
11+
},
12+
"emissionDate": {
13+
"type": "Property",
14+
"value": {
15+
"@type": "date-time",
16+
"@value":"2025-05-12T10:00:00Z"
17+
}
18+
},
19+
"location": {
20+
"type": "GeoProperty",
21+
"value": {
22+
"type": "Point",
23+
"coordinates": [-3.70379, 40.41678]
24+
}
25+
},
26+
"relatedSource": {
27+
"type": "Relationship",
28+
"object": "urn:ngsi-ld:Source:001"
29+
},
30+
"description": {
31+
"type": "Property",
32+
"value": "Annual emissions from a vehicle fleet."
33+
},
34+
"tags": {
35+
"type": "Property",
36+
"value": [
37+
"transport",
38+
"CO2",
39+
"annual"
40+
]
41+
},
42+
"@context": [
43+
"https://smart-data-models.github.io/dataModel.Environment/context.jsonld"
44+
]
45+
}
46+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"id": "urn:ngsi-ld:CarbonFootprint:001",
3+
"type": "CarbonFootprint",
4+
"emissionSource": "Transport",
5+
"CO2eq": 25.5,
6+
"emissionDate": "2025-05-12T10:00:00Z",
7+
"location": {
8+
"type": "Point",
9+
"coordinates": [ -3.70379, 40.41678 ]
10+
},
11+
"relatedSource": "urn:ngsi-ld:Source:001",
12+
"description": "Annual emissions from a vehicle fleet.",
13+
"tags": ["transport", "CO2", "annual"]
14+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
3+
"id": "urn:ngsi-ld:CarbonFootprint:001",
4+
"type": "CarbonFootprint",
5+
"emissionSource": "Transport",
6+
"CO2eq": 25.5,
7+
"emissionDate": "2025-05-12T10:00:00Z",
8+
"location": {
9+
"type": "Point",
10+
"coordinates": [
11+
-3.70379,
12+
40.41678
13+
]
14+
},
15+
"relatedSource": "urn:ngsi-ld:Source:001",
16+
"description": "Annual emissions from a vehicle fleet.",
17+
"tags": [
18+
"transport",
19+
"CO2",
20+
"annual"
21+
],
22+
"@context": [
23+
"https://smart-data-models.github.io/dataModel.Environment/context.jsonld"
24+
]
25+
}

CarbonFootprint/notes.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
notesPrevious:
2+
- "This data model is part of the Environmental Data models collection."
3+
- "It aims to standardize the representation of carbon footprints in CO2 equivalent."
4+
- "Before using this model, ensure that you have reviewed the JSON schema and example usage."
5+
6+
notesEnd:
7+
- "For any contributions or suggestions, feel free to open an issue or submit a pull request."
8+
- "Stay updated with future changes by following the project on GitHub."
9+
- "Ensure that the data conforms to the latest version of the schema for compatibility."

CarbonFootprint/schema.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$schemaVersion": "0.0.1",
4+
"$id": "https://smart-data-models.github.io/Environment/CarbonFootprint/schema.json",
5+
"title": "Smart Data models - CarbonFootprint schema",
6+
"license": "MIT",
7+
"modelTags": "Carbon, Emissions, CO2eq",
8+
"description": "Data model to represent the carbon footprint in CO2 equivalents.",
9+
"type": "object",
10+
"allOf": [
11+
{
12+
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
13+
},
14+
{
15+
"$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons"
16+
},
17+
{
18+
"properties": {
19+
"type": {
20+
"type": "string",
21+
"description": "Property. NGSI Entity type. It must be 'CarbonFootprint'"
22+
},
23+
"emissionSource": {
24+
"type": "string",
25+
"description": "Property. Source of emissions (e.g., Transport, Energy, Industry)"
26+
},
27+
"CO2eq": {
28+
"type": "number",
29+
"minimum": 0,
30+
"description": "Property. Model:'https://schema.org/Number'. Amount of emissions in tons of CO2 equivalent"
31+
},
32+
"emissionDate": {
33+
"type": "string",
34+
"format": "date-time",
35+
"description": "Property. Model:'https://schema.org/Text'. Date and time of the measurement"
36+
},
37+
"relatedSource": {
38+
"type": "string",
39+
"format": "uri",
40+
"description": "Relationship. Reference to the data source or related entity"
41+
},
42+
"tags": {
43+
"type": "array",
44+
"items": {
45+
"type": "string",
46+
"description": "Property. Tag name"
47+
},
48+
"description": "Property. Tags associated with the carbon footprint calculation."
49+
}
50+
}
51+
}
52+
],
53+
"required": ["id", "type"]
54+
55+
}

0 commit comments

Comments
 (0)