@twin.org/standards-ld-contexts 0.0.3-next.2 → 0.0.3-next.21

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.
@@ -0,0 +1,38 @@
1
+ {
2
+ "@context": {
3
+ "rdfs": "http://www.w3.org/2000/01/rdf-schema#",
4
+ "rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
5
+ "Resource": "rdfs:Resource",
6
+ "Class": "rdfs:Class",
7
+ "Literal": "rdfs:Literal",
8
+ "Datatype": "rdfs:Datatype",
9
+ "langString": "rdf:langString",
10
+ "HTML": "rdf:HTML",
11
+ "XMLLiteral": "rdf:XMLLiteral",
12
+ "Property": "rdf:Property",
13
+ "Statement": "rdf:Statement",
14
+ "Container": "rdfs:Container",
15
+ "Bag": "rdf:Bag",
16
+ "Seq": "rdf:Seq",
17
+ "Alt": "rdf:Alt",
18
+ "ContainerMembershipProperty": "rdfs:ContainerMembershipProperty",
19
+ "List": "rdf:List",
20
+ "type": "rdf:type",
21
+ "subClassOf": "rdfs:subClassOf",
22
+ "subPropertyOf": "rdfs:subPropertyOf",
23
+ "domain": "rdfs:domain",
24
+ "range": "rdfs:range",
25
+ "label": "rdfs:label",
26
+ "comment": "rdfs:comment",
27
+ "member": "rdfs:member",
28
+ "first": "rdf:first",
29
+ "rest": "rdf:rest",
30
+ "nil": "rdf:nil",
31
+ "subject": "rdf:subject",
32
+ "predicate": "rdf:predicate",
33
+ "object": "rdf:object",
34
+ "seeAlso": "rdfs:seeAlso",
35
+ "isDefinedBy": "rdfs:isDefinedBy",
36
+ "value": "rdf:value"
37
+ }
38
+ }
@@ -5,12 +5,16 @@ import { JsonLdProcessor } from "@twin.org/data-json-ld";
5
5
  import dataspaceProtocol from "./ldContexts/dataspace-protocol.json" with { type: "json" };
6
6
  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
- import federatedCatalogueTerms from "./ldContexts/federated-catalogue-terms.json" with { type: "json" };
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" };
15
+ import w3cDcat from "./ldContexts/w3c-dcat.json" with { type: "json" };
13
16
  import w3cOdrl from "./ldContexts/w3c-odrl.json" with { type: "json" };
17
+ import w3cRdf from "./ldContexts/w3c-rdf.json" with { type: "json" };
14
18
  import w3cVc from "./ldContexts/w3c-vc-data-model-v2.json" with { type: "json" };
15
19
  import w3IdJws from "./ldContexts/w3id-jws-2020-v1.json" with { type: "json" };
16
20
  /**
@@ -26,26 +30,42 @@ export const LD_CONTEXTS = {
26
30
  "https://w3id.org/gaia-x/2411#": gaiaX2411,
27
31
  "https://schema.twindev.org/gaia-x-loire/": gaiaX2411,
28
32
  "https://schema.twindev.org/gaia-x-loire/types.jsonld": gaiaX2411,
33
+ // W3C DCAT
34
+ "http://www.w3.org/ns/dcat#": w3cDcat,
35
+ "https://www.w3.org/ns/dcat.jsonld": w3cDcat,
36
+ "http://www.w3.org/ns/dcat.jsonld": w3cDcat,
29
37
  // W3C ODRL
30
38
  "http://www.w3.org/ns/odrl.jsonld": w3cOdrl,
31
39
  // W3C Activity Streams
32
40
  "https://www.w3.org/ns/activitystreams#": w3cActivityStreams,
41
+ "https://www.w3.org/ns/activitystreams": w3cActivityStreams,
33
42
  // W3C Credentials
34
43
  "https://www.w3.org/ns/credentials/v2": w3cVc,
35
44
  "https://w3id.org/security/suites/jws-2020/v1": w3IdJws,
36
45
  // UN/CEFACT
37
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,
38
49
  // Dublin Core
39
50
  "http://purl.org/dc/terms/": dcTerms,
40
51
  "http://purl.org/dc/dcmitype/": dcmitype,
41
52
  "https://schema.twindev.org/dublin-core/terms.jsonld": dcTerms,
42
53
  "https://schema.twindev.org/dublin-core/dcmitype.jsonld": dcmitype,
43
- // IDS Contract Negotiation
54
+ // Data Space Protocol
44
55
  "https://w3id.org/dspace/2024/1/context.json": dataspaceProtocol,
45
56
  "https://w3id.org/dspace/2025/1/context.jsonld": dataspaceProtocol,
46
- // Federated Catalogue
47
- "https://schema.twindev.org/federated-catalogue/": federatedCatalogueTerms,
48
- "https://schema.twindev.org/federated-catalogue/types.jsonld": federatedCatalogueTerms
57
+ "https://w3id.org/dspace/2025/1/odrl-profile.jsonld": odrlDataspaceProtocol,
58
+ // Foaf
59
+ "https://schema.twindev.org/foaf/": foaf,
60
+ "https://schema.twindev.org/foaf/types.jsonld": foaf,
61
+ "http://xmlns.com/foaf/0.1/": foaf,
62
+ // W3C RDF
63
+ "https://schema.twindev.org/w3c-rdf/": w3cRdf,
64
+ "https://schema.twindev.org/w3c-rdf/types.jsonld": 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
49
69
  };
50
70
  /**
51
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,MAA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E,KAAK;IAC7C,8CAA8C,EAAE,OAAO;IAEvD,YAAY;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,sBAAsB;IACtB,iDAAiD,EAAE,uBAAuB;IAC1E,6DAA6D,EAAE,uBAAuB;CACtF,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 federatedCatalogueTerms from \"./ldContexts/federated-catalogue-terms.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 w3cOdrl from \"./ldContexts/w3c-odrl.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 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// Federated Catalogue\n\t\"https://schema.twindev.org/federated-catalogue/\": federatedCatalogueTerms,\n\t\"https://schema.twindev.org/federated-catalogue/types.jsonld\": federatedCatalogueTerms\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,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,IAAI,MAAM,wBAAwB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAChE,OAAO,SAAS,MAAM,iCAAiC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC9E,OAAO,QAAQ,MAAM,6BAA6B,CAAC,OAAO,IAAI,EAAE,MA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sonLdProcessor } 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,138 @@
1
1
  # @twin.org/standards-ld-contexts - Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **standards-ld-contexts:** Synchronize repo versions
9
+
10
+ ## [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)
11
+
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * **standards-ld-contexts:** Synchronize repo versions
16
+
17
+ ## [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)
18
+
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * **standards-ld-contexts:** Synchronize repo versions
23
+
24
+ ## [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)
25
+
26
+
27
+ ### Miscellaneous Chores
28
+
29
+ * **standards-ld-contexts:** Synchronize repo versions
30
+
31
+ ## [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)
32
+
33
+
34
+ ### Miscellaneous Chores
35
+
36
+ * **standards-ld-contexts:** Synchronize repo versions
37
+
38
+ ## [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)
39
+
40
+
41
+ ### Miscellaneous Chores
42
+
43
+ * **standards-ld-contexts:** Synchronize repo versions
44
+
45
+ ## [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)
46
+
47
+
48
+ ### Miscellaneous Chores
49
+
50
+ * **standards-ld-contexts:** Synchronize repo versions
51
+
52
+ ## [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)
53
+
54
+
55
+ ### Miscellaneous Chores
56
+
57
+ * **standards-ld-contexts:** Synchronize repo versions
58
+
59
+ ## [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)
60
+
61
+
62
+ ### Miscellaneous Chores
63
+
64
+ * **standards-ld-contexts:** Synchronize repo versions
65
+
66
+ ## [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)
67
+
68
+
69
+ ### Miscellaneous Chores
70
+
71
+ * **standards-ld-contexts:** Synchronize repo versions
72
+
73
+ ## [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)
74
+
75
+
76
+ ### Features
77
+
78
+ * update epcis models to match spec ([#92](https://github.com/twinfoundation/standards/issues/92)) ([1e56f70](https://github.com/twinfoundation/standards/commit/1e56f70415a8612113a36ad65a6cc5abdd85e091))
79
+
80
+ ## [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)
81
+
82
+
83
+ ### Miscellaneous Chores
84
+
85
+ * **standards-ld-contexts:** Synchronize repo versions
86
+
87
+ ## [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)
88
+
89
+
90
+ ### Miscellaneous Chores
91
+
92
+ * **standards-ld-contexts:** Synchronize repo versions
93
+
94
+ ## [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)
95
+
96
+
97
+ ### Features
98
+
99
+ * add ds protocol catalog dataset ([#86](https://github.com/twinfoundation/standards/issues/86)) ([45600e6](https://github.com/twinfoundation/standards/commit/45600e6cba212d85e250cb12cbdcb712d8db0e52))
100
+
101
+ ## [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)
102
+
103
+
104
+ ### Bug Fixes
105
+
106
+ * refine local LD Contexts ([#84](https://github.com/twinfoundation/standards/issues/84)) ([785e359](https://github.com/twinfoundation/standards/commit/785e359ad6895fcb97197ca707915651fe3ae79c))
107
+
108
+ ## [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)
109
+
110
+
111
+ ### Features
112
+
113
+ * generate unece types from JSON schema ([#71](https://github.com/twinfoundation/standards/issues/71)) ([5a596e7](https://github.com/twinfoundation/standards/commit/5a596e7a79c1a0b213560f5fb8b9ec5019d598d7))
114
+
115
+ ## [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)
116
+
117
+
118
+ ### Miscellaneous Chores
119
+
120
+ * **standards-ld-contexts:** Synchronize repo versions
121
+
122
+ ## [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)
123
+
124
+
125
+ ### Miscellaneous Chores
126
+
127
+ * **standards-ld-contexts:** Synchronize repo versions
128
+
129
+ ## [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)
130
+
131
+
132
+ ### Features
133
+
134
+ * add w3c dcat standards package ([#68](https://github.com/twinfoundation/standards/issues/68)) ([85746c6](https://github.com/twinfoundation/standards/commit/85746c673464498a52e9c30ce498fd88b81a7434))
135
+
3
136
  ## [0.0.3-next.2](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.1...standards-ld-contexts-v0.0.3-next.2) (2025-11-11)
4
137
 
5
138
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-ld-contexts",
3
- "version": "0.0.3-next.2",
3
+ "version": "0.0.3-next.21",
4
4
  "description": "Local copies of standard LD contexts which can be used for offline development",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,51 +0,0 @@
1
- {
2
- "comment": "Specific terms used by the Federated Catalogue",
3
- "comment2": "Gaia-X terms are defined here due to an incorrect @type in some of them",
4
- "@context": {
5
- "@version": 1.1,
6
- "fed-cat": "https://schema.twindev.org/federated-catalogue/",
7
- "idsa": "https://w3id.org/idsa/core/",
8
- "schema": "https://schema.org/",
9
- "DataSpaceConnector": "fed-cat:DataSpaceConnector",
10
- "maintainer": {
11
- "@id": "idsa:maintainer",
12
- "@type": "@id"
13
- },
14
- "defaultEndpoint": {
15
- "@id": "idsa:hasDefaultEndpoint",
16
- "@type": "@id"
17
- },
18
- "subscriptionActivityEndpoint": {
19
- "@id": "fed-cat:subscriptionActivityEndpoint",
20
- "@type": "@id"
21
- },
22
- "pushActivityEndpoint": {
23
- "@id": "fed-cat:pushActivityEndpoint",
24
- "@type": "@id"
25
- },
26
- "pullActivityEndpoint": {
27
- "@id": "fed-cat:pullActivityEndpoint",
28
- "@type": "@id"
29
- },
30
- "pullDataEndpoint": {
31
- "@id": "fed-cat:pullDataEndpoint",
32
- "@type": "@id"
33
- },
34
- "offeredResource": {
35
- "@id": "idsa:offeredResource",
36
- "@container": "@id"
37
- },
38
- "identity": {
39
- "@id": "fed-cat:identity",
40
- "@type": "schema:URL"
41
- },
42
- "issuer": "https://www.w3.org/2018/credentials#issuer",
43
- "validFrom": "https://www.w3.org/2018/credentials#validFrom",
44
- "validUntil": "https://www.w3.org/2018/credentials#validUntil",
45
- "evidence": "https://www.w3.org/2018/credentials#evidence",
46
- "legalAddress": "https://w3id.org/gaia-x/2411#legalAddress",
47
- "registrationNumber": "https://w3id.org/gaia-x/2411#registrationNumber",
48
- "endpoint": "https://w3id.org/gaia-x/2411#endpoint",
49
- "servicePolicy": "https://w3id.org/gaia-x/2411#servicePolicy"
50
- }
51
- }