@@ -30,10 +30,12 @@ const combinations: {
30
30
id : number ;
31
31
name : string ;
32
32
cubes : ChartConfig [ "cubes" ] ;
33
+ sourceUrl : string ;
33
34
} [ ] = [
34
35
{
35
36
id : 1 ,
36
37
name : "Photovoltaik + Hydropowerplants" ,
38
+ sourceUrl : "https://int.lindas.admin.ch/query" ,
37
39
cubes : [
38
40
{
39
41
iri : "https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/14" ,
@@ -66,6 +68,7 @@ const combinations: {
66
68
{
67
69
id : 2 ,
68
70
name : "Photovoltaik + Photovoltaik GEB" ,
71
+ sourceUrl : "https://int.lindas.admin.ch/query" ,
69
72
cubes : [
70
73
{
71
74
iri : "https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/14" ,
@@ -94,6 +97,7 @@ const combinations: {
94
97
{
95
98
id : 3 ,
96
99
name : "NFI Cube + Electrical consumption" ,
100
+ sourceUrl : "https://int.lindas.admin.ch/query" ,
97
101
cubes : [
98
102
{
99
103
iri : "https://environment.ld.admin.ch/foen/nfi/nfi_T-changes/cube/2024-1" ,
@@ -142,6 +146,24 @@ const combinations: {
142
146
} ,
143
147
] ,
144
148
} ,
149
+ {
150
+ id : 4 ,
151
+ name : "NFI Change + Photovoltaik" ,
152
+ sourceUrl : "https://lindas.admin.ch/query" ,
153
+ cubes : [
154
+ {
155
+ iri : "https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/9" ,
156
+ joinBy :
157
+ "https://energy.ld.admin.ch/sfoe/bfe_ogd84_einmalverguetung_fuer_photovoltaikanlagen/Kanton" ,
158
+ filters : { } ,
159
+ } ,
160
+ {
161
+ iri : "https://environment.ld.admin.ch/foen/nfi/nfi_T-changes/cube/2024-1" ,
162
+ joinBy : "https://environment.ld.admin.ch/foen/nfi/unitOfReference" ,
163
+ filters : { } ,
164
+ } ,
165
+ ] ,
166
+ } ,
145
167
] ;
146
168
const useStyles = makeStyles ( ( theme : Theme ) => ( {
147
169
row : {
@@ -154,7 +176,7 @@ export const JoinBy = () => {
154
176
const commonQueryVariables = {
155
177
locale : "en" ,
156
178
sourceType : "sparql" ,
157
- sourceUrl : "https://int.lindas.admin.ch/query" ,
179
+ sourceUrl : combination . sourceUrl ,
158
180
} ;
159
181
160
182
const [ { data : componentsData , fetching : fetchingComponents } ] =
@@ -221,7 +243,7 @@ export const JoinBy = () => {
221
243
>
222
244
{ combinations . map ( ( combination ) => (
223
245
< MenuItem key = { combination . id } value = { combination . id } >
224
- { combination . name }
246
+ { combination . name } < small > ( { combination . sourceUrl } ) </ small >
225
247
</ MenuItem >
226
248
) ) }
227
249
</ Select >
0 commit comments