@hestia-earth/data-api 0.0.2-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/.dockerignore +25 -0
  2. package/.env.test +7 -0
  3. package/.eslintignore +7 -0
  4. package/.eslintrc.js +11 -0
  5. package/.gitlab-ci.yml +125 -0
  6. package/.mocharc.js +8 -0
  7. package/.nvrm +1 -0
  8. package/.nycrc +15 -0
  9. package/Dockerfile +17 -0
  10. package/cleanup-docker.sh +4 -0
  11. package/commitlint.config.js +1 -0
  12. package/database/index.ts +76 -0
  13. package/database/migrations/001.do.init.sql +53 -0
  14. package/database/migrations/002.do.add-aggregated-sites.sql +16 -0
  15. package/database/migrations/003.do.add-generated-period-cols.sql +7 -0
  16. package/database/migrations/index.ts +36 -0
  17. package/database/seed/common.ts +7 -0
  18. package/database/seed/index.ts +55 -0
  19. package/database/seed/local/index.ts +28 -0
  20. package/database/seed/production/index.ts +3 -0
  21. package/database/seed/staging/index.ts +5 -0
  22. package/database/seed/test/index.ts +28 -0
  23. package/dev.ts +3 -0
  24. package/dist/aggregated-nodes/model/index.d.ts +25 -0
  25. package/dist/aggregated-nodes/model/index.js +11 -0
  26. package/dist/models.d.ts +1 -0
  27. package/dist/models.js +17 -0
  28. package/docker-compose.yml +42 -0
  29. package/envs/.master.env +7 -0
  30. package/envs/.staging.env +7 -0
  31. package/index.js +3 -0
  32. package/package.json +105 -0
  33. package/run-docker.sh +14 -0
  34. package/run-test.sh +5 -0
  35. package/scripts/run-lambda.ts +10 -0
  36. package/scripts/run-migrations.ts +18 -0
  37. package/scripts/run-resetdb.ts +18 -0
  38. package/scripts/run-seed.ts +18 -0
  39. package/serverless.yml +76 -0
  40. package/src/aggregated-nodes/model/index.ts +37 -0
  41. package/src/aggregated-nodes/routes/pg-get-filters.ts +44 -0
  42. package/src/aggregated-nodes/routes/pg-get.ts +50 -0
  43. package/src/aggregated-nodes/routes.spec.ts +242 -0
  44. package/src/aggregated-nodes/routes.ts +56 -0
  45. package/src/aggregated-nodes/services/pg-get-filters.ts +52 -0
  46. package/src/aggregated-nodes/services/pg-get.ts +77 -0
  47. package/src/app.spec.ts +34 -0
  48. package/src/app.ts +59 -0
  49. package/src/config.ts +21 -0
  50. package/src/cors.spec.ts +32 -0
  51. package/src/cors.ts +7 -0
  52. package/src/errors.spec.ts +114 -0
  53. package/src/errors.ts +121 -0
  54. package/src/index.spec.ts +94 -0
  55. package/src/index.ts +14 -0
  56. package/src/lambdas/sentry.ts +12 -0
  57. package/src/lambdas/update-aggregated-nodes/handler.spec.ts +86 -0
  58. package/src/lambdas/update-aggregated-nodes/handler.ts +141 -0
  59. package/src/logger.spec.ts +20 -0
  60. package/src/logger.ts +45 -0
  61. package/src/maintenance.spec.ts +76 -0
  62. package/src/maintenance.ts +19 -0
  63. package/src/models.ts +1 -0
  64. package/src/routes.spec.ts +33 -0
  65. package/src/routes.ts +9 -0
  66. package/src/settings/model/index.ts +21 -0
  67. package/src/settings/routes/get.spec.ts +33 -0
  68. package/src/settings/routes/get.ts +3 -0
  69. package/src/settings/routes/update.spec.ts +33 -0
  70. package/src/settings/routes/update.ts +5 -0
  71. package/src/settings/routes.spec.ts +75 -0
  72. package/src/settings/routes.ts +21 -0
  73. package/src/settings/services/get.spec.ts +62 -0
  74. package/src/settings/services/get.ts +18 -0
  75. package/src/settings/services/update.spec.ts +118 -0
  76. package/src/settings/services/update.ts +47 -0
  77. package/src/slack.spec.ts +42 -0
  78. package/src/slack.ts +17 -0
  79. package/src/swagger/routes.ts +57 -0
  80. package/src/types/async-express-errors/index.d.ts +1 -0
  81. package/src/types/express/index.d.ts +10 -0
  82. package/src/utils/endpoint-wrapper.spec.ts +80 -0
  83. package/src/utils/endpoint-wrapper.ts +16 -0
  84. package/src/utils/middleware.spec.ts +154 -0
  85. package/src/utils/middleware.ts +33 -0
  86. package/test/Dockerfile +13 -0
  87. package/test/docker-compose.yml +40 -0
  88. package/test/fixtures/aggregated-nodes/get.ts +184 -0
  89. package/test/fixtures/update-aggregated-nodes/abyssinianKaleSeedWhole-cycle_pivoted.csv +5 -0
  90. package/test/fixtures/update-aggregated-nodes/abyssinianKaleSeedWhole-cycle_pivoted.csv.cycle.json +458 -0
  91. package/test/fixtures/update-aggregated-nodes/abyssinianKaleSeedWhole-cycle_pivoted.csv.site.json +182 -0
  92. package/test/fixtures/update-aggregated-nodes/abyssinianKaleSeedWhole-impactassessment_pivoted.csv +3 -0
  93. package/test/fixtures/update-aggregated-nodes/abyssinianKaleSeedWhole-impactassessment_pivoted.csv.impactAssessment.json +988 -0
  94. package/test/fixtures/update-aggregated-nodes/abyssinianKaleStraw-impactassessment_pivoted.csv +3 -0
  95. package/test/fixtures/update-aggregated-nodes/cycle-missing-impactassessment_pivoted.csv +3 -0
  96. package/test/fixtures/update-aggregated-nodes/tomatoFruit-cycle_pivoted.csv +5 -0
  97. package/test/fixtures/update-aggregated-nodes/tomatoFruit-cycle_pivoted.csv.cycle.json +584 -0
  98. package/test/fixtures/update-aggregated-nodes/tomatoFruit-cycle_pivoted.csv.site.json +212 -0
  99. package/test/fixtures/update-aggregated-nodes/tomatoFruit-impactassessment_pivoted.csv +3 -0
  100. package/test/fixtures/update-aggregated-nodes/tomatoFruit-impactassessment_pivoted.csv.impactAssessment.json +1002 -0
  101. package/test/prepare.ts +15 -0
  102. package/test/utils.ts +33 -0
  103. package/tsconfig.build.json +13 -0
  104. package/tsconfig.dist.json +14 -0
  105. package/tsconfig.json +37 -0
  106. package/tsconfig.lambdas.json +13 -0
@@ -0,0 +1,40 @@
1
+ version: '3'
2
+
3
+ services:
4
+ test:
5
+ env_file: '../.env.test'
6
+ image: hestia-data-api:test
7
+ build:
8
+ context: ../
9
+ dockerfile: test/Dockerfile
10
+ environment:
11
+ - PGHOST=hestia-data-api-test-db
12
+ - PGUSER=postgres
13
+ - PGDATABASE=postgres
14
+ - PGPASSWORD=password
15
+ - PGPORT=5432
16
+ volumes:
17
+ - ../src:/app/src
18
+ - ../coverage:/app/coverage
19
+ - ./:/app/test
20
+ depends_on:
21
+ db:
22
+ condition: service_healthy
23
+
24
+ db:
25
+ image: postgres:14
26
+ container_name: hestia-data-api-test-db
27
+ ports:
28
+ - 5432:5432
29
+ volumes:
30
+ - postgres:/data/postgres
31
+ environment:
32
+ - POSTGRES_PASSWORD=password
33
+ healthcheck:
34
+ test: ['CMD', 'pg_isready', '-q', '-d', 'postgres', '-U', 'postgres']
35
+ interval: 1s
36
+ timeout: 5s
37
+ retries: 5
38
+
39
+ volumes:
40
+ postgres:
@@ -0,0 +1,184 @@
1
+ export const aggregatedCycles = [
2
+ {
3
+ jsonld_pivoted: {
4
+ '@id': '1',
5
+ '@type': 'Cycle',
6
+ site: { '@id': '1' },
7
+ defaultMethodClassification: 'modelled',
8
+ startDate: '1990',
9
+ endDate: '1999',
10
+ aggregatedQualityScore: 3,
11
+ practices: { baggingFruit: {}, deepRipping: {} },
12
+ products: { wheatGrain: {}, barley: {} }
13
+ }
14
+ },
15
+ {
16
+ jsonld_pivoted: {
17
+ '@id': '2',
18
+ '@type': 'Cycle',
19
+ site: { '@id': '1' },
20
+ defaultMethodClassification: 'physical measurement',
21
+ startDate: '1990',
22
+ endDate: '1999',
23
+ aggregatedQualityScore: 2,
24
+ practices: { earthingUpByHand: {} },
25
+ products: { fishFingerlings: {} }
26
+ }
27
+ },
28
+ {
29
+ jsonld_pivoted: {
30
+ '@id': '3',
31
+ '@type': 'Cycle',
32
+ site: { '@id': '2' },
33
+ defaultMethodClassification: 'expert opinion',
34
+ startDate: '2000',
35
+ endDate: '2009',
36
+ aggregatedQualityScore: 2,
37
+ practices: { baggingFruit: {} },
38
+ products: { apples: {} }
39
+ }
40
+ },
41
+ {
42
+ jsonld_pivoted: {
43
+ '@id': '4',
44
+ '@type': 'Cycle',
45
+ site: { '@id': '3' },
46
+ defaultMethodClassification: 'modelled',
47
+ startDate: '2010',
48
+ endDate: '2019',
49
+ aggregatedQualityScore: 2,
50
+ practices: { baggingFruit: {} },
51
+ products: { apples: {} }
52
+ }
53
+ },
54
+ {
55
+ jsonld_pivoted: {
56
+ '@id': '5',
57
+ '@type': 'Cycle',
58
+ site: { '@id': '3' },
59
+ defaultMethodClassification: 'modelled',
60
+ startDate: '2020',
61
+ endDate: '2029',
62
+ aggregatedQualityScore: 2,
63
+ practices: { baggingFruit: {} },
64
+ products: { apples: {}, cheese: {} }
65
+ }
66
+ },
67
+ {
68
+ jsonld_pivoted: {
69
+ '@id': '6',
70
+ '@type': 'Cycle',
71
+ site: { '@id': '3' },
72
+ defaultMethodClassification: 'unsourced assumption',
73
+ startDate: '2020',
74
+ endDate: '2029',
75
+ aggregatedQualityScore: 2,
76
+ practices: { baggingFruit: {} },
77
+ products: { apples: {}, cheese: {} }
78
+ }
79
+ },
80
+ {
81
+ jsonld_pivoted: {
82
+ '@id': '7',
83
+ '@type': 'Cycle',
84
+ site: { '@id': '3' },
85
+ defaultMethodClassification: 'modelled',
86
+ startDate: '2020',
87
+ endDate: '2029',
88
+ aggregatedQualityScore: 1,
89
+ practices: { baggingFruit: {} },
90
+ products: { apples: {}, cheese: {} }
91
+ }
92
+ },
93
+ {
94
+ jsonld_pivoted: {
95
+ '@id': '8',
96
+ '@type': 'Cycle',
97
+ site: { '@id': '3' },
98
+ defaultMethodClassification: 'modelled',
99
+ startDate: '2020',
100
+ endDate: '2029',
101
+ aggregatedQualityScore: 1,
102
+ practices: { baggingFruit: {} },
103
+ products: { apples: {}, cheese: {} }
104
+ }
105
+ }
106
+ ];
107
+
108
+ export const aggregatedImpactAssessments = [
109
+ {
110
+ jsonld_pivoted: {
111
+ '@id': '1',
112
+ '@type': 'ImpactAssessment',
113
+ cycle: { '@id': '1' },
114
+ startDate: '2000',
115
+ endDate: '2009',
116
+ product: { term: { '@id': 'wheatGrain' } }
117
+ }
118
+ },
119
+ {
120
+ jsonld_pivoted: {
121
+ '@id': '2',
122
+ '@type': 'ImpactAssessment',
123
+ cycle: { '@id': '1' },
124
+ startDate: '2000',
125
+ endDate: '2009',
126
+ product: { term: { '@id': 'barley' } }
127
+ }
128
+ },
129
+ {
130
+ jsonld_pivoted: {
131
+ '@id': '3',
132
+ '@type': 'ImpactAssessment',
133
+ cycle: { '@id': '2' },
134
+ startDate: '2000',
135
+ endDate: '2009',
136
+ product: { term: { '@id': 'fishFingerlings' } }
137
+ }
138
+ },
139
+ {
140
+ jsonld_pivoted: {
141
+ '@id': '4',
142
+ '@type': 'ImpactAssessment',
143
+ cycle: { '@id': '3' },
144
+ startDate: '2000',
145
+ endDate: '2009',
146
+ product: { term: { '@id': 'apples' } }
147
+ }
148
+ }
149
+ ];
150
+
151
+ export const aggregatedSites = [
152
+ {
153
+ jsonld_pivoted: {
154
+ '@id': '1',
155
+ '@type': 'Site',
156
+ country: {
157
+ name: 'Germany',
158
+ '@id': 'GADM-DEU'
159
+ }
160
+ }
161
+ },
162
+ {
163
+ jsonld_pivoted: {
164
+ '@id': '2',
165
+ '@type': 'Site',
166
+ country: {
167
+ name: 'Poland',
168
+ '@id': 'GADM-POL'
169
+ }
170
+ }
171
+ },
172
+ {
173
+ jsonld_pivoted: {
174
+ '@id': '3',
175
+ '@type': 'Site',
176
+ country: {
177
+ name: 'Brazil',
178
+ '@id': 'GADM-BRA'
179
+ }
180
+ }
181
+ }
182
+ ];
183
+
184
+ export const settings = [];
@@ -0,0 +1,5 @@
1
+ cycle.id,site.country.@id,site.country.name,site.siteType,site.name,site.id,site.dataPrivate,site.aggregated,site.aggregatedVersion,site.defaultSource.@id,site.defaultSource.name,cycle.startDate,cycle.endDate,cycle.functionalUnit,cycle.startDateDefinition,cycle.dataPrivate,cycle.defaultMethodClassification,cycle.defaultMethodClassificationDescription,cycle.site.id,cycle.aggregated,cycle.aggregatedVersion,cycle.completeness.operations,cycle.completeness.electricityFuel,cycle.completeness.material,cycle.completeness.transport,cycle.completeness.fertiliser,cycle.completeness.soilAmendments,cycle.completeness.pesticidesAntibiotics,cycle.completeness.water,cycle.completeness.animalFeed,cycle.completeness.liveAnimals,cycle.completeness.other,cycle.completeness.products,cycle.completeness.cropResidue,cycle.completeness.excreta,cycle.completeness.waste,cycle.numberOfCycles,cycle.name,cycle.defaultSource.@id,cycle.defaultSource.name,cycle.aggregatedQualityScore,cycle.emissions.112TrichlorotrifluoroethaneToAirInputsProduction.value,cycle.emissions.11DichlorotetrafluoroethaneToAirInputsProduction.value,cycle.emissions.bromochlorodifluoromethaneToAirInputsProduction.value,cycle.emissions.ch4ToAirAquacultureSystems.value,cycle.emissions.ch4ToAirEntericFermentation.value,cycle.emissions.ch4ToAirFloodedRice.value,cycle.emissions.ch4ToAirInputsProductionFossil.value,cycle.emissions.ch4ToAirInputsProductionNonFossil.value,cycle.emissions.chlorodifluoromethaneToAirInputsProduction.value,cycle.emissions.co2ToAirFuelCombustion.value,cycle.emissions.co2ToAirInputsProduction.value,cycle.emissions.co2ToAirLimeHydrolysis.value,cycle.emissions.co2ToAirOrganicSoilCultivation.value,cycle.emissions.co2ToAirUreaHydrolysis.value,cycle.emissions.dichlorodifluoromethaneToAirInputsProduction.value,cycle.emissions.n2OToAirAquacultureSystemsDirect.value,cycle.emissions.n2OToAirAquacultureSystemsIndirect.value,cycle.emissions.n2OToAirCropResidueDecompositionDirect.value,cycle.emissions.n2OToAirExcretaDirect.value,cycle.emissions.n2OToAirExcretaIndirect.value,cycle.emissions.n2OToAirFuelCombustionDirect.value,cycle.emissions.n2OToAirInorganicFertiliserDirect.value,cycle.emissions.n2OToAirInorganicFertiliserIndirect.value,cycle.emissions.n2OToAirInputsProduction.value,cycle.emissions.n2OToAirOrganicFertiliserDirect.value,cycle.emissions.n2OToAirOrganicFertiliserIndirect.value,cycle.emissions.n2OToAirOrganicSoilCultivationDirect.value,cycle.emissions.n2ToAirAquacultureSystems.value,cycle.emissions.nErosionInputsProduction.value,cycle.emissions.nToSurfaceWaterAquacultureSystems.value,cycle.emissions.nToSurfaceWaterInputsProduction.value,cycle.emissions.nh3ToAirAquacultureSystems.value,cycle.emissions.nh3ToAirInorganicFertiliser.value,cycle.emissions.nh3ToAirInputsProduction.value,cycle.emissions.nh3ToAirOrganicFertiliser.value,cycle.emissions.nh4ToGroundwaterInputsProduction.value,cycle.emissions.no3ToGroundwaterInputsProduction.value,cycle.emissions.no3ToSurfaceWaterAquacultureSystems.value,cycle.emissions.noxToAirAquacultureSystems.value,cycle.emissions.noxToAirCropResidueDecomposition.value,cycle.emissions.noxToAirExcreta.value,cycle.emissions.noxToAirFuelCombustion.value,cycle.emissions.noxToAirInorganicFertiliser.value,cycle.emissions.noxToAirInputsProduction.value,cycle.emissions.noxToAirOrganicFertiliser.value,cycle.emissions.pErosionInputsProduction.value,cycle.emissions.pToDrainageWaterInputsProduction.value,cycle.emissions.pToGroundwaterInputsProduction.value,cycle.emissions.pToSurfaceWaterAquacultureSystems.value,cycle.emissions.pToSurfaceWaterInputsProduction.value,cycle.emissions.so2ToAirFuelCombustion.value,cycle.emissions.so2ToAirInputsProduction.value,cycle.inputs.CAS-1071-83-6.value,cycle.inputs.ammoniumNitrateKgN.value,cycle.inputs.diesel.value,cycle.inputs.machineryInfrastructureDepreciatedAmountPerCycle.value,cycle.inputs.organicFertiliserUnspecifiedKgMass.value,cycle.inputs.seed.value,cycle.products.aboveGroundCropResidueRemoved.value,cycle.products.abyssinianKaleSeedWhole.value,cycle.products.abyssinianKaleStraw.value,site.measurements.cationExchangeCapacityPerKgSoil.value,site.measurements.clayContent.value,site.measurements.drainageClass.value,site.measurements.ecoClimateZone.value,site.measurements.erodibility.value,site.measurements.eutricCambisols.value,site.measurements.heavyWinterPrecipitation.value,site.measurements.netPrimaryProduction.value,site.measurements.nutrientLossToAquaticEnvironment.value,site.measurements.organicCarbonPerKgSoil.value,site.measurements.potentialEvapotranspirationAnnual.value,site.measurements.potentialEvapotranspirationLongTermAnnualMean.value,site.measurements.precipitationAnnual.value,site.measurements.precipitationLongTermAnnualMean.value,site.measurements.precipitationMonthly.value,site.measurements.sandContent.value,site.measurements.siltContent.value,site.measurements.slope.value,site.measurements.slopeLength.value,site.measurements.soilPh.value,site.measurements.temperatureAnnual.value,site.measurements.temperatureLongTermAnnualMean.value,site.measurements.totalNitrogenPerKgSoil.value,site.measurements.totalPhosphorusPerKgSoil.value
2
+ -,GADM-POL,Poland,cropland,"Abyssinian kale, seed (whole) - Poland - 2010-2019",abyssinianKaleSeedWhole-poland-2010-2019,false,true,0.15.1,pu2wmwp8yfv7,Hestia Team (2023),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,15.7648,22,1.3333333333333333,3,0.0276563245669308,100,1,2,20,10,670,631.3873015873015,810.9623960529765,726.8927020301658,297.72893772893747,42,36,1,0.03,6.599999999999999,8.520176188151064,7.671970621744815,5.601999998092651,0.25303214682436836
3
+ -,GADM-POL,Poland,cropland,"Abyssinian kale, seed (whole) - Poland - Conventional, Non Irrigated - 2010-2019",abyssinianKaleSeedWhole-poland-conventional-non-irrigated-2010-2019,false,true,0.15.1,pu2wmwp8yfv7,Hestia Team (2023),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,15.7648,22,1.3333333333333333,3,0.0276563245669308,100,1,2,20,10,670,631.3873015873015,810.9623960529765,726.8927020301658,297.72893772893747,42,36,1,0.03,6.599999999999999,8.520176188151064,7.671970621744815,5.601999998092651,0.25303214682436836
4
+ abyssinianKaleSeedWhole-poland-conventional-non-irrigated-2010-2019,,,,,,,,,,,2010,2019,1 ha,start of year,false,modelled,aggregated data,abyssinianKaleSeedWhole-poland-conventional-non-irrigated-2010-2019,true,0.15.1,false,false,true,false,true,true,true,false,true,true,true,true,false,true,true,3,"Abyssinian kale, seed (whole) - Poland - Conventional, Non Irrigated - 2010-2019",pu2wmwp8yfv7,Hestia Team (2023),2,6.4641508972789e-9,1.3035708604655794e-7,1.7640974449529045e-7,0,0,0,0.0829178677451453,0.0006479143201644225,0.0000010421751748445345,192.84364791666667,69.14349712373681,0,0,0,3.533156994196919e-7,0,0,0,0,0,0.008273418333333333,1.6472888298269115,0.3855073573744045,0.17257596015401547,0.3953493191584588,0.1602529449560934,0,0,0.6515966655828987,0,0,0,1.5,0.058159818146966205,0,0,0,0,0,0,0,1.9849512264583336,1.7215708857150245,0.16686887901712283,0.4131770125716059,0.1567684746702513,0.014072079707984091,0.000008488147167789383,0,0.03339869044680493,0.12166791666666667,0.16800298937653904,3.24,100,9.605361842105262,0.3547826086956522,300,13,2216.6666667283334,1510,2530,,,,,,,,,,,,,,,,,,,,,,,,
5
+ abyssinianKaleSeedWhole-poland-2010-2019,,,,,,,,,,,2010,2019,1 ha,start of year,false,modelled,aggregated data,abyssinianKaleSeedWhole-poland-2010-2019,true,0.15.1,false,false,true,false,true,true,true,false,true,true,true,true,false,true,true,3,"Abyssinian kale, seed (whole) - Poland - 2010-2019",pu2wmwp8yfv7,Hestia Team (2023),2,6.4641508972789e-9,1.3035708604655794e-7,1.7640974449529045e-7,0,0,0,0.0829178677451453,0.0006479143201644225,0.0000010421751748445345,192.84364791666667,69.14349712373681,0,0,0,3.533156994196919e-7,0,0,0,0,0,0.008273418333333333,1.6472888298269115,0.3855073573744045,0.17257596015401547,0.3953493191584588,0.1602529449560934,0,0,0.6515966655828987,0,0,0,1.5,0.058159818146966205,0,0,0,0,0,0,0,1.9849512264583336,1.7215708857150247,0.16686887901712283,0.4131770125716059,0.1567684746702513,0.014072079707984091,0.000008488147167789383,0,0.03339869044680493,0.12166791666666667,0.16800298937653904,3.24,100,9.605361842105262,0.3547826086956522,300,13,2216.6666667283334,1510,2530,,,,,,,,,,,,,,,,,,,,,,,,
@@ -0,0 +1,458 @@
1
+ [
2
+ {
3
+ "@id": "abyssinianKaleSeedWhole-poland-conventional-non-irrigated-2010-2019",
4
+ "startDate": 2010,
5
+ "endDate": 2019,
6
+ "functionalUnit": "1 ha",
7
+ "startDateDefinition": "start of year",
8
+ "dataPrivate": false,
9
+ "defaultMethodClassification": "modelled",
10
+ "defaultMethodClassificationDescription": "aggregated data",
11
+ "site": {
12
+ "@id": "abyssinianKaleSeedWhole-poland-conventional-non-irrigated-2010-2019"
13
+ },
14
+ "aggregated": true,
15
+ "aggregatedVersion": "0.15.1",
16
+ "completeness": {
17
+ "operations": false,
18
+ "electricityFuel": false,
19
+ "material": true,
20
+ "transport": false,
21
+ "fertiliser": true,
22
+ "soilAmendments": true,
23
+ "pesticidesAntibiotics": true,
24
+ "water": false,
25
+ "animalFeed": true,
26
+ "liveAnimals": true,
27
+ "other": true,
28
+ "products": true,
29
+ "cropResidue": false,
30
+ "excreta": true,
31
+ "waste": true
32
+ },
33
+ "numberOfCycles": 3,
34
+ "name": "Abyssinian kale, seed (whole) - Poland - Conventional, Non Irrigated - 2010-2019",
35
+ "defaultSource": {
36
+ "@id": "pu2wmwp8yfv7",
37
+ "name": "Hestia Team (2023)"
38
+ },
39
+ "aggregatedQualityScore": 2,
40
+ "emissions": {
41
+ "112TrichlorotrifluoroethaneToAirInputsProduction": {
42
+ "value": 6.4641508972789e-9
43
+ },
44
+ "11DichlorotetrafluoroethaneToAirInputsProduction": {
45
+ "value": 1.3035708604655794e-7
46
+ },
47
+ "bromochlorodifluoromethaneToAirInputsProduction": {
48
+ "value": 1.7640974449529045e-7
49
+ },
50
+ "ch4ToAirAquacultureSystems": {
51
+ "value": 0
52
+ },
53
+ "ch4ToAirEntericFermentation": {
54
+ "value": 0
55
+ },
56
+ "ch4ToAirFloodedRice": {
57
+ "value": 0
58
+ },
59
+ "ch4ToAirInputsProductionFossil": {
60
+ "value": 0.0829178677451453
61
+ },
62
+ "ch4ToAirInputsProductionNonFossil": {
63
+ "value": 0.0006479143201644225
64
+ },
65
+ "chlorodifluoromethaneToAirInputsProduction": {
66
+ "value": 0.0000010421751748445345
67
+ },
68
+ "co2ToAirFuelCombustion": {
69
+ "value": 192.84364791666667
70
+ },
71
+ "co2ToAirInputsProduction": {
72
+ "value": 69.14349712373681
73
+ },
74
+ "co2ToAirLimeHydrolysis": {
75
+ "value": 0
76
+ },
77
+ "co2ToAirOrganicSoilCultivation": {
78
+ "value": 0
79
+ },
80
+ "co2ToAirUreaHydrolysis": {
81
+ "value": 0
82
+ },
83
+ "dichlorodifluoromethaneToAirInputsProduction": {
84
+ "value": 3.533156994196919e-7
85
+ },
86
+ "n2OToAirAquacultureSystemsDirect": {
87
+ "value": 0
88
+ },
89
+ "n2OToAirAquacultureSystemsIndirect": {
90
+ "value": 0
91
+ },
92
+ "n2OToAirCropResidueDecompositionDirect": {
93
+ "value": 0
94
+ },
95
+ "n2OToAirExcretaDirect": {
96
+ "value": 0
97
+ },
98
+ "n2OToAirExcretaIndirect": {
99
+ "value": 0
100
+ },
101
+ "n2OToAirFuelCombustionDirect": {
102
+ "value": 0.008273418333333333
103
+ },
104
+ "n2OToAirInorganicFertiliserDirect": {
105
+ "value": 1.6472888298269115
106
+ },
107
+ "n2OToAirInorganicFertiliserIndirect": {
108
+ "value": 0.3855073573744045
109
+ },
110
+ "n2OToAirInputsProduction": {
111
+ "value": 0.17257596015401547
112
+ },
113
+ "n2OToAirOrganicFertiliserDirect": {
114
+ "value": 0.3953493191584588
115
+ },
116
+ "n2OToAirOrganicFertiliserIndirect": {
117
+ "value": 0.1602529449560934
118
+ },
119
+ "n2OToAirOrganicSoilCultivationDirect": {
120
+ "value": 0
121
+ },
122
+ "n2ToAirAquacultureSystems": {
123
+ "value": 0
124
+ },
125
+ "nErosionInputsProduction": {
126
+ "value": 0.6515966655828987
127
+ },
128
+ "nToSurfaceWaterAquacultureSystems": {
129
+ "value": 0
130
+ },
131
+ "nToSurfaceWaterInputsProduction": {
132
+ "value": 0
133
+ },
134
+ "nh3ToAirAquacultureSystems": {
135
+ "value": 0
136
+ },
137
+ "nh3ToAirInorganicFertiliser": {
138
+ "value": 1.5
139
+ },
140
+ "nh3ToAirInputsProduction": {
141
+ "value": 0.058159818146966205
142
+ },
143
+ "nh3ToAirOrganicFertiliser": {
144
+ "value": 0
145
+ },
146
+ "nh4ToGroundwaterInputsProduction": {
147
+ "value": 0
148
+ },
149
+ "no3ToGroundwaterInputsProduction": {
150
+ "value": 0
151
+ },
152
+ "no3ToSurfaceWaterAquacultureSystems": {
153
+ "value": 0
154
+ },
155
+ "noxToAirAquacultureSystems": {
156
+ "value": 0
157
+ },
158
+ "noxToAirCropResidueDecomposition": {
159
+ "value": 0
160
+ },
161
+ "noxToAirExcreta": {
162
+ "value": 0
163
+ },
164
+ "noxToAirFuelCombustion": {
165
+ "value": 1.9849512264583336
166
+ },
167
+ "noxToAirInorganicFertiliser": {
168
+ "value": 1.7215708857150245
169
+ },
170
+ "noxToAirInputsProduction": {
171
+ "value": 0.16686887901712283
172
+ },
173
+ "noxToAirOrganicFertiliser": {
174
+ "value": 0.4131770125716059
175
+ },
176
+ "pErosionInputsProduction": {
177
+ "value": 0.1567684746702513
178
+ },
179
+ "pToDrainageWaterInputsProduction": {
180
+ "value": 0.014072079707984091
181
+ },
182
+ "pToGroundwaterInputsProduction": {
183
+ "value": 0.000008488147167789383
184
+ },
185
+ "pToSurfaceWaterAquacultureSystems": {
186
+ "value": 0
187
+ },
188
+ "pToSurfaceWaterInputsProduction": {
189
+ "value": 0.03339869044680493
190
+ },
191
+ "so2ToAirFuelCombustion": {
192
+ "value": 0.12166791666666667
193
+ },
194
+ "so2ToAirInputsProduction": {
195
+ "value": 0.16800298937653904
196
+ }
197
+ },
198
+ "inputs": {
199
+ "CAS-1071-83-6": {
200
+ "value": 3.24
201
+ },
202
+ "ammoniumNitrateKgN": {
203
+ "value": 100
204
+ },
205
+ "diesel": {
206
+ "value": 9.605361842105262
207
+ },
208
+ "machineryInfrastructureDepreciatedAmountPerCycle": {
209
+ "value": 0.3547826086956522
210
+ },
211
+ "organicFertiliserUnspecifiedKgMass": {
212
+ "value": 300
213
+ },
214
+ "seed": {
215
+ "value": 13
216
+ }
217
+ },
218
+ "products": {
219
+ "aboveGroundCropResidueRemoved": {
220
+ "value": 2216.6666667283334
221
+ },
222
+ "abyssinianKaleSeedWhole": {
223
+ "value": 1510
224
+ },
225
+ "abyssinianKaleStraw": {
226
+ "value": 2530
227
+ }
228
+ }
229
+ },
230
+ {
231
+ "@id": "abyssinianKaleSeedWhole-poland-2010-2019",
232
+ "startDate": 2010,
233
+ "endDate": 2019,
234
+ "functionalUnit": "1 ha",
235
+ "startDateDefinition": "start of year",
236
+ "dataPrivate": false,
237
+ "defaultMethodClassification": "modelled",
238
+ "defaultMethodClassificationDescription": "aggregated data",
239
+ "site": {
240
+ "@id": "abyssinianKaleSeedWhole-poland-2010-2019"
241
+ },
242
+ "aggregated": true,
243
+ "aggregatedVersion": "0.15.1",
244
+ "completeness": {
245
+ "operations": false,
246
+ "electricityFuel": false,
247
+ "material": true,
248
+ "transport": false,
249
+ "fertiliser": true,
250
+ "soilAmendments": true,
251
+ "pesticidesAntibiotics": true,
252
+ "water": false,
253
+ "animalFeed": true,
254
+ "liveAnimals": true,
255
+ "other": true,
256
+ "products": true,
257
+ "cropResidue": false,
258
+ "excreta": true,
259
+ "waste": true
260
+ },
261
+ "numberOfCycles": 3,
262
+ "name": "Abyssinian kale, seed (whole) - Poland - 2010-2019",
263
+ "defaultSource": {
264
+ "@id": "pu2wmwp8yfv7",
265
+ "name": "Hestia Team (2023)"
266
+ },
267
+ "aggregatedQualityScore": 2,
268
+ "emissions": {
269
+ "112TrichlorotrifluoroethaneToAirInputsProduction": {
270
+ "value": 6.4641508972789e-9
271
+ },
272
+ "11DichlorotetrafluoroethaneToAirInputsProduction": {
273
+ "value": 1.3035708604655794e-7
274
+ },
275
+ "bromochlorodifluoromethaneToAirInputsProduction": {
276
+ "value": 1.7640974449529045e-7
277
+ },
278
+ "ch4ToAirAquacultureSystems": {
279
+ "value": 0
280
+ },
281
+ "ch4ToAirEntericFermentation": {
282
+ "value": 0
283
+ },
284
+ "ch4ToAirFloodedRice": {
285
+ "value": 0
286
+ },
287
+ "ch4ToAirInputsProductionFossil": {
288
+ "value": 0.0829178677451453
289
+ },
290
+ "ch4ToAirInputsProductionNonFossil": {
291
+ "value": 0.0006479143201644225
292
+ },
293
+ "chlorodifluoromethaneToAirInputsProduction": {
294
+ "value": 0.0000010421751748445345
295
+ },
296
+ "co2ToAirFuelCombustion": {
297
+ "value": 192.84364791666667
298
+ },
299
+ "co2ToAirInputsProduction": {
300
+ "value": 69.14349712373681
301
+ },
302
+ "co2ToAirLimeHydrolysis": {
303
+ "value": 0
304
+ },
305
+ "co2ToAirOrganicSoilCultivation": {
306
+ "value": 0
307
+ },
308
+ "co2ToAirUreaHydrolysis": {
309
+ "value": 0
310
+ },
311
+ "dichlorodifluoromethaneToAirInputsProduction": {
312
+ "value": 3.533156994196919e-7
313
+ },
314
+ "n2OToAirAquacultureSystemsDirect": {
315
+ "value": 0
316
+ },
317
+ "n2OToAirAquacultureSystemsIndirect": {
318
+ "value": 0
319
+ },
320
+ "n2OToAirCropResidueDecompositionDirect": {
321
+ "value": 0
322
+ },
323
+ "n2OToAirExcretaDirect": {
324
+ "value": 0
325
+ },
326
+ "n2OToAirExcretaIndirect": {
327
+ "value": 0
328
+ },
329
+ "n2OToAirFuelCombustionDirect": {
330
+ "value": 0.008273418333333333
331
+ },
332
+ "n2OToAirInorganicFertiliserDirect": {
333
+ "value": 1.6472888298269115
334
+ },
335
+ "n2OToAirInorganicFertiliserIndirect": {
336
+ "value": 0.3855073573744045
337
+ },
338
+ "n2OToAirInputsProduction": {
339
+ "value": 0.17257596015401547
340
+ },
341
+ "n2OToAirOrganicFertiliserDirect": {
342
+ "value": 0.3953493191584588
343
+ },
344
+ "n2OToAirOrganicFertiliserIndirect": {
345
+ "value": 0.1602529449560934
346
+ },
347
+ "n2OToAirOrganicSoilCultivationDirect": {
348
+ "value": 0
349
+ },
350
+ "n2ToAirAquacultureSystems": {
351
+ "value": 0
352
+ },
353
+ "nErosionInputsProduction": {
354
+ "value": 0.6515966655828987
355
+ },
356
+ "nToSurfaceWaterAquacultureSystems": {
357
+ "value": 0
358
+ },
359
+ "nToSurfaceWaterInputsProduction": {
360
+ "value": 0
361
+ },
362
+ "nh3ToAirAquacultureSystems": {
363
+ "value": 0
364
+ },
365
+ "nh3ToAirInorganicFertiliser": {
366
+ "value": 1.5
367
+ },
368
+ "nh3ToAirInputsProduction": {
369
+ "value": 0.058159818146966205
370
+ },
371
+ "nh3ToAirOrganicFertiliser": {
372
+ "value": 0
373
+ },
374
+ "nh4ToGroundwaterInputsProduction": {
375
+ "value": 0
376
+ },
377
+ "no3ToGroundwaterInputsProduction": {
378
+ "value": 0
379
+ },
380
+ "no3ToSurfaceWaterAquacultureSystems": {
381
+ "value": 0
382
+ },
383
+ "noxToAirAquacultureSystems": {
384
+ "value": 0
385
+ },
386
+ "noxToAirCropResidueDecomposition": {
387
+ "value": 0
388
+ },
389
+ "noxToAirExcreta": {
390
+ "value": 0
391
+ },
392
+ "noxToAirFuelCombustion": {
393
+ "value": 1.9849512264583336
394
+ },
395
+ "noxToAirInorganicFertiliser": {
396
+ "value": 1.7215708857150247
397
+ },
398
+ "noxToAirInputsProduction": {
399
+ "value": 0.16686887901712283
400
+ },
401
+ "noxToAirOrganicFertiliser": {
402
+ "value": 0.4131770125716059
403
+ },
404
+ "pErosionInputsProduction": {
405
+ "value": 0.1567684746702513
406
+ },
407
+ "pToDrainageWaterInputsProduction": {
408
+ "value": 0.014072079707984091
409
+ },
410
+ "pToGroundwaterInputsProduction": {
411
+ "value": 0.000008488147167789383
412
+ },
413
+ "pToSurfaceWaterAquacultureSystems": {
414
+ "value": 0
415
+ },
416
+ "pToSurfaceWaterInputsProduction": {
417
+ "value": 0.03339869044680493
418
+ },
419
+ "so2ToAirFuelCombustion": {
420
+ "value": 0.12166791666666667
421
+ },
422
+ "so2ToAirInputsProduction": {
423
+ "value": 0.16800298937653904
424
+ }
425
+ },
426
+ "inputs": {
427
+ "CAS-1071-83-6": {
428
+ "value": 3.24
429
+ },
430
+ "ammoniumNitrateKgN": {
431
+ "value": 100
432
+ },
433
+ "diesel": {
434
+ "value": 9.605361842105262
435
+ },
436
+ "machineryInfrastructureDepreciatedAmountPerCycle": {
437
+ "value": 0.3547826086956522
438
+ },
439
+ "organicFertiliserUnspecifiedKgMass": {
440
+ "value": 300
441
+ },
442
+ "seed": {
443
+ "value": 13
444
+ }
445
+ },
446
+ "products": {
447
+ "aboveGroundCropResidueRemoved": {
448
+ "value": 2216.6666667283334
449
+ },
450
+ "abyssinianKaleSeedWhole": {
451
+ "value": 1510
452
+ },
453
+ "abyssinianKaleStraw": {
454
+ "value": 2530
455
+ }
456
+ }
457
+ }
458
+ ]