@oslo-flanders/core 1.0.12 → 1.0.13
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.
|
@@ -21,14 +21,16 @@ async function getPrefixes() {
|
|
|
21
21
|
throw new Error('Invalid context format received from prefix.cc');
|
|
22
22
|
}
|
|
23
23
|
catch (error) {
|
|
24
|
-
console.
|
|
24
|
+
console.warn(`Error fetching prefixes: ${String(error)}`);
|
|
25
25
|
// Fallback to a minimal set of prefixes if the fetch fails
|
|
26
26
|
return {
|
|
27
|
-
skos: core_1.ns.skos(''),
|
|
28
|
-
rdf: core_1.ns.rdf(''),
|
|
29
|
-
rdfs: core_1.ns.rdfs(''),
|
|
30
|
-
dct: core_1.ns.dcterms(''),
|
|
31
|
-
xsd: core_1.ns.xsd(''),
|
|
27
|
+
skos: core_1.ns.skos('').value,
|
|
28
|
+
rdf: core_1.ns.rdf('').value,
|
|
29
|
+
rdfs: core_1.ns.rdfs('').value,
|
|
30
|
+
dct: core_1.ns.dcterms('').value,
|
|
31
|
+
xsd: core_1.ns.xsd('').value,
|
|
32
|
+
cpov: core_1.ns.cpov('').value,
|
|
33
|
+
locn: core_1.ns.locn('').value,
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
}
|
|
@@ -17,7 +17,9 @@ declare enum Prefixes {
|
|
|
17
17
|
prov = "http://www.w3.org/ns/prov#",
|
|
18
18
|
oslo = "https://implementatie.data.vlaanderen.be/ns/oslo-toolchain#",
|
|
19
19
|
vl = "https://data.vlaanderen.be/ns/shacl#",
|
|
20
|
-
schema = "https://schema.org/"
|
|
20
|
+
schema = "https://schema.org/",
|
|
21
|
+
cpov = "http://data.europa.eu/m8g/",
|
|
22
|
+
locn = "http://www.w3.org/ns/locn#"
|
|
21
23
|
}
|
|
22
24
|
export type Namespace = {
|
|
23
25
|
[T in keyof typeof Prefixes]: Function;
|
package/lib/utils/namespaces.js
CHANGED
|
@@ -24,6 +24,8 @@ var Prefixes;
|
|
|
24
24
|
Prefixes["oslo"] = "https://implementatie.data.vlaanderen.be/ns/oslo-toolchain#";
|
|
25
25
|
Prefixes["vl"] = "https://data.vlaanderen.be/ns/shacl#";
|
|
26
26
|
Prefixes["schema"] = "https://schema.org/";
|
|
27
|
+
Prefixes["cpov"] = "http://data.europa.eu/m8g/";
|
|
28
|
+
Prefixes["locn"] = "http://www.w3.org/ns/locn#";
|
|
27
29
|
})(Prefixes || (Prefixes = {}));
|
|
28
30
|
const vocab = () => {
|
|
29
31
|
const namespaces = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oslo-flanders/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Core interfaces and utilities",
|
|
5
5
|
"author": "Digitaal Vlaanderen <https://data.vlaanderen.be/id/organisatie/OVO002949>",
|
|
6
6
|
"homepage": "https://github.com/informatievlaanderen/OSLO-UML-Transformer/tree/main/packages/oslo-core#readme",
|