@piveau/dpi 0.2.0-alpha.59 → 0.2.0-alpha.60
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.
- package/dist/assets/dpi.css +1 -1
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue.js +2 -2
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/Autocomplete/Autocomplete.vue2.js +6 -5
- package/dist/packages/dpi/src/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +414 -386
- package/dist/packages/dpi/src/data-provider-interface/components/DistributionSimplePage.vue.js +299 -312
- package/dist/packages/dpi/src/data-provider-interface/components/ReviewAndPublishPage.vue.js +265 -261
- package/dist/packages/dpi/src/data-provider-interface/composables/useDpiSimpleLoader.js +82 -82
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ function a(e) {
|
|
|
9
9
|
if (e != null)
|
|
10
10
|
return Array.isArray(e) ? e[0] : e;
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function u(e) {
|
|
13
13
|
return Array.isArray(e) ? e : e ? [e] : void 0;
|
|
14
14
|
}
|
|
15
15
|
function ce(e) {
|
|
@@ -20,14 +20,14 @@ function ce(e) {
|
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
22
|
function Te(e, t) {
|
|
23
|
-
const { enabled: r, hubSearchUrl: i } = t, o = oe(r),
|
|
23
|
+
const { enabled: r, hubSearchUrl: i } = t, o = oe(r), b = [...ee()].filter((f) => f.name !== "licence"), { safeTransform: l } = te({
|
|
24
24
|
baseUrl: i,
|
|
25
|
-
resolvers:
|
|
25
|
+
resolvers: b,
|
|
26
26
|
transformer: re
|
|
27
|
-
}),
|
|
28
|
-
state:
|
|
29
|
-
isReady:
|
|
30
|
-
isLoading:
|
|
27
|
+
}), s = ne([]), {
|
|
28
|
+
state: p,
|
|
29
|
+
isReady: y,
|
|
30
|
+
isLoading: h,
|
|
31
31
|
error: v,
|
|
32
32
|
execute: T
|
|
33
33
|
} = ie(
|
|
@@ -36,12 +36,12 @@ function Te(e, t) {
|
|
|
36
36
|
if (!t.preprocess && !t.transform) {
|
|
37
37
|
const c = await l(k(e));
|
|
38
38
|
if (c.error)
|
|
39
|
-
return
|
|
39
|
+
return s.value.push({
|
|
40
40
|
code: "transform_failed",
|
|
41
41
|
message: c.error.message
|
|
42
42
|
}), null;
|
|
43
43
|
const R = c.data;
|
|
44
|
-
return (!R || !((P = R["dpi:isDPIv3"]) != null && P["@value"])) &&
|
|
44
|
+
return (!R || !((P = R["dpi:isDPIv3"]) != null && P["@value"])) && s.value.push({
|
|
45
45
|
code: "not_dpi_v3",
|
|
46
46
|
message: `The dataset is not a DPI v3 dataset. ID ${R["@id"]}`
|
|
47
47
|
}), {
|
|
@@ -54,13 +54,13 @@ function Te(e, t) {
|
|
|
54
54
|
try {
|
|
55
55
|
const c = await t.preprocess(k(e));
|
|
56
56
|
if (c && typeof c == "object" && "error" in c && c.error)
|
|
57
|
-
return
|
|
57
|
+
return s.value.push({
|
|
58
58
|
code: "preprocess_failed",
|
|
59
59
|
message: c.error.message || "Preprocess failed"
|
|
60
60
|
}), null;
|
|
61
61
|
D = c && typeof c == "object" && "data" in c ? c.data : c;
|
|
62
62
|
} catch (c) {
|
|
63
|
-
return
|
|
63
|
+
return s.value.push({
|
|
64
64
|
code: "preprocess_failed",
|
|
65
65
|
message: (c == null ? void 0 : c.message) || String(c)
|
|
66
66
|
}), null;
|
|
@@ -68,7 +68,7 @@ function Te(e, t) {
|
|
|
68
68
|
else
|
|
69
69
|
D = k(e);
|
|
70
70
|
if (!t.transform)
|
|
71
|
-
return
|
|
71
|
+
return s.value.push({
|
|
72
72
|
code: "missing_transform",
|
|
73
73
|
message: "No transform function provided. Either supply a transform or omit both preprocess and transform to use the default DCAT dataset path."
|
|
74
74
|
}), null;
|
|
@@ -77,7 +77,7 @@ function Te(e, t) {
|
|
|
77
77
|
const c = t.preprocess ? D : k(e);
|
|
78
78
|
A = await t.transform(c);
|
|
79
79
|
} catch (c) {
|
|
80
|
-
return
|
|
80
|
+
return s.value.push({
|
|
81
81
|
code: "transform_apply_failed",
|
|
82
82
|
message: (c == null ? void 0 : c.message) || String(c)
|
|
83
83
|
}), null;
|
|
@@ -90,30 +90,30 @@ function Te(e, t) {
|
|
|
90
90
|
null,
|
|
91
91
|
{ immediate: !1 }
|
|
92
92
|
), L = E(
|
|
93
|
-
() => o.value && !
|
|
93
|
+
() => o.value && !h.value && !!y.value
|
|
94
94
|
), B = E(
|
|
95
95
|
() => o.value && !!L.value
|
|
96
96
|
), U = E(() => B.value), I = E(() => {
|
|
97
|
-
var
|
|
98
|
-
return (
|
|
97
|
+
var f;
|
|
98
|
+
return (f = p.value) == null ? void 0 : f.dpiData;
|
|
99
99
|
}), S = E(() => {
|
|
100
|
-
var
|
|
101
|
-
return (
|
|
100
|
+
var f;
|
|
101
|
+
return (f = p.value) == null ? void 0 : f.data;
|
|
102
102
|
});
|
|
103
103
|
return N(
|
|
104
104
|
() => k(e),
|
|
105
|
-
(
|
|
106
|
-
), N(S, (
|
|
107
|
-
console.log("jsonld resolved result:",
|
|
108
|
-
}), N(v, (
|
|
109
|
-
console.log("jsonld error:",
|
|
105
|
+
(f) => f && o.value ? T() : null
|
|
106
|
+
), N(S, (f) => {
|
|
107
|
+
console.log("jsonld resolved result:", f);
|
|
108
|
+
}), N(v, (f) => {
|
|
109
|
+
console.log("jsonld error:", f);
|
|
110
110
|
}), {
|
|
111
|
-
processedInput:
|
|
111
|
+
processedInput: p,
|
|
112
112
|
isProcessedInputReady: L,
|
|
113
113
|
result: I,
|
|
114
114
|
isMaterialized: B,
|
|
115
115
|
isReady: U,
|
|
116
|
-
errors:
|
|
116
|
+
errors: s
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
function m(e) {
|
|
@@ -276,8 +276,8 @@ function ue(e) {
|
|
|
276
276
|
var t, r;
|
|
277
277
|
return {
|
|
278
278
|
"dcatde:politicalGeocodingURI": (t = e["dcatapde:politicalGeocodingURI"]) == null ? void 0 : t.map((i) => {
|
|
279
|
-
var
|
|
280
|
-
const
|
|
279
|
+
var s;
|
|
280
|
+
const b = {
|
|
281
281
|
districtKey: "Kreis",
|
|
282
282
|
governmentDistrictKey: "Bezirk",
|
|
283
283
|
municipalityKey: "Gemeindeschlüssel",
|
|
@@ -286,22 +286,22 @@ function ue(e) {
|
|
|
286
286
|
regionalKey: "Regionalschlüssel"
|
|
287
287
|
};
|
|
288
288
|
let l = i["@id"].split("/").slice(-2, -1)[0];
|
|
289
|
-
return l =
|
|
289
|
+
return l = b[l] || l, {
|
|
290
290
|
isValid: !0,
|
|
291
291
|
uri: i["@id"],
|
|
292
|
-
id: ((
|
|
292
|
+
id: ((s = i.prefLabel) == null ? void 0 : s.de) || i["@id"].split("/").pop(),
|
|
293
293
|
label: d(i.altLabel),
|
|
294
294
|
inVoc: l
|
|
295
295
|
};
|
|
296
296
|
}),
|
|
297
297
|
"dcat:temporalResolution": (r = e["dct:temporal"]) == null ? void 0 : r.reduce((i, o) => {
|
|
298
|
-
const l = a(o["dcat:startDate"]),
|
|
298
|
+
const l = a(o["dcat:startDate"]), s = a(o["dcat:endDate"]), p = m(l) || "", y = m(s) || "", h = typeof l != "string" && (l == null ? void 0 : l["@type"]) === "http://www.w3.org/2001/XMLSchema#dateTime" ? "dateTime" : "date", v = h === "date" ? p : p.split("T")[0], T = h === "date" ? y : y.split("T")[0], L = h === "dateTime" ? p.split("T")[1] : "", B = h === "dateTime" ? y.split("T")[1] : "";
|
|
299
299
|
return {
|
|
300
300
|
isValid: !0,
|
|
301
301
|
type: "dct:PeriodOfTime",
|
|
302
302
|
"dct:temporal": [
|
|
303
303
|
{
|
|
304
|
-
dataType:
|
|
304
|
+
dataType: h,
|
|
305
305
|
"dcat:startDate": v,
|
|
306
306
|
"dcat:endDate": T,
|
|
307
307
|
startTime: L || "",
|
|
@@ -313,7 +313,7 @@ function ue(e) {
|
|
|
313
313
|
};
|
|
314
314
|
}
|
|
315
315
|
function pe(e, t) {
|
|
316
|
-
var i, o,
|
|
316
|
+
var i, o, b, l, s, p, y, h, v, T, L, B, U, I, S, f, D, A, P, c, R, x, M, j, G;
|
|
317
317
|
if (!e)
|
|
318
318
|
return {};
|
|
319
319
|
const r = a(e["spdx:checksum"]);
|
|
@@ -321,13 +321,13 @@ function pe(e, t) {
|
|
|
321
321
|
isValid: !0,
|
|
322
322
|
id: t + 1,
|
|
323
323
|
"dcat:accessURL": m(a(e["dcat:accessURL"])) || "",
|
|
324
|
-
"dcat:downloadURL": ((i = e["dcat:downloadURL"]) == null ? void 0 : i.map((
|
|
325
|
-
"@id": m(
|
|
324
|
+
"dcat:downloadURL": ((i = e["dcat:downloadURL"]) == null ? void 0 : i.map((g) => ({
|
|
325
|
+
"@id": m(g)
|
|
326
326
|
}))) || [{ "@id": "" }],
|
|
327
327
|
"dct:format": {
|
|
328
328
|
// redundancy in label and title for better compatibility
|
|
329
329
|
label: ((o = a(e["dct:format"])) == null ? void 0 : o["purl:identifier"]) || "",
|
|
330
|
-
title: ((
|
|
330
|
+
title: ((b = a(e["dct:format"])) == null ? void 0 : b["purl:identifier"]) || "",
|
|
331
331
|
uri: ((l = a(e["dct:format"])) == null ? void 0 : l["@id"]) || ""
|
|
332
332
|
},
|
|
333
333
|
"dct:title": d(e["dct:title"]),
|
|
@@ -338,17 +338,17 @@ function pe(e, t) {
|
|
|
338
338
|
"dcatde:licenseAttributionByText": d(e["dcatapde:licenseAttributionByText"]) || "",
|
|
339
339
|
"dct:license": e["dct:license"] ? {
|
|
340
340
|
isValid: !0,
|
|
341
|
-
uri: ((
|
|
341
|
+
uri: ((s = a(e["dct:license"])) == null ? void 0 : s["@id"]) || "",
|
|
342
342
|
"dcterms:license": d(
|
|
343
|
-
(
|
|
343
|
+
(p = a(e["dct:license"])) == null ? void 0 : p.altLabel
|
|
344
344
|
) || "",
|
|
345
345
|
label: d(
|
|
346
|
-
(
|
|
346
|
+
(y = a(e["dct:license"])) == null ? void 0 : y.prefLabel
|
|
347
347
|
) || "",
|
|
348
348
|
title: d(e["dcatapde:licenseAttributionByText"]) || ""
|
|
349
349
|
} : {},
|
|
350
350
|
"dct:accessRights": e["dct:accessRights"] ? a({
|
|
351
|
-
uri: ((
|
|
351
|
+
uri: ((h = a(e["dct:accessRights"])) == null ? void 0 : h["@id"]) || "",
|
|
352
352
|
label: ((v = a(e["dct:accessRights"])) == null ? void 0 : v.prefLabel) || { de: "" }
|
|
353
353
|
}) : {},
|
|
354
354
|
"dcatap:availability": {
|
|
@@ -357,7 +357,7 @@ function pe(e, t) {
|
|
|
357
357
|
title: ((L = a(e["dcatap:availability"])) == null ? void 0 : L.prefLabel) || "",
|
|
358
358
|
uri: ((B = a(e["dcatap:availability"])) == null ? void 0 : B["@id"]) || ""
|
|
359
359
|
},
|
|
360
|
-
"dct:language": ((U = e["dct:language"]) == null ? void 0 : U.map((
|
|
360
|
+
"dct:language": ((U = e["dct:language"]) == null ? void 0 : U.map((g) => V(g)).filter(Boolean)) || [],
|
|
361
361
|
"dcat:mediaType": q({
|
|
362
362
|
label: d(
|
|
363
363
|
(I = a(e["dcat:mediaType"])) == null ? void 0 : I.prefLabel
|
|
@@ -366,7 +366,7 @@ function pe(e, t) {
|
|
|
366
366
|
}),
|
|
367
367
|
"dcat:compressFormat": q({
|
|
368
368
|
label: d(
|
|
369
|
-
(
|
|
369
|
+
(f = a(e["dcat:compressFormat"])) == null ? void 0 : f.prefLabel
|
|
370
370
|
) || "",
|
|
371
371
|
uri: ((D = a(e["dcat:compressFormat"])) == null ? void 0 : D["@id"]) || ""
|
|
372
372
|
}),
|
|
@@ -388,35 +388,35 @@ function pe(e, t) {
|
|
|
388
388
|
)) == null ? void 0 : M.replace("spdx:", "http://spdx.org/rdf/terms#")
|
|
389
389
|
},
|
|
390
390
|
accessServices: he(e["dcat:accessService"] || []),
|
|
391
|
-
conformsToItems: (j = e["dct:conformsTo"]) == null ? void 0 : j.map((
|
|
391
|
+
conformsToItems: (j = e["dct:conformsTo"]) == null ? void 0 : j.map((g, _) => ({
|
|
392
392
|
// for some reason dct:conformsTo is different from the one on dcat:dataset level
|
|
393
393
|
id: _ + 1,
|
|
394
|
-
"dcat:accessURL":
|
|
395
|
-
"dct:title": d(
|
|
396
|
-
"dcat:downloadURL":
|
|
394
|
+
"dcat:accessURL": g["@id"],
|
|
395
|
+
"dct:title": d(g["rdfs:label"]) || "",
|
|
396
|
+
"dcat:downloadURL": g["@id"],
|
|
397
397
|
// redundancy to match properties on dcat:dataset level
|
|
398
|
-
"rdfs:label": d(
|
|
399
|
-
uri:
|
|
398
|
+
"rdfs:label": d(g["rdfs:label"]) || "",
|
|
399
|
+
uri: g["@id"]
|
|
400
400
|
})).filter(Boolean),
|
|
401
|
-
policyItems: ((G = e["odrl:hasPolicy"]) == null ? void 0 : G.map((
|
|
401
|
+
policyItems: ((G = e["odrl:hasPolicy"]) == null ? void 0 : G.map((g, _) => ({
|
|
402
402
|
// don't ask
|
|
403
403
|
id: _ + 1,
|
|
404
|
-
"dcat:downloadURL":
|
|
405
|
-
"dcat:accessURL":
|
|
404
|
+
"dcat:downloadURL": g["@id"],
|
|
405
|
+
"dcat:accessURL": g["@id"]
|
|
406
406
|
}))) || [{ id: 1, "dcat:downloadURL": "", "dcat:accessURL": "" }],
|
|
407
407
|
documentations: Re(e["foaf:page"] || [])
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
410
|
function me(e) {
|
|
411
|
-
var r, i;
|
|
411
|
+
var r, i, o, b, l;
|
|
412
412
|
const t = {
|
|
413
413
|
"dcat:distribution": []
|
|
414
414
|
};
|
|
415
|
-
if (
|
|
416
|
-
const
|
|
417
|
-
t["dcat:distribution"] =
|
|
415
|
+
if (e["dcat:distribution"]) {
|
|
416
|
+
const s = z(e["dcat:distribution"]);
|
|
417
|
+
t["dcat:distribution"] = s.map((p, y) => pe(p, y)).filter((p) => Object.keys(p).length > 0);
|
|
418
418
|
}
|
|
419
|
-
return console.log(t), t;
|
|
419
|
+
return t["dct:license"] = [{ ...(i = (r = e["dcat:distribution"]) == null ? void 0 : r[0]) == null ? void 0 : i["dct:license"], "dcterms:license": d((l = (b = (o = e["dcat:distribution"]) == null ? void 0 : o[0]) == null ? void 0 : b["dct:license"]) == null ? void 0 : l.altLabel) }], console.log(t), t;
|
|
420
420
|
}
|
|
421
421
|
function be(e) {
|
|
422
422
|
return {
|
|
@@ -424,7 +424,7 @@ function be(e) {
|
|
|
424
424
|
};
|
|
425
425
|
}
|
|
426
426
|
function ge(e) {
|
|
427
|
-
var r, i, o,
|
|
427
|
+
var r, i, o, b, l, s, p, y, h, v, T, L, B, U, I, S, f, D, A, P, c, R, x, M, j, G, g, _;
|
|
428
428
|
const t = {
|
|
429
429
|
"dct:language": (r = e["dct:language"]) == null ? void 0 : r.map((n) => V(n)).filter(Boolean),
|
|
430
430
|
"dcatde:politicalGeocodingLevelURI": (i = e["dcatapde:politicalGeocodingLevelURI"]) == null ? void 0 : i.map((n) => ({
|
|
@@ -435,15 +435,15 @@ function ge(e) {
|
|
|
435
435
|
"rdfs:label": d(n["rdfs:label"]) || "",
|
|
436
436
|
"@id": n["@id"]
|
|
437
437
|
})).filter(Boolean),
|
|
438
|
-
"dct:accessRights": e["dct:accessRights"] ?
|
|
438
|
+
"dct:accessRights": e["dct:accessRights"] ? u(V(e["dct:accessRights"])) : [],
|
|
439
439
|
"dct:issued": z(e["dct:issued"]),
|
|
440
|
-
"dct:provenance": (
|
|
440
|
+
"dct:provenance": (b = e["dct:provenance"]) == null ? void 0 : b.map((n) => ({
|
|
441
441
|
"rdfs:label": d(n["rdfs:label"]) || "",
|
|
442
442
|
uri: n["@id"]
|
|
443
443
|
})).filter(Boolean),
|
|
444
|
-
"dct:accrualPeriodicity": e["dct:accrualPeriodicity"] ?
|
|
444
|
+
"dct:accrualPeriodicity": e["dct:accrualPeriodicity"] ? u(V(e["dct:accrualPeriodicity"])) : [],
|
|
445
445
|
"dct:type": (l = e["dct:type"]) == null ? void 0 : l.map((n) => V(n)).filter(Boolean),
|
|
446
|
-
"dcat:spatialResolutionInMeters": ((
|
|
446
|
+
"dcat:spatialResolutionInMeters": ((s = e["dcat:spatialResolutionInMeters"]) == null ? void 0 : s.map(H)) || void 0,
|
|
447
447
|
"dcat:temporalResolution": e["dcat:temporalResolution"] ? e["dcat:temporalResolution"].map(H).map((n) => {
|
|
448
448
|
const O = n["@value"].match(
|
|
449
449
|
/^P(?:(\d+)Y)?(?:(\d+)M)?(?:(\d+)D)?(?:T(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?)?$/
|
|
@@ -462,48 +462,48 @@ function ge(e) {
|
|
|
462
462
|
];
|
|
463
463
|
}
|
|
464
464
|
}).filter(Boolean).flat() : void 0,
|
|
465
|
-
"dcat:qualifiedRelation": (
|
|
465
|
+
"dcat:qualifiedRelation": (p = u(
|
|
466
466
|
e["dcat:qualifiedRelation"]
|
|
467
|
-
)) == null ? void 0 :
|
|
468
|
-
"dct:creator": (
|
|
469
|
-
"dct:contributor": (
|
|
467
|
+
)) == null ? void 0 : p.filter(Boolean),
|
|
468
|
+
"dct:creator": (y = u(e["dct:creator"])) == null ? void 0 : y.filter(Boolean),
|
|
469
|
+
"dct:contributor": (h = u(e["dct:contributor"])) == null ? void 0 : h.filter(Boolean),
|
|
470
470
|
"dcatde:contributorID": (v = e["dcatapde:contributorID"]) == null ? void 0 : v.map((n) => V(n)).filter(Boolean),
|
|
471
|
-
"dcatde:geocodingDescription": (T =
|
|
471
|
+
"dcatde:geocodingDescription": (T = u(
|
|
472
472
|
e["dcatapde:geocodingDescription"]
|
|
473
473
|
)) == null ? void 0 : T.filter(Boolean),
|
|
474
474
|
"dct:identifier": (L = e["dct:identifier"]) == null ? void 0 : L.map((n) => ({
|
|
475
475
|
"@value": n
|
|
476
476
|
})),
|
|
477
|
-
"adms:identifier": (B =
|
|
477
|
+
"adms:identifier": (B = u(e["adms:identifier"])) == null ? void 0 : B.filter(Boolean),
|
|
478
478
|
"owl:versionInfo": (U = e["owl:versionInfo"]) == null ? void 0 : U.map((n) => ({
|
|
479
479
|
"@value": n
|
|
480
480
|
})),
|
|
481
481
|
"adms:versionNotes": e["adms:versionNotes"],
|
|
482
|
-
"dcatde:legalBasis": (I =
|
|
482
|
+
"dcatde:legalBasis": (I = u(e["dcatapde:legalBasis"])) == null ? void 0 : I.filter(
|
|
483
483
|
Boolean
|
|
484
484
|
),
|
|
485
|
-
"dct:relation": (S =
|
|
486
|
-
"dcat:landingPage": (
|
|
485
|
+
"dct:relation": (S = u(e["dct:relation"])) == null ? void 0 : S.filter(Boolean),
|
|
486
|
+
"dcat:landingPage": (f = u(e["dcat:landingPage"])) == null ? void 0 : f.filter(
|
|
487
487
|
Boolean
|
|
488
488
|
),
|
|
489
|
-
"prov:wasGeneratedBy": (D =
|
|
489
|
+
"prov:wasGeneratedBy": (D = u(e["prov:wasGeneratedBy"])) == null ? void 0 : D.filter(
|
|
490
490
|
Boolean
|
|
491
491
|
),
|
|
492
|
-
"dct:isReferencedBy": (A =
|
|
492
|
+
"dct:isReferencedBy": (A = u(e["dct:isReferencedBy"])) == null ? void 0 : A.filter(
|
|
493
493
|
Boolean
|
|
494
494
|
),
|
|
495
|
-
"dct:source": (P =
|
|
496
|
-
"dct:hasVersion": (c =
|
|
497
|
-
"dct:isVersionOf": (R =
|
|
498
|
-
"prov:qualifiedAttribution": (x =
|
|
495
|
+
"dct:source": (P = u(e["dct:source"])) == null ? void 0 : P.filter(Boolean),
|
|
496
|
+
"dct:hasVersion": (c = u(e["dct:hasVersion"])) == null ? void 0 : c.filter(Boolean),
|
|
497
|
+
"dct:isVersionOf": (R = u(e["dct:isVersionOf"])) == null ? void 0 : R.filter(Boolean),
|
|
498
|
+
"prov:qualifiedAttribution": (x = u(
|
|
499
499
|
e["prov:qualifiedAttribution"]
|
|
500
500
|
)) == null ? void 0 : x.filter(Boolean),
|
|
501
|
-
"dcat:keyword": (M =
|
|
502
|
-
"dct:spatial": (j =
|
|
501
|
+
"dcat:keyword": (M = u(e["dcat:keyword"])) == null ? void 0 : M.filter(Boolean),
|
|
502
|
+
"dct:spatial": (j = u(e["dct:spatial"])) == null ? void 0 : j.filter((n) => n ? !n["@id"].startsWith(
|
|
503
503
|
"http://dcat-ap.de/def/politicalGeocoding/"
|
|
504
504
|
) : !1).filter(Boolean),
|
|
505
|
-
"dct:references": (G =
|
|
506
|
-
"foaf:page": (
|
|
505
|
+
"dct:references": (G = u(e["dct:references"])) == null ? void 0 : G.filter(Boolean),
|
|
506
|
+
"foaf:page": (g = u(e["foaf:page"])) == null ? void 0 : g.filter(Boolean).map((n) => {
|
|
507
507
|
if (!n)
|
|
508
508
|
return;
|
|
509
509
|
const w = a(n["dct:format"]);
|
|
@@ -555,7 +555,7 @@ function he(e) {
|
|
|
555
555
|
}
|
|
556
556
|
function Re(e) {
|
|
557
557
|
return !e || !Array.isArray(e) || e.length === 0 ? [] : e.map((t, r) => {
|
|
558
|
-
var i, o,
|
|
558
|
+
var i, o, b;
|
|
559
559
|
return {
|
|
560
560
|
id: r + 1,
|
|
561
561
|
"dcat:downloadURL": ((i = a(t["dcat:accessURL"])) == null ? void 0 : i["@id"]) || "",
|
|
@@ -563,12 +563,12 @@ function Re(e) {
|
|
|
563
563
|
"dct:description": d(t["dct:description"]) || "",
|
|
564
564
|
"dct:title": d(t["dct:title"]) || "",
|
|
565
565
|
"dct:format": t["dct:format"] ? d(a(t["dct:format"]).prefLabel) : "",
|
|
566
|
-
formatUri: t["dct:format"] && ((
|
|
566
|
+
formatUri: t["dct:format"] && ((b = V(a(t["dct:format"]))) == null ? void 0 : b.uri) || ""
|
|
567
567
|
};
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
570
|
export {
|
|
571
|
-
|
|
571
|
+
u as asSomeArray,
|
|
572
572
|
d as extractLocalizedString,
|
|
573
573
|
m as extractStringValue,
|
|
574
574
|
a as getFirstItem,
|