@twin.org/standards-ld-contexts 0.0.3-next.3 → 0.0.3-next.30

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.
@@ -7,6 +7,8 @@ import dcmitype from "./ldContexts/dublin-core-dcmitype.json" with { type: "json
7
7
  import dcTerms from "./ldContexts/dublin-core-terms.json" with { type: "json" };
8
8
  import foaf from "./ldContexts/foaf.json" with { type: "json" };
9
9
  import gaiaX2411 from "./ldContexts/gaia-x-v24.11.json" with { type: "json" };
10
+ import gs1epcis from "./ldContexts/gs1-epcis.json" with { type: "json" };
11
+ import odrlDataspaceProtocol from "./ldContexts/odrl-dataspace-protocol.json" with { type: "json" };
10
12
  import schemaOrg from "./ldContexts/schema.org.json" with { type: "json" };
11
13
  import unCefact from "./ldContexts/un-cefact-vocab.json" with { type: "json" };
12
14
  import w3cActivityStreams from "./ldContexts/w3c-activity-streams.json" with { type: "json" };
@@ -31,23 +33,28 @@ export const LD_CONTEXTS = {
31
33
  // W3C DCAT
32
34
  "http://www.w3.org/ns/dcat#": w3cDcat,
33
35
  "https://www.w3.org/ns/dcat.jsonld": w3cDcat,
36
+ "http://www.w3.org/ns/dcat.jsonld": w3cDcat,
34
37
  // W3C ODRL
35
38
  "http://www.w3.org/ns/odrl.jsonld": w3cOdrl,
36
39
  // W3C Activity Streams
37
40
  "https://www.w3.org/ns/activitystreams#": w3cActivityStreams,
41
+ "https://www.w3.org/ns/activitystreams": w3cActivityStreams,
38
42
  // W3C Credentials
39
43
  "https://www.w3.org/ns/credentials/v2": w3cVc,
40
44
  "https://w3id.org/security/suites/jws-2020/v1": w3IdJws,
41
45
  // UN/CEFACT
42
46
  "https://vocabulary.uncefact.org": unCefact,
47
+ "https://vocabulary.uncefact.org/unece-context.jsonld": unCefact,
48
+ "https://vocabulary.uncefact.org/unece-context-D23B.jsonld": unCefact,
43
49
  // Dublin Core
44
50
  "http://purl.org/dc/terms/": dcTerms,
45
51
  "http://purl.org/dc/dcmitype/": dcmitype,
46
52
  "https://schema.twindev.org/dublin-core/terms.jsonld": dcTerms,
47
53
  "https://schema.twindev.org/dublin-core/dcmitype.jsonld": dcmitype,
48
- // IDS Contract Negotiation
54
+ // Data Space Protocol
49
55
  "https://w3id.org/dspace/2024/1/context.json": dataspaceProtocol,
50
56
  "https://w3id.org/dspace/2025/1/context.jsonld": dataspaceProtocol,
57
+ "https://w3id.org/dspace/2025/1/odrl-profile.jsonld": odrlDataspaceProtocol,
51
58
  // Foaf
52
59
  "https://schema.twindev.org/foaf/": foaf,
53
60
  "https://schema.twindev.org/foaf/types.jsonld": foaf,
@@ -55,7 +62,10 @@ export const LD_CONTEXTS = {
55
62
  // W3C RDF
56
63
  "https://schema.twindev.org/w3c-rdf/": w3cRdf,
57
64
  "https://schema.twindev.org/w3c-rdf/types.jsonld": w3cRdf,
58
- "http://www.w3.org/2000/01/rdf-schema#": w3cRdf
65
+ "http://www.w3.org/2000/01/rdf-schema#": w3cRdf,
66
+ // GS1 EPCIS
67
+ "https://ref.gs1.org/epcis/": gs1epcis,
68
+ "https://ref.gs1.org/standards/epcis/2.0.0/epcis-context.jsonld": gs1epcis
59
69
  };
60
70
  /**
61
71
  * Add all the contexts to the document cache.
@@ -1 +1 @@
1
- {"version":3,"file":"ldContexts.js","sourceRoot":"","sources":["../../src/ldContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,iBAAiB,MAAM,sCAAsC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC3F,OAAO,QAAQ,MAAM,wCAAwC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACpF,OAAO,OAAO,MAAM,qCAAqC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAChF,OAAO,I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Y;IACZ,iCAAiC,EAAE,QAAQ;IAE3C,cAAc;IACd,2BAA2B,EAAE,OAAO;IACpC,8BAA8B,EAAE,QAAQ;IACxC,qDAAqD,EAAE,OAAO;IAC9D,wDAAwD,EAAE,QAAQ;IAElE,2BAA2B;IAC3B,6CAA6C,EAAE,iBAAiB;IAChE,+CAA+C,EAAE,iBAAiB;IAElE,OAAO;IACP,kCAAkC,EAAE,IAAI;IACxC,8CAA8C,EAAE,IAAI;IACpD,4BAA4B,EAAE,IAAI;IAElC,UAAU;IACV,qCAAqC,EAAE,MAAM;IAC7C,iDAAiD,EAAE,MAAM;IACzD,uCAAuC,EAAE,MAAM;CAC/C,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,6BAA6B;IAClD,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QAC/B,MAAM,eAAe,CAAC,gBAAgB,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/D,CAAC;AACF,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,GAAW;IAC1D,IAAI,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,YAAY,CAAC,WAAW,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACzD,CAAC;IACD,MAAM,eAAe,CAAC,gBAAgB,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { GeneralError, Is } from \"@twin.org/core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport dataspaceProtocol from \"./ldContexts/dataspace-protocol.json\" with { type: \"json\" };\nimport dcmitype from \"./ldContexts/dublin-core-dcmitype.json\" with { type: \"json\" };\nimport dcTerms from \"./ldContexts/dublin-core-terms.json\" with { type: \"json\" };\nimport foaf from \"./ldContexts/foaf.json\" with { type: \"json\" };\nimport gaiaX2411 from \"./ldContexts/gaia-x-v24.11.json\" with { type: \"json\" };\nimport schemaOrg from \"./ldContexts/schema.org.json\" with { type: \"json\" };\nimport unCefact from \"./ldContexts/un-cefact-vocab.json\" with { type: \"json\" };\nimport w3cActivityStreams from \"./ldContexts/w3c-activity-streams.json\" with { type: \"json\" };\nimport w3cDcat from \"./ldContexts/w3c-dcat.json\" with { type: \"json\" };\nimport w3cOdrl from \"./ldContexts/w3c-odrl.json\" with { type: \"json\" };\nimport w3cRdf from \"./ldContexts/w3c-rdf.json\" with { type: \"json\" };\nimport w3cVc from \"./ldContexts/w3c-vc-data-model-v2.json\" with { type: \"json\" };\nimport w3IdJws from \"./ldContexts/w3id-jws-2020-v1.json\" with { type: \"json\" };\n\n/**\n * Map of all the ld contexts by their URL.\n */\nexport const LD_CONTEXTS: { [id: string]: unknown } = {\n\t// schema.org\n\t\"https://schema.org\": schemaOrg,\n\t\"http://schema.org\": schemaOrg,\n\t\"https://schema.org/docs/jsonldcontext.jsonld\": schemaOrg,\n\n\t// Gaia-X\n\t\"https://w3id.org/gaia-x/2411\": gaiaX2411,\n\t\"https://w3id.org/gaia-x/2411#\": gaiaX2411,\n\n\t\"https://schema.twindev.org/gaia-x-loire/\": gaiaX2411,\n\t\"https://schema.twindev.org/gaia-x-loire/types.jsonld\": gaiaX2411,\n\n\t// W3C DCAT\n\t\"http://www.w3.org/ns/dcat#\": w3cDcat,\n\t\"https://www.w3.org/ns/dcat.jsonld\": w3cDcat,\n\n\t// W3C ODRL\n\t\"http://www.w3.org/ns/odrl.jsonld\": w3cOdrl,\n\n\t// W3C Activity Streams\n\t\"https://www.w3.org/ns/activitystreams#\": w3cActivityStreams,\n\n\t// W3C Credentials\n\t\"https://www.w3.org/ns/credentials/v2\": w3cVc,\n\t\"https://w3id.org/security/suites/jws-2020/v1\": w3IdJws,\n\n\t// UN/CEFACT\n\t\"https://vocabulary.uncefact.org\": unCefact,\n\n\t// Dublin Core\n\t\"http://purl.org/dc/terms/\": dcTerms,\n\t\"http://purl.org/dc/dcmitype/\": dcmitype,\n\t\"https://schema.twindev.org/dublin-core/terms.jsonld\": dcTerms,\n\t\"https://schema.twindev.org/dublin-core/dcmitype.jsonld\": dcmitype,\n\n\t// IDS Contract Negotiation\n\t\"https://w3id.org/dspace/2024/1/context.json\": dataspaceProtocol,\n\t\"https://w3id.org/dspace/2025/1/context.jsonld\": dataspaceProtocol,\n\n\t// Foaf\n\t\"https://schema.twindev.org/foaf/\": foaf,\n\t\"https://schema.twindev.org/foaf/types.jsonld\": foaf,\n\t\"http://xmlns.com/foaf/0.1/\": foaf,\n\n\t// W3C RDF\n\t\"https://schema.twindev.org/w3c-rdf/\": w3cRdf,\n\t\"https://schema.twindev.org/w3c-rdf/types.jsonld\": w3cRdf,\n\t\"http://www.w3.org/2000/01/rdf-schema#\": w3cRdf\n};\n\n/**\n * Add all the contexts to the document cache.\n */\nexport async function addAllContextsToDocumentCache(): Promise<void> {\n\tfor (const url in LD_CONTEXTS) {\n\t\tawait JsonLdProcessor.documentCacheAdd(url, LD_CONTEXTS[url]);\n\t}\n}\n\n/**\n * Add a context to the document cache.\n * @param url The URL of the context to add to the cache.\n */\nexport async function addContextToDocumentCache(url: string): Promise<void> {\n\tif (Is.empty(LD_CONTEXTS[url])) {\n\t\tthrow new GeneralError(\"ldContext\", \"missing\", { url });\n\t}\n\tawait JsonLdProcessor.documentCacheAdd(url, LD_CONTEXTS[url]);\n}\n"]}
1
+ {"version":3,"file":"ldContexts.js","sourceRoot":"","sources":["../../src/ldContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,iBAAiB,MAAM,sCAAsC,CAAC,OAAO,IAA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yB,CAAC,GAAW;IAC1D,IAAI,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,YAAY,CAAC,WAAW,EAAE,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;IACzD,CAAC;IACD,MAAM,eAAe,CAAC,gBAAgB,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { GeneralError, Is } from \"@twin.org/core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport dataspaceProtocol from \"./ldContexts/dataspace-protocol.json\" with { type: \"json\" };\nimport dcmitype from \"./ldContexts/dublin-core-dcmitype.json\" with { type: \"json\" };\nimport dcTerms from \"./ldContexts/dublin-core-terms.json\" with { type: \"json\" };\nimport foaf from \"./ldContexts/foaf.json\" with { type: \"json\" };\nimport gaiaX2411 from \"./ldContexts/gaia-x-v24.11.json\" with { type: \"json\" };\nimport gs1epcis from \"./ldContexts/gs1-epcis.json\" with { type: \"json\" };\nimport odrlDataspaceProtocol from \"./ldContexts/odrl-dataspace-protocol.json\" with { type: \"json\" };\nimport schemaOrg from \"./ldContexts/schema.org.json\" with { type: \"json\" };\nimport unCefact from \"./ldContexts/un-cefact-vocab.json\" with { type: \"json\" };\nimport w3cActivityStreams from \"./ldContexts/w3c-activity-streams.json\" with { type: \"json\" };\nimport w3cDcat from \"./ldContexts/w3c-dcat.json\" with { type: \"json\" };\nimport w3cOdrl from \"./ldContexts/w3c-odrl.json\" with { type: \"json\" };\nimport w3cRdf from \"./ldContexts/w3c-rdf.json\" with { type: \"json\" };\nimport w3cVc from \"./ldContexts/w3c-vc-data-model-v2.json\" with { type: \"json\" };\nimport w3IdJws from \"./ldContexts/w3id-jws-2020-v1.json\" with { type: \"json\" };\n\n/**\n * Map of all the ld contexts by their URL.\n */\nexport const LD_CONTEXTS: { [id: string]: unknown } = {\n\t// schema.org\n\t\"https://schema.org\": schemaOrg,\n\t\"http://schema.org\": schemaOrg,\n\t\"https://schema.org/docs/jsonldcontext.jsonld\": schemaOrg,\n\n\t// Gaia-X\n\t\"https://w3id.org/gaia-x/2411\": gaiaX2411,\n\t\"https://w3id.org/gaia-x/2411#\": gaiaX2411,\n\n\t\"https://schema.twindev.org/gaia-x-loire/\": gaiaX2411,\n\t\"https://schema.twindev.org/gaia-x-loire/types.jsonld\": gaiaX2411,\n\n\t// W3C DCAT\n\t\"http://www.w3.org/ns/dcat#\": w3cDcat,\n\t\"https://www.w3.org/ns/dcat.jsonld\": w3cDcat,\n\t\"http://www.w3.org/ns/dcat.jsonld\": w3cDcat,\n\n\t// W3C ODRL\n\t\"http://www.w3.org/ns/odrl.jsonld\": w3cOdrl,\n\n\t// W3C Activity Streams\n\t\"https://www.w3.org/ns/activitystreams#\": w3cActivityStreams,\n\t\"https://www.w3.org/ns/activitystreams\": w3cActivityStreams,\n\n\t// W3C Credentials\n\t\"https://www.w3.org/ns/credentials/v2\": w3cVc,\n\t\"https://w3id.org/security/suites/jws-2020/v1\": w3IdJws,\n\n\t// UN/CEFACT\n\t\"https://vocabulary.uncefact.org\": unCefact,\n\t\"https://vocabulary.uncefact.org/unece-context.jsonld\": unCefact,\n\t\"https://vocabulary.uncefact.org/unece-context-D23B.jsonld\": unCefact,\n\n\t// Dublin Core\n\t\"http://purl.org/dc/terms/\": dcTerms,\n\t\"http://purl.org/dc/dcmitype/\": dcmitype,\n\t\"https://schema.twindev.org/dublin-core/terms.jsonld\": dcTerms,\n\t\"https://schema.twindev.org/dublin-core/dcmitype.jsonld\": dcmitype,\n\n\t// Data Space Protocol\n\t\"https://w3id.org/dspace/2024/1/context.json\": dataspaceProtocol,\n\t\"https://w3id.org/dspace/2025/1/context.jsonld\": dataspaceProtocol,\n\n\t\"https://w3id.org/dspace/2025/1/odrl-profile.jsonld\": odrlDataspaceProtocol,\n\n\t// Foaf\n\t\"https://schema.twindev.org/foaf/\": foaf,\n\t\"https://schema.twindev.org/foaf/types.jsonld\": foaf,\n\t\"http://xmlns.com/foaf/0.1/\": foaf,\n\n\t// W3C RDF\n\t\"https://schema.twindev.org/w3c-rdf/\": w3cRdf,\n\t\"https://schema.twindev.org/w3c-rdf/types.jsonld\": w3cRdf,\n\t\"http://www.w3.org/2000/01/rdf-schema#\": w3cRdf,\n\n\t// GS1 EPCIS\n\t\"https://ref.gs1.org/epcis/\": gs1epcis,\n\t\"https://ref.gs1.org/standards/epcis/2.0.0/epcis-context.jsonld\": gs1epcis\n};\n\n/**\n * Add all the contexts to the document cache.\n */\nexport async function addAllContextsToDocumentCache(): Promise<void> {\n\tfor (const url in LD_CONTEXTS) {\n\t\tawait JsonLdProcessor.documentCacheAdd(url, LD_CONTEXTS[url]);\n\t}\n}\n\n/**\n * Add a context to the document cache.\n * @param url The URL of the context to add to the cache.\n */\nexport async function addContextToDocumentCache(url: string): Promise<void> {\n\tif (Is.empty(LD_CONTEXTS[url])) {\n\t\tthrow new GeneralError(\"ldContext\", \"missing\", { url });\n\t}\n\tawait JsonLdProcessor.documentCacheAdd(url, LD_CONTEXTS[url]);\n}\n"]}
package/docs/changelog.md CHANGED
@@ -1,5 +1,194 @@
1
1
  # @twin.org/standards-ld-contexts - Changelog
2
2
 
3
+ ## [0.0.3-next.30](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.29...standards-ld-contexts-v0.0.3-next.30) (2026-02-04)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **standards-ld-contexts:** Synchronize repo versions
9
+
10
+ ## [0.0.3-next.29](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.28...standards-ld-contexts-v0.0.3-next.29) (2026-02-03)
11
+
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * **standards-ld-contexts:** Synchronize repo versions
16
+
17
+ ## [0.0.3-next.28](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.27...standards-ld-contexts-v0.0.3-next.28) (2026-02-03)
18
+
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * **standards-ld-contexts:** Synchronize repo versions
23
+
24
+ ## [0.0.3-next.27](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.26...standards-ld-contexts-v0.0.3-next.27) (2026-02-03)
25
+
26
+
27
+ ### Miscellaneous Chores
28
+
29
+ * **standards-ld-contexts:** Synchronize repo versions
30
+
31
+ ## [0.0.3-next.26](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.25...standards-ld-contexts-v0.0.3-next.26) (2026-02-02)
32
+
33
+
34
+ ### Miscellaneous Chores
35
+
36
+ * **standards-ld-contexts:** Synchronize repo versions
37
+
38
+ ## [0.0.3-next.25](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.24...standards-ld-contexts-v0.0.3-next.25) (2026-02-02)
39
+
40
+
41
+ ### Miscellaneous Chores
42
+
43
+ * **standards-ld-contexts:** Synchronize repo versions
44
+
45
+ ## [0.0.3-next.24](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.23...standards-ld-contexts-v0.0.3-next.24) (2026-01-30)
46
+
47
+
48
+ ### Miscellaneous Chores
49
+
50
+ * **standards-ld-contexts:** Synchronize repo versions
51
+
52
+ ## [0.0.3-next.23](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.22...standards-ld-contexts-v0.0.3-next.23) (2026-01-30)
53
+
54
+
55
+ ### Miscellaneous Chores
56
+
57
+ * **standards-ld-contexts:** Synchronize repo versions
58
+
59
+ ## [0.0.3-next.22](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.21...standards-ld-contexts-v0.0.3-next.22) (2026-01-29)
60
+
61
+
62
+ ### Miscellaneous Chores
63
+
64
+ * **standards-ld-contexts:** Synchronize repo versions
65
+
66
+ ## [0.0.3-next.21](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.20...standards-ld-contexts-v0.0.3-next.21) (2026-01-23)
67
+
68
+
69
+ ### Miscellaneous Chores
70
+
71
+ * **standards-ld-contexts:** Synchronize repo versions
72
+
73
+ ## [0.0.3-next.20](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.19...standards-ld-contexts-v0.0.3-next.20) (2026-01-21)
74
+
75
+
76
+ ### Miscellaneous Chores
77
+
78
+ * **standards-ld-contexts:** Synchronize repo versions
79
+
80
+ ## [0.0.3-next.19](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.18...standards-ld-contexts-v0.0.3-next.19) (2026-01-21)
81
+
82
+
83
+ ### Miscellaneous Chores
84
+
85
+ * **standards-ld-contexts:** Synchronize repo versions
86
+
87
+ ## [0.0.3-next.18](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.17...standards-ld-contexts-v0.0.3-next.18) (2026-01-21)
88
+
89
+
90
+ ### Miscellaneous Chores
91
+
92
+ * **standards-ld-contexts:** Synchronize repo versions
93
+
94
+ ## [0.0.3-next.17](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.16...standards-ld-contexts-v0.0.3-next.17) (2026-01-21)
95
+
96
+
97
+ ### Miscellaneous Chores
98
+
99
+ * **standards-ld-contexts:** Synchronize repo versions
100
+
101
+ ## [0.0.3-next.16](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.15...standards-ld-contexts-v0.0.3-next.16) (2026-01-19)
102
+
103
+
104
+ ### Miscellaneous Chores
105
+
106
+ * **standards-ld-contexts:** Synchronize repo versions
107
+
108
+ ## [0.0.3-next.15](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.14...standards-ld-contexts-v0.0.3-next.15) (2026-01-16)
109
+
110
+
111
+ ### Miscellaneous Chores
112
+
113
+ * **standards-ld-contexts:** Synchronize repo versions
114
+
115
+ ## [0.0.3-next.14](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.13...standards-ld-contexts-v0.0.3-next.14) (2026-01-15)
116
+
117
+
118
+ ### Miscellaneous Chores
119
+
120
+ * **standards-ld-contexts:** Synchronize repo versions
121
+
122
+ ## [0.0.3-next.13](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.12...standards-ld-contexts-v0.0.3-next.13) (2026-01-14)
123
+
124
+
125
+ ### Miscellaneous Chores
126
+
127
+ * **standards-ld-contexts:** Synchronize repo versions
128
+
129
+ ## [0.0.3-next.12](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.11...standards-ld-contexts-v0.0.3-next.12) (2026-01-14)
130
+
131
+
132
+ ### Miscellaneous Chores
133
+
134
+ * **standards-ld-contexts:** Synchronize repo versions
135
+
136
+ ## [0.0.3-next.11](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.10...standards-ld-contexts-v0.0.3-next.11) (2026-01-14)
137
+
138
+
139
+ ### Features
140
+
141
+ * update epcis models to match spec ([#92](https://github.com/twinfoundation/standards/issues/92)) ([1e56f70](https://github.com/twinfoundation/standards/commit/1e56f70415a8612113a36ad65a6cc5abdd85e091))
142
+
143
+ ## [0.0.3-next.10](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.9...standards-ld-contexts-v0.0.3-next.10) (2026-01-13)
144
+
145
+
146
+ ### Miscellaneous Chores
147
+
148
+ * **standards-ld-contexts:** Synchronize repo versions
149
+
150
+ ## [0.0.3-next.9](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.8...standards-ld-contexts-v0.0.3-next.9) (2026-01-09)
151
+
152
+
153
+ ### Miscellaneous Chores
154
+
155
+ * **standards-ld-contexts:** Synchronize repo versions
156
+
157
+ ## [0.0.3-next.8](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.7...standards-ld-contexts-v0.0.3-next.8) (2026-01-08)
158
+
159
+
160
+ ### Features
161
+
162
+ * add ds protocol catalog dataset ([#86](https://github.com/twinfoundation/standards/issues/86)) ([45600e6](https://github.com/twinfoundation/standards/commit/45600e6cba212d85e250cb12cbdcb712d8db0e52))
163
+
164
+ ## [0.0.3-next.7](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.6...standards-ld-contexts-v0.0.3-next.7) (2026-01-06)
165
+
166
+
167
+ ### Bug Fixes
168
+
169
+ * refine local LD Contexts ([#84](https://github.com/twinfoundation/standards/issues/84)) ([785e359](https://github.com/twinfoundation/standards/commit/785e359ad6895fcb97197ca707915651fe3ae79c))
170
+
171
+ ## [0.0.3-next.6](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.5...standards-ld-contexts-v0.0.3-next.6) (2025-12-03)
172
+
173
+
174
+ ### Features
175
+
176
+ * generate unece types from JSON schema ([#71](https://github.com/twinfoundation/standards/issues/71)) ([5a596e7](https://github.com/twinfoundation/standards/commit/5a596e7a79c1a0b213560f5fb8b9ec5019d598d7))
177
+
178
+ ## [0.0.3-next.5](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.4...standards-ld-contexts-v0.0.3-next.5) (2025-11-28)
179
+
180
+
181
+ ### Miscellaneous Chores
182
+
183
+ * **standards-ld-contexts:** Synchronize repo versions
184
+
185
+ ## [0.0.3-next.4](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.3...standards-ld-contexts-v0.0.3-next.4) (2025-11-18)
186
+
187
+
188
+ ### Miscellaneous Chores
189
+
190
+ * **standards-ld-contexts:** Synchronize repo versions
191
+
3
192
  ## [0.0.3-next.3](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.2...standards-ld-contexts-v0.0.3-next.3) (2025-11-18)
4
193
 
5
194
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-ld-contexts",
3
- "version": "0.0.3-next.3",
3
+ "version": "0.0.3-next.30",
4
4
  "description": "Local copies of standard LD contexts which can be used for offline development",
5
5
  "repository": {
6
6
  "type": "git",