@piveau/dpi 0.1.0-beta.39 → 0.1.0-beta.41

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 (24) hide show
  1. package/dist/assets/dpi.css +1 -1
  2. package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +393 -314
  3. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +105 -69
  4. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +95 -57
  5. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +83 -55
  6. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +116 -75
  7. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +145 -124
  8. package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +41 -41
  9. package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +123 -108
  10. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +440 -258
  11. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +37 -32
  12. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +6 -6
  13. package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
  14. package/dist/data-provider-interface/components/ContactPage.vue.js +95 -89
  15. package/dist/data-provider-interface/components/DistLicense.vue.js +1 -1
  16. package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +401 -396
  17. package/dist/data-provider-interface/components/HVDPage.vue.js +56 -55
  18. package/dist/data-provider-interface/components/PublisherPage.vue.js +94 -89
  19. package/dist/data-provider-interface/components/TempResPage.vue.js +122 -104
  20. package/dist/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
  21. package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +128 -118
  22. package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +40 -28
  23. package/dist/data-provider-interface/views/InputPage.vue.js +375 -746
  24. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
- import { toRef as Z, ref as ee, toValue as q, computed as j, watch as K } from "vue";
1
+ import { toRef as Z, ref as ee, toValue as q, computed as _, watch as G } from "vue";
2
2
  import { useAsyncState as te } from "@vueuse/core";
3
3
  import { defineJsonldResolver as ie, dcatDatasetTransformer as re, datasetResolvers as oe } from "@piveau/jsonld";
4
4
  import { isEmpty as ne } from "lodash-es";
5
- function z(e) {
5
+ function V(e) {
6
6
  return e == null ? [] : Array.isArray(e) ? e : [e];
7
7
  }
8
8
  function o(e) {
@@ -19,61 +19,61 @@ function ae(e) {
19
19
  )
20
20
  );
21
21
  }
22
- function Te(e, r) {
23
- const { enabled: i, hubSearchUrl: t } = r, n = Z(i), { safeTransform: p } = ie({
22
+ function ve(e, r) {
23
+ const { enabled: i, hubSearchUrl: t } = r, n = Z(i), { safeTransform: m } = ie({
24
24
  baseUrl: t,
25
25
  resolvers: oe(),
26
26
  transformer: re
27
27
  }), c = ee([]), {
28
- state: u,
29
- isReady: b,
30
- isLoading: g,
31
- error: m,
28
+ state: p,
29
+ isReady: g,
30
+ isLoading: y,
31
+ error: b,
32
32
  execute: B
33
33
  } = te(
34
34
  async () => {
35
35
  var D;
36
- const l = await p(q(e));
36
+ const l = await m(q(e));
37
37
  if (l.error)
38
38
  return c.value.push({
39
39
  code: "transform_failed",
40
40
  message: l.error.message
41
41
  }), null;
42
- const y = l.data;
43
- return (!y || !((D = y["dpi:isDPIv3"]) != null && D["@value"])) && c.value.push({
42
+ const h = l.data;
43
+ return (!h || !((D = h["dpi:isDPIv3"]) != null && D["@value"])) && c.value.push({
44
44
  code: "not_dpi_v3",
45
- message: `The dataset is not a DPI v3 dataset. ID ${y["@id"]}`
45
+ message: `The dataset is not a DPI v3 dataset. ID ${h["@id"]}`
46
46
  }), {
47
- dpiData: ge(y),
48
- data: y
47
+ dpiData: ge(h),
48
+ data: h
49
49
  };
50
50
  },
51
51
  null,
52
52
  { immediate: !1 }
53
- ), h = j(
54
- () => n.value && !g.value && !!b.value
55
- ), R = j(
56
- () => n.value && !!h.value
57
- ), v = j(() => R.value), P = j(() => {
53
+ ), R = _(
54
+ () => n.value && !y.value && !!g.value
55
+ ), L = _(
56
+ () => n.value && !!R.value
57
+ ), T = _(() => L.value), w = _(() => {
58
58
  var l;
59
- return (l = u.value) == null ? void 0 : l.dpiData;
60
- }), w = j(() => {
59
+ return (l = p.value) == null ? void 0 : l.dpiData;
60
+ }), P = _(() => {
61
61
  var l;
62
- return (l = u.value) == null ? void 0 : l.data;
62
+ return (l = p.value) == null ? void 0 : l.data;
63
63
  });
64
- return K(
64
+ return G(
65
65
  () => q(e),
66
66
  (l) => l && n.value ? B() : null
67
- ), K(w, (l) => {
67
+ ), G(P, (l) => {
68
68
  console.log("jsonld resolved result:", l);
69
- }), K(m, (l) => {
69
+ }), G(b, (l) => {
70
70
  console.log("jsonld error:", l);
71
71
  }), {
72
- processedInput: u,
73
- isProcessedInputReady: h,
74
- result: P,
75
- isMaterialized: R,
76
- isReady: v,
72
+ processedInput: p,
73
+ isProcessedInputReady: R,
74
+ result: w,
75
+ isMaterialized: L,
76
+ isReady: T,
77
77
  errors: c
78
78
  };
79
79
  }
@@ -106,7 +106,7 @@ function d(e, r = "de") {
106
106
  }
107
107
  return e["@language"] && e["@value"] ? e["@value"] : f(e);
108
108
  }
109
- function k(e) {
109
+ function E(e) {
110
110
  return {
111
111
  uri: e.uri,
112
112
  label: e.label,
@@ -114,9 +114,9 @@ function k(e) {
114
114
  "@value": e.label
115
115
  };
116
116
  }
117
- function T(e, r) {
117
+ function v(e, r) {
118
118
  const i = e.prefLabel;
119
- return k({
119
+ return E({
120
120
  uri: e["@id"] || e["purl:identifier"] || "",
121
121
  label: i ? d(i) : e["purl:identifier"] || ""
122
122
  });
@@ -133,7 +133,7 @@ function S(e, r = !0) {
133
133
  };
134
134
  }
135
135
  function H(e, r = "de") {
136
- return e ? z(e).map((t) => typeof t == "string" ? S({
136
+ return e ? V(e).map((t) => typeof t == "string" ? S({
137
137
  "@value": t,
138
138
  "@language": r
139
139
  }) : t && typeof t == "object" ? t["@language"] && t["@value"] ? S({
@@ -148,7 +148,7 @@ function H(e, r = "de") {
148
148
  })) : [];
149
149
  }
150
150
  function ce(e, r) {
151
- return e ? z(e).map(
151
+ return e ? V(e).map(
152
152
  (t) => S({
153
153
  "@type": r,
154
154
  "@value": f(t)
@@ -171,7 +171,7 @@ function le(e) {
171
171
  discoverabilityPage: [{ isValid: !0 }]
172
172
  };
173
173
  if (e["dcatap:hvdCategory"]) {
174
- const i = z(
174
+ const i = V(
175
175
  e["dcatap:hvdCategory"]
176
176
  ).filter(Boolean);
177
177
  r.hvdPage = i == null ? void 0 : i.map((t) => ({
@@ -181,7 +181,7 @@ function le(e) {
181
181
  }));
182
182
  }
183
183
  if (e["dcat:theme"]) {
184
- const i = z(e["dcat:theme"]);
184
+ const i = V(e["dcat:theme"]);
185
185
  r.discoverabilityPage = [
186
186
  { isValid: !0 },
187
187
  ...i.map(
@@ -236,8 +236,8 @@ function fe(e) {
236
236
  var r, i;
237
237
  return {
238
238
  "dcatde:politicalGeocodingURI": (r = e["dcatapde:politicalGeocodingURI"]) == null ? void 0 : r.map((t) => {
239
- var u;
240
- const p = {
239
+ var p;
240
+ const m = {
241
241
  districtKey: "Kreis",
242
242
  governmentDistrictKey: "Bezirk",
243
243
  municipalityKey: "Gemeindeschlüssel",
@@ -246,26 +246,26 @@ function fe(e) {
246
246
  regionalKey: "Regionalschlüssel"
247
247
  };
248
248
  let c = t["@id"].split("/").slice(-2, -1)[0];
249
- return c = p[c] || c, {
249
+ return c = m[c] || c, {
250
250
  isValid: !0,
251
251
  uri: t["@id"],
252
- id: ((u = t.prefLabel) == null ? void 0 : u.de) || t["@id"].split("/").pop(),
252
+ id: ((p = t.prefLabel) == null ? void 0 : p.de) || t["@id"].split("/").pop(),
253
253
  label: d(t.altLabel),
254
254
  inVoc: c
255
255
  };
256
256
  }),
257
257
  "dcat:temporalResolution": (i = e["dct:temporal"]) == null ? void 0 : i.reduce((t, n) => {
258
- const c = o(n["dcat:startDate"]), u = o(n["dcat:endDate"]), b = f(c) || "", g = f(u) || "", m = typeof c != "string" && (c == null ? void 0 : c["@type"]) === "http://www.w3.org/2001/XMLSchema#dateTime" ? "dateTime" : "date", B = m === "date" ? b : b.split("T")[0], h = m === "date" ? g : g.split("T")[0], R = m === "dateTime" ? b.split("T")[1] : "", v = m === "dateTime" ? g.split("T")[1] : "";
258
+ const c = o(n["dcat:startDate"]), p = o(n["dcat:endDate"]), g = f(c) || "", y = f(p) || "", b = typeof c != "string" && (c == null ? void 0 : c["@type"]) === "http://www.w3.org/2001/XMLSchema#dateTime" ? "dateTime" : "date", B = b === "date" ? g : g.split("T")[0], R = b === "date" ? y : y.split("T")[0], L = b === "dateTime" ? g.split("T")[1] : "", T = b === "dateTime" ? y.split("T")[1] : "";
259
259
  return {
260
260
  isValid: !0,
261
261
  type: "dct:PeriodOfTime",
262
262
  "dct:temporal": [
263
263
  {
264
- dataType: m,
264
+ dataType: b,
265
265
  "dcat:startDate": B,
266
- "dcat:endDate": h,
267
- startTime: R || "",
268
- endTime: v || ""
266
+ "dcat:endDate": R,
267
+ startTime: L || "",
268
+ endTime: T || ""
269
269
  }
270
270
  ]
271
271
  };
@@ -273,7 +273,7 @@ function fe(e) {
273
273
  };
274
274
  }
275
275
  function ue(e, r) {
276
- var t, n, p, c, u, b, g, m, B, h, R, v, P, w, l, y, I, D, U, V, x;
276
+ var t, n, m, c, p, g, y, b, B, R, L, T, w, P, l, h, U, D, x, F, j, z, M;
277
277
  if (!e)
278
278
  return {};
279
279
  const i = o(e["spdx:checksum"]);
@@ -281,11 +281,14 @@ function ue(e, r) {
281
281
  isValid: !0,
282
282
  id: r + 1,
283
283
  "dcat:accessURL": f(o(e["dcat:accessURL"])) || "",
284
+ "dcat:downloadURL": ((t = e["dcat:downloadURL"]) == null ? void 0 : t.map((u) => ({
285
+ "@id": f(u)
286
+ }))) || [],
284
287
  "dct:format": {
285
288
  // redundancy in label and title for better compatibility
286
- label: ((t = o(e["dct:format"])) == null ? void 0 : t["purl:identifier"]) || "",
287
- title: ((n = o(e["dct:format"])) == null ? void 0 : n["purl:identifier"]) || "",
288
- uri: ((p = o(e["dct:format"])) == null ? void 0 : p["@id"]) || ""
289
+ label: ((n = o(e["dct:format"])) == null ? void 0 : n["purl:identifier"]) || "",
290
+ title: ((m = o(e["dct:format"])) == null ? void 0 : m["purl:identifier"]) || "",
291
+ uri: ((c = o(e["dct:format"])) == null ? void 0 : c["@id"]) || ""
289
292
  },
290
293
  "dct:title": d(e["dct:title"]),
291
294
  "dct:description": d(e["dct:description"]),
@@ -296,64 +299,70 @@ function ue(e, r) {
296
299
  "dct:license": e["dct:license"] ? [
297
300
  {
298
301
  isValid: !0,
299
- uri: ((c = o(e["dct:license"])) == null ? void 0 : c["@id"]) || "",
302
+ uri: ((p = o(e["dct:license"])) == null ? void 0 : p["@id"]) || "",
300
303
  "dcterms:license": d(
301
- (u = o(e["dct:license"])) == null ? void 0 : u.altLabel
304
+ (g = o(e["dct:license"])) == null ? void 0 : g.altLabel
302
305
  ) || "",
303
306
  label: d(
304
- (b = o(e["dct:license"])) == null ? void 0 : b.prefLabel
307
+ (y = o(e["dct:license"])) == null ? void 0 : y.prefLabel
305
308
  ) || "",
306
309
  title: d(
307
- (g = o(e["dct:license"])) == null ? void 0 : g.prefLabel
310
+ (b = o(e["dct:license"])) == null ? void 0 : b.prefLabel
308
311
  ) || ""
309
312
  }
310
313
  ] : [],
311
- "dct:accessRights": e["dct:accessRights"] ? o(T(e["dct:accessRights"])) : [],
314
+ "dct:accessRights": e["dct:accessRights"] ? o(v(e["dct:accessRights"])) : [],
312
315
  "dcatap:availability": {
313
316
  // Redundant label and title for better compatibility
314
- label: ((m = o(e["dcatap:availability"])) == null ? void 0 : m.prefLabel) || "",
315
- title: ((B = o(e["dcatap:availability"])) == null ? void 0 : B.prefLabel) || "",
316
- uri: ((h = o(e["dcatap:availability"])) == null ? void 0 : h["@id"]) || ""
317
+ label: ((B = o(e["dcatap:availability"])) == null ? void 0 : B.prefLabel) || "",
318
+ title: ((R = o(e["dcatap:availability"])) == null ? void 0 : R.prefLabel) || "",
319
+ uri: ((L = o(e["dcatap:availability"])) == null ? void 0 : L["@id"]) || ""
317
320
  },
318
- "dct:language": ((R = e["dct:language"]) == null ? void 0 : R.map((L) => T(L)).filter(Boolean)) || [],
319
- "dcat:mediaType": k({
321
+ "dct:language": ((T = e["dct:language"]) == null ? void 0 : T.map((u) => v(u)).filter(Boolean)) || [],
322
+ "dcat:mediaType": E({
320
323
  label: d(
321
- (v = o(e["dcat:mediaType"])) == null ? void 0 : v.prefLabel
324
+ (w = o(e["dcat:mediaType"])) == null ? void 0 : w.prefLabel
322
325
  ) || "",
323
326
  uri: ((P = o(e["dcat:mediaType"])) == null ? void 0 : P["@id"]) || ""
324
327
  }),
325
- "dcat:compressFormat": k({
328
+ "dcat:compressFormat": E({
326
329
  label: d(
327
- (w = o(e["dcat:compressFormat"])) == null ? void 0 : w.prefLabel
330
+ (l = o(e["dcat:compressFormat"])) == null ? void 0 : l.prefLabel
328
331
  ) || "",
329
- uri: ((l = o(e["dcat:compressFormat"])) == null ? void 0 : l["@id"]) || ""
332
+ uri: ((h = o(e["dcat:compressFormat"])) == null ? void 0 : h["@id"]) || ""
330
333
  }),
331
- "dcat:packageFormat": k({
334
+ "dcat:packageFormat": E({
332
335
  label: d(
333
- (y = o(e["dcat:packageFormat"])) == null ? void 0 : y.prefLabel
336
+ (U = o(e["dcat:packageFormat"])) == null ? void 0 : U.prefLabel
334
337
  ) || "",
335
- uri: ((I = o(e["dcat:packageFormat"])) == null ? void 0 : I["@id"]) || ""
338
+ uri: ((D = o(e["dcat:packageFormat"])) == null ? void 0 : D["@id"]) || ""
336
339
  }),
337
- "adms:status": ((D = o(e["adms:status"])) == null ? void 0 : D["@id"]) || "",
340
+ "adms:status": ((x = o(e["adms:status"])) == null ? void 0 : x["@id"]) || "",
338
341
  checksum: {
339
342
  title: f(o(i == null ? void 0 : i["spdx:checksumValue"])),
340
- "spdx:checksum": ((U = f(o(i == null ? void 0 : i["spdx:algorithm"]))) == null ? void 0 : U.split("_").pop()) || "",
341
- uri: (V = f(
343
+ "spdx:checksum": ((F = f(o(i == null ? void 0 : i["spdx:algorithm"]))) == null ? void 0 : F.split("_").pop()) || "",
344
+ uri: (j = f(
342
345
  o(i == null ? void 0 : i["spdx:algorithm"])
343
- )) == null ? void 0 : V.replace("spdx:", "http://spdx.org/rdf/terms#")
346
+ )) == null ? void 0 : j.replace("spdx:", "http://spdx.org/rdf/terms#")
344
347
  },
345
348
  accessServices: ye(e["dcat:accessService"] || []),
346
349
  documentations: he(e["foaf:page"] || []),
347
- conformsToItems: (x = e["dct:conformsTo"]) == null ? void 0 : x.map((L, M) => ({
350
+ conformsToItems: (z = e["dct:conformsTo"]) == null ? void 0 : z.map((u, I) => ({
348
351
  // for some reason dct:conformsTo is different from the one on dcat:dataset level
349
- id: M + 1,
350
- "dcat:accessURL": L["@id"],
351
- "dct:title": d(L["rdfs:label"]) || "",
352
- "dcat:downloadURL": L["@id"],
352
+ id: I + 1,
353
+ "dcat:accessURL": u["@id"],
354
+ "dct:title": d(u["rdfs:label"]) || "",
355
+ "dcat:downloadURL": u["@id"],
353
356
  // redundancy to match properties on dcat:dataset level
354
- "rdfs:label": d(L["rdfs:label"]) || "",
355
- uri: L["@id"]
356
- })).filter(Boolean)
357
+ "rdfs:label": d(u["rdfs:label"]) || "",
358
+ uri: u["@id"]
359
+ })).filter(Boolean),
360
+ policyItems: ((M = e["odrl:hasPolicy"]) == null ? void 0 : M.map((u, I) => ({
361
+ // don't ask
362
+ id: I + 1,
363
+ "dcat:downloadURL": u["@id"],
364
+ "dcat:accessURL": u["@id"]
365
+ }))) || [{ id: 1, "dcat:downloadURL": "", "dcat:accessURL": "" }]
357
366
  };
358
367
  }
359
368
  function pe(e) {
@@ -361,7 +370,7 @@ function pe(e) {
361
370
  "dcat:distribution": []
362
371
  };
363
372
  if (e["dcat:distribution"]) {
364
- const i = z(e["dcat:distribution"]);
373
+ const i = V(e["dcat:distribution"]);
365
374
  r["dcat:distribution"] = i.map((t, n) => ue(t, n)).filter((t) => Object.keys(t).length > 0);
366
375
  }
367
376
  return console.log(r), r;
@@ -372,32 +381,33 @@ function me(e) {
372
381
  };
373
382
  }
374
383
  function be(e) {
375
- var i, t, n, p, c, u, b, g, m, B, h, R, v, P, w, l, y, I, D, U, V, x, L, M, E, G, C;
384
+ var i, t, n, m, c, p, g, y, b, B, R, L, T, w, P, l, h, U, D, x, F, j, z, M, u, I, C;
376
385
  const r = {
377
- "dct:language": (i = e["dct:language"]) == null ? void 0 : i.map((a) => T(a)).filter(Boolean),
386
+ "dct:language": (i = e["dct:language"]) == null ? void 0 : i.map((a) => v(a)).filter(Boolean),
378
387
  "dct:conformsTo": (t = e["dct:conformsTo"]) == null ? void 0 : t.map((a) => ({
379
388
  "rdfs:label": d(a["rdfs:label"]) || "",
380
389
  "@id": a["@id"]
381
390
  })).filter(Boolean),
382
- "dct:accessRights": e["dct:accessRights"] ? s(T(e["dct:accessRights"])) : [],
391
+ "dct:accessRights": e["dct:accessRights"] ? s(v(e["dct:accessRights"])) : [],
392
+ "dct:issued": V(e["dct:issued"]),
383
393
  "dct:provenance": (n = e["dct:provenance"]) == null ? void 0 : n.map((a) => ({
384
394
  "rdfs:label": d(a["rdfs:label"]) || "",
385
395
  uri: a["@id"]
386
396
  })).filter(Boolean),
387
- "dct:accrualPeriodicity": e["dct:accrualPeriodicity"] ? s(T(e["dct:accrualPeriodicity"])) : [],
388
- "dct:type": (p = e["dct:type"]) == null ? void 0 : p.map((a) => T(a)).filter(Boolean),
397
+ "dct:accrualPeriodicity": e["dct:accrualPeriodicity"] ? s(v(e["dct:accrualPeriodicity"])) : [],
398
+ "dct:type": (m = e["dct:type"]) == null ? void 0 : m.map((a) => v(a)).filter(Boolean),
389
399
  "dcat:spatialResolutionInMeters": ((c = e["dcat:spatialResolutionInMeters"]) == null ? void 0 : c.map(N)) || void 0,
390
400
  "dcat:temporalResolution": e["dcat:temporalResolution"] ? e["dcat:temporalResolution"].map(N).map((a) => {
391
- const F = a["@value"].match(
401
+ const O = a["@value"].match(
392
402
  /^P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/
393
403
  );
394
- if (F) {
395
- const [, O, _, Y, $, J, Q] = F.map(
404
+ if (O) {
405
+ const [, k, K, Y, $, J, Q] = O.map(
396
406
  (W) => W || "0"
397
407
  );
398
408
  return {
399
- Year: O,
400
- Month: _,
409
+ Year: k,
410
+ Month: K,
401
411
  Day: Y,
402
412
  Hour: $,
403
413
  Minute: J,
@@ -405,46 +415,46 @@ function be(e) {
405
415
  };
406
416
  }
407
417
  }).filter(Boolean) : void 0,
408
- "dcat:qualifiedRelation": (u = s(
418
+ "dcat:qualifiedRelation": (p = s(
409
419
  e["dcat:qualifiedRelation"]
410
- )) == null ? void 0 : u.filter(Boolean),
411
- "dct:creator": (b = s(e["dct:creator"])) == null ? void 0 : b.filter(Boolean),
412
- "dct:contributor": (g = s(e["dct:contributor"])) == null ? void 0 : g.filter(Boolean),
413
- "dcatde:contributorID": (m = e["dcatapde:contributorID"]) == null ? void 0 : m.map((a) => T(a)).filter(Boolean),
420
+ )) == null ? void 0 : p.filter(Boolean),
421
+ "dct:creator": (g = s(e["dct:creator"])) == null ? void 0 : g.filter(Boolean),
422
+ "dct:contributor": (y = s(e["dct:contributor"])) == null ? void 0 : y.filter(Boolean),
423
+ "dcatde:contributorID": (b = e["dcatapde:contributorID"]) == null ? void 0 : b.map((a) => v(a)).filter(Boolean),
414
424
  "dcatde:geocodingDescription": (B = s(
415
425
  e["dcatapde:geocodingDescription"]
416
426
  )) == null ? void 0 : B.filter(Boolean),
417
- "dct:identifier": (h = e["dct:identifier"]) == null ? void 0 : h.map((a) => ({
427
+ "dct:identifier": (R = e["dct:identifier"]) == null ? void 0 : R.map((a) => ({
418
428
  "@value": a
419
429
  })),
420
- "adms:identifier": (R = s(e["adms:identifier"])) == null ? void 0 : R.filter(Boolean),
421
- "owl:versionInfo": (v = e["owl:versionInfo"]) == null ? void 0 : v.map((a) => ({
430
+ "adms:identifier": (L = s(e["adms:identifier"])) == null ? void 0 : L.filter(Boolean),
431
+ "owl:versionInfo": (T = e["owl:versionInfo"]) == null ? void 0 : T.map((a) => ({
422
432
  "@value": a
423
433
  })),
424
434
  "adms:versionNotes": e["adms:versionNotes"],
425
- "dcatde:legalBasis": (P = s(e["dcatapde:legalBasis"])) == null ? void 0 : P.filter(
435
+ "dcatde:legalBasis": (w = s(e["dcatapde:legalBasis"])) == null ? void 0 : w.filter(
426
436
  Boolean
427
437
  ),
428
- "dct:relation": (w = s(e["dct:relation"])) == null ? void 0 : w.filter(Boolean),
438
+ "dct:relation": (P = s(e["dct:relation"])) == null ? void 0 : P.filter(Boolean),
429
439
  "dcat:landingPage": (l = s(e["dcat:landingPage"])) == null ? void 0 : l.filter(
430
440
  Boolean
431
441
  ),
432
- "prov:wasGeneratedBy": (y = s(e["prov:wasGeneratedBy"])) == null ? void 0 : y.filter(
442
+ "prov:wasGeneratedBy": (h = s(e["prov:wasGeneratedBy"])) == null ? void 0 : h.filter(
433
443
  Boolean
434
444
  ),
435
- "dct:isReferencedBy": (I = s(e["dct:isReferencedBy"])) == null ? void 0 : I.filter(
445
+ "dct:isReferencedBy": (U = s(e["dct:isReferencedBy"])) == null ? void 0 : U.filter(
436
446
  Boolean
437
447
  ),
438
448
  "dct:source": (D = s(e["dct:source"])) == null ? void 0 : D.filter(Boolean),
439
- "dct:hasVersion": (U = s(e["dct:hasVersion"])) == null ? void 0 : U.filter(Boolean),
440
- "dct:isVersionOf": (V = s(e["dct:isVersionOf"])) == null ? void 0 : V.filter(Boolean),
441
- "prov:qualifiedAttribution": (x = s(
449
+ "dct:hasVersion": (x = s(e["dct:hasVersion"])) == null ? void 0 : x.filter(Boolean),
450
+ "dct:isVersionOf": (F = s(e["dct:isVersionOf"])) == null ? void 0 : F.filter(Boolean),
451
+ "prov:qualifiedAttribution": (j = s(
442
452
  e["prov:qualifiedAttribution"]
443
- )) == null ? void 0 : x.filter(Boolean),
444
- "dcat:keyword": (L = s(e["dcat:keyword"])) == null ? void 0 : L.filter(Boolean),
453
+ )) == null ? void 0 : j.filter(Boolean),
454
+ "dcat:keyword": (z = s(e["dcat:keyword"])) == null ? void 0 : z.filter(Boolean),
445
455
  "dct:spatial": (M = s(e["dct:spatial"])) == null ? void 0 : M.filter(Boolean),
446
- "dct:references": (E = s(e["dct:references"])) == null ? void 0 : E.filter(Boolean),
447
- "foaf:page": (G = s(e["foaf:page"])) == null ? void 0 : G.filter(Boolean).map((a) => {
456
+ "dct:references": (u = s(e["dct:references"])) == null ? void 0 : u.filter(Boolean),
457
+ "foaf:page": (I = s(e["foaf:page"])) == null ? void 0 : I.filter(Boolean).map((a) => {
448
458
  if (!a) return;
449
459
  const A = o(a["dct:format"]);
450
460
  return {
@@ -456,13 +466,13 @@ function be(e) {
456
466
  };
457
467
  }),
458
468
  "dcatap:availability": (C = e["dcatap:availability"]) == null ? void 0 : C.map((a) => {
459
- var A, F, O, _;
469
+ var A, O, k, K;
460
470
  return {
461
471
  // Redundant label and title for better compatibility
462
472
  label: ((A = o(a)) == null ? void 0 : A.prefLabel) || "",
463
- title: ((F = o(a)) == null ? void 0 : F.prefLabel) || "",
464
- uri: ((O = o(a)) == null ? void 0 : O["@id"]) || "",
465
- "@value": d((_ = o(a)) == null ? void 0 : _.prefLabel) || ""
473
+ title: ((O = o(a)) == null ? void 0 : O.prefLabel) || "",
474
+ uri: ((k = o(a)) == null ? void 0 : k["@id"]) || "",
475
+ "@value": d((K = o(a)) == null ? void 0 : K.prefLabel) || ""
466
476
  };
467
477
  })
468
478
  };
@@ -493,15 +503,15 @@ function ye(e) {
493
503
  }
494
504
  function he(e) {
495
505
  return !e || !Array.isArray(e) || e.length === 0 ? [] : e.map((r, i) => {
496
- var t, n, p, c;
506
+ var t, n, m, c;
497
507
  return {
498
508
  id: i + 1,
499
509
  "dcat:downloadURL": ((t = o(r["dcat:accessURL"])) == null ? void 0 : t["@id"]) || "",
500
510
  "dcat:accessURL": ((n = o(r["dcat:accessURL"])) == null ? void 0 : n["@id"]) || "",
501
511
  "dct:description": d(r["dct:description"]) || "",
502
512
  "dct:title": d(r["dct:title"]) || "",
503
- "dct:format": r["dct:format"] && ((p = T(o(r["dct:format"]))) == null ? void 0 : p.label) || "",
504
- formatUri: r["dct:format"] && ((c = T(o(r["dct:format"]))) == null ? void 0 : c.uri) || ""
513
+ "dct:format": r["dct:format"] && ((m = v(o(r["dct:format"]))) == null ? void 0 : m.label) || "",
514
+ formatUri: r["dct:format"] && ((c = v(o(r["dct:format"]))) == null ? void 0 : c.uri) || ""
505
515
  };
506
516
  });
507
517
  }
@@ -510,10 +520,10 @@ export {
510
520
  d as extractLocalizedString,
511
521
  f as extractStringValue,
512
522
  o as getFirstItem,
513
- z as normalizeToArray,
523
+ V as normalizeToArray,
514
524
  ae as purgeNullishAndEmptyProperties,
515
525
  ye as toAccessService,
516
526
  he as toDocument,
517
527
  ge as toDpi,
518
- Te as useDpiSimpleLoader
528
+ ve as useDpiSimpleLoader
519
529
  };