@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.
- package/dist/assets/dpi.css +1 -1
- package/dist/data-provider-interface/HappyFlowComponents/ui/ModalV3.vue.js +393 -314
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/AccessServiceV3.vue.js +105 -69
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChangeLicenseV3.vue.js +95 -57
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ChecksumV3.vue.js +83 -55
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/ConformsToV3.vue.js +116 -75
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/DocumentationsV3.vue.js +145 -124
- package/dist/data-provider-interface/HappyFlowComponents/ui/OptionalInformation/PolicyV3.vue.js +41 -41
- package/dist/data-provider-interface/HappyFlowComponents/ui/RapModal.vue.js +123 -108
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/AdditionalsSubModal.vue.js +440 -258
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/CoverageModal.vue.js +37 -32
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/DistributionModal.vue.js +6 -6
- package/dist/data-provider-interface/HappyFlowComponents/ui/SectionItems/EssentialsModal.vue.js +183 -126
- package/dist/data-provider-interface/components/ContactPage.vue.js +95 -89
- package/dist/data-provider-interface/components/DistLicense.vue.js +1 -1
- package/dist/data-provider-interface/components/DistributionSimplePage.vue.js +401 -396
- package/dist/data-provider-interface/components/HVDPage.vue.js +56 -55
- package/dist/data-provider-interface/components/PublisherPage.vue.js +94 -89
- package/dist/data-provider-interface/components/TempResPage.vue.js +122 -104
- package/dist/data-provider-interface/components/TempResPageInModal.vue.js +249 -108
- package/dist/data-provider-interface/composables/useDpiSimpleLoader.js +128 -118
- package/dist/data-provider-interface/config/dcatapdeHappyFlow/converter.js +40 -28
- package/dist/data-provider-interface/views/InputPage.vue.js +375 -746
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { toRef as Z, ref as ee, toValue as q, computed as
|
|
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
|
|
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
|
|
23
|
-
const { enabled: i, hubSearchUrl: t } = r, n = Z(i), { safeTransform:
|
|
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:
|
|
29
|
-
isReady:
|
|
30
|
-
isLoading:
|
|
31
|
-
error:
|
|
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
|
|
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
|
|
43
|
-
return (!
|
|
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 ${
|
|
45
|
+
message: `The dataset is not a DPI v3 dataset. ID ${h["@id"]}`
|
|
46
46
|
}), {
|
|
47
|
-
dpiData: ge(
|
|
48
|
-
data:
|
|
47
|
+
dpiData: ge(h),
|
|
48
|
+
data: h
|
|
49
49
|
};
|
|
50
50
|
},
|
|
51
51
|
null,
|
|
52
52
|
{ immediate: !1 }
|
|
53
|
-
),
|
|
54
|
-
() => n.value && !
|
|
55
|
-
),
|
|
56
|
-
() => n.value && !!
|
|
57
|
-
),
|
|
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 =
|
|
60
|
-
}),
|
|
59
|
+
return (l = p.value) == null ? void 0 : l.dpiData;
|
|
60
|
+
}), P = _(() => {
|
|
61
61
|
var l;
|
|
62
|
-
return (l =
|
|
62
|
+
return (l = p.value) == null ? void 0 : l.data;
|
|
63
63
|
});
|
|
64
|
-
return
|
|
64
|
+
return G(
|
|
65
65
|
() => q(e),
|
|
66
66
|
(l) => l && n.value ? B() : null
|
|
67
|
-
),
|
|
67
|
+
), G(P, (l) => {
|
|
68
68
|
console.log("jsonld resolved result:", l);
|
|
69
|
-
}),
|
|
69
|
+
}), G(b, (l) => {
|
|
70
70
|
console.log("jsonld error:", l);
|
|
71
71
|
}), {
|
|
72
|
-
processedInput:
|
|
73
|
-
isProcessedInputReady:
|
|
74
|
-
result:
|
|
75
|
-
isMaterialized:
|
|
76
|
-
isReady:
|
|
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
|
|
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
|
|
117
|
+
function v(e, r) {
|
|
118
118
|
const i = e.prefLabel;
|
|
119
|
-
return
|
|
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 ?
|
|
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 ?
|
|
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 =
|
|
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 =
|
|
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
|
|
240
|
-
const
|
|
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 =
|
|
249
|
+
return c = m[c] || c, {
|
|
250
250
|
isValid: !0,
|
|
251
251
|
uri: t["@id"],
|
|
252
|
-
id: ((
|
|
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"]),
|
|
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:
|
|
264
|
+
dataType: b,
|
|
265
265
|
"dcat:startDate": B,
|
|
266
|
-
"dcat:endDate":
|
|
267
|
-
startTime:
|
|
268
|
-
endTime:
|
|
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,
|
|
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: ((
|
|
287
|
-
title: ((
|
|
288
|
-
uri: ((
|
|
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: ((
|
|
302
|
+
uri: ((p = o(e["dct:license"])) == null ? void 0 : p["@id"]) || "",
|
|
300
303
|
"dcterms:license": d(
|
|
301
|
-
(
|
|
304
|
+
(g = o(e["dct:license"])) == null ? void 0 : g.altLabel
|
|
302
305
|
) || "",
|
|
303
306
|
label: d(
|
|
304
|
-
(
|
|
307
|
+
(y = o(e["dct:license"])) == null ? void 0 : y.prefLabel
|
|
305
308
|
) || "",
|
|
306
309
|
title: d(
|
|
307
|
-
(
|
|
310
|
+
(b = o(e["dct:license"])) == null ? void 0 : b.prefLabel
|
|
308
311
|
) || ""
|
|
309
312
|
}
|
|
310
313
|
] : [],
|
|
311
|
-
"dct:accessRights": e["dct:accessRights"] ? o(
|
|
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: ((
|
|
315
|
-
title: ((
|
|
316
|
-
uri: ((
|
|
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": ((
|
|
319
|
-
"dcat:mediaType":
|
|
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
|
-
(
|
|
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":
|
|
328
|
+
"dcat:compressFormat": E({
|
|
326
329
|
label: d(
|
|
327
|
-
(
|
|
330
|
+
(l = o(e["dcat:compressFormat"])) == null ? void 0 : l.prefLabel
|
|
328
331
|
) || "",
|
|
329
|
-
uri: ((
|
|
332
|
+
uri: ((h = o(e["dcat:compressFormat"])) == null ? void 0 : h["@id"]) || ""
|
|
330
333
|
}),
|
|
331
|
-
"dcat:packageFormat":
|
|
334
|
+
"dcat:packageFormat": E({
|
|
332
335
|
label: d(
|
|
333
|
-
(
|
|
336
|
+
(U = o(e["dcat:packageFormat"])) == null ? void 0 : U.prefLabel
|
|
334
337
|
) || "",
|
|
335
|
-
uri: ((
|
|
338
|
+
uri: ((D = o(e["dcat:packageFormat"])) == null ? void 0 : D["@id"]) || ""
|
|
336
339
|
}),
|
|
337
|
-
"adms:status": ((
|
|
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": ((
|
|
341
|
-
uri: (
|
|
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 :
|
|
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: (
|
|
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:
|
|
350
|
-
"dcat:accessURL":
|
|
351
|
-
"dct:title": d(
|
|
352
|
-
"dcat:downloadURL":
|
|
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(
|
|
355
|
-
uri:
|
|
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 =
|
|
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,
|
|
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) =>
|
|
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(
|
|
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(
|
|
388
|
-
"dct:type": (
|
|
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
|
|
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 (
|
|
395
|
-
const [,
|
|
404
|
+
if (O) {
|
|
405
|
+
const [, k, K, Y, $, J, Q] = O.map(
|
|
396
406
|
(W) => W || "0"
|
|
397
407
|
);
|
|
398
408
|
return {
|
|
399
|
-
Year:
|
|
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": (
|
|
418
|
+
"dcat:qualifiedRelation": (p = s(
|
|
409
419
|
e["dcat:qualifiedRelation"]
|
|
410
|
-
)) == null ? void 0 :
|
|
411
|
-
"dct:creator": (
|
|
412
|
-
"dct:contributor": (
|
|
413
|
-
"dcatde:contributorID": (
|
|
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": (
|
|
427
|
+
"dct:identifier": (R = e["dct:identifier"]) == null ? void 0 : R.map((a) => ({
|
|
418
428
|
"@value": a
|
|
419
429
|
})),
|
|
420
|
-
"adms:identifier": (
|
|
421
|
-
"owl:versionInfo": (
|
|
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": (
|
|
435
|
+
"dcatde:legalBasis": (w = s(e["dcatapde:legalBasis"])) == null ? void 0 : w.filter(
|
|
426
436
|
Boolean
|
|
427
437
|
),
|
|
428
|
-
"dct:relation": (
|
|
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": (
|
|
442
|
+
"prov:wasGeneratedBy": (h = s(e["prov:wasGeneratedBy"])) == null ? void 0 : h.filter(
|
|
433
443
|
Boolean
|
|
434
444
|
),
|
|
435
|
-
"dct:isReferencedBy": (
|
|
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": (
|
|
440
|
-
"dct:isVersionOf": (
|
|
441
|
-
"prov:qualifiedAttribution": (
|
|
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 :
|
|
444
|
-
"dcat:keyword": (
|
|
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": (
|
|
447
|
-
"foaf:page": (
|
|
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,
|
|
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: ((
|
|
464
|
-
uri: ((
|
|
465
|
-
"@value": d((
|
|
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,
|
|
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"] && ((
|
|
504
|
-
formatUri: r["dct:format"] && ((c =
|
|
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
|
-
|
|
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
|
-
|
|
528
|
+
ve as useDpiSimpleLoader
|
|
519
529
|
};
|