@twin.org/standards-ld-contexts 0.0.3-next.1 → 0.0.3-next.10

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,15 @@ 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 odrlDataspaceProtocol from "./ldContexts/odrl-dataspace-protocol.json" with { type: "json" };
10
11
  import schemaOrg from "./ldContexts/schema.org.json" with { type: "json" };
11
12
  import unCefact from "./ldContexts/un-cefact-vocab.json" with { type: "json" };
12
13
  import w3cActivityStreams from "./ldContexts/w3c-activity-streams.json" with { type: "json" };
14
+ import w3cDcat from "./ldContexts/w3c-dcat.json" with { type: "json" };
13
15
  import w3cOdrl from "./ldContexts/w3c-odrl.json" with { type: "json" };
16
+ import w3cRdf from "./ldContexts/w3c-rdf.json" with { type: "json" };
14
17
  import w3cVc from "./ldContexts/w3c-vc-data-model-v2.json" with { type: "json" };
15
18
  import w3IdJws from "./ldContexts/w3id-jws-2020-v1.json" with { type: "json" };
16
19
  /**
@@ -26,26 +29,39 @@ export const LD_CONTEXTS = {
26
29
  "https://w3id.org/gaia-x/2411#": gaiaX2411,
27
30
  "https://schema.twindev.org/gaia-x-loire/": gaiaX2411,
28
31
  "https://schema.twindev.org/gaia-x-loire/types.jsonld": gaiaX2411,
32
+ // W3C DCAT
33
+ "http://www.w3.org/ns/dcat#": w3cDcat,
34
+ "https://www.w3.org/ns/dcat.jsonld": w3cDcat,
35
+ "http://www.w3.org/ns/dcat.jsonld": w3cDcat,
29
36
  // W3C ODRL
30
37
  "http://www.w3.org/ns/odrl.jsonld": w3cOdrl,
31
38
  // W3C Activity Streams
32
39
  "https://www.w3.org/ns/activitystreams#": w3cActivityStreams,
40
+ "https://www.w3.org/ns/activitystreams": w3cActivityStreams,
33
41
  // W3C Credentials
34
42
  "https://www.w3.org/ns/credentials/v2": w3cVc,
35
43
  "https://w3id.org/security/suites/jws-2020/v1": w3IdJws,
36
44
  // UN/CEFACT
37
45
  "https://vocabulary.uncefact.org": unCefact,
46
+ "https://vocabulary.uncefact.org/unece-context.jsonld": unCefact,
47
+ "https://vocabulary.uncefact.org/unece-context-D23B.jsonld": unCefact,
38
48
  // Dublin Core
39
49
  "http://purl.org/dc/terms/": dcTerms,
40
50
  "http://purl.org/dc/dcmitype/": dcmitype,
41
51
  "https://schema.twindev.org/dublin-core/terms.jsonld": dcTerms,
42
52
  "https://schema.twindev.org/dublin-core/dcmitype.jsonld": dcmitype,
43
- // IDS Contract Negotiation
53
+ // Data Space Protocol
44
54
  "https://w3id.org/dspace/2024/1/context.json": dataspaceProtocol,
45
55
  "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
56
+ "https://w3id.org/dspace/2025/1/odrl-profile.jsonld": odrlDataspaceProtocol,
57
+ // Foaf
58
+ "https://schema.twindev.org/foaf/": foaf,
59
+ "https://schema.twindev.org/foaf/types.jsonld": foaf,
60
+ "http://xmlns.com/foaf/0.1/": foaf,
61
+ // W3C RDF
62
+ "https://schema.twindev.org/w3c-rdf/": w3cRdf,
63
+ "https://schema.twindev.org/w3c-rdf/types.jsonld": w3cRdf,
64
+ "http://www.w3.org/2000/01/rdf-schema#": w3cRdf
49
65
  };
50
66
  /**
51
67
  * 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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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,qBAAqB,MAAM,2CAA2C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACpG,OAAO,SAAS,MAAM,8BAA8B,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC3E,OAAO,QAAQ,MAAM,mCAAmC,CAAC,OAAO,IAAI,EAAE,MAAM,E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;IACtB,6CAA6C,EAAE,iBAAiB;IAChE,+CAA+C,EAAE,iBAAiB;IAElE,oDAAoD,EAAE,qBAAqB;IAE3E,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 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\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,68 @@
1
1
  # @twin.org/standards-ld-contexts - Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **standards-ld-contexts:** Synchronize repo versions
9
+
10
+ ## [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)
11
+
12
+
13
+ ### Miscellaneous Chores
14
+
15
+ * **standards-ld-contexts:** Synchronize repo versions
16
+
17
+ ## [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)
18
+
19
+
20
+ ### Features
21
+
22
+ * add ds protocol catalog dataset ([#86](https://github.com/twinfoundation/standards/issues/86)) ([45600e6](https://github.com/twinfoundation/standards/commit/45600e6cba212d85e250cb12cbdcb712d8db0e52))
23
+
24
+ ## [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)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * refine local LD Contexts ([#84](https://github.com/twinfoundation/standards/issues/84)) ([785e359](https://github.com/twinfoundation/standards/commit/785e359ad6895fcb97197ca707915651fe3ae79c))
30
+
31
+ ## [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)
32
+
33
+
34
+ ### Features
35
+
36
+ * generate unece types from JSON schema ([#71](https://github.com/twinfoundation/standards/issues/71)) ([5a596e7](https://github.com/twinfoundation/standards/commit/5a596e7a79c1a0b213560f5fb8b9ec5019d598d7))
37
+
38
+ ## [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)
39
+
40
+
41
+ ### Miscellaneous Chores
42
+
43
+ * **standards-ld-contexts:** Synchronize repo versions
44
+
45
+ ## [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)
46
+
47
+
48
+ ### Miscellaneous Chores
49
+
50
+ * **standards-ld-contexts:** Synchronize repo versions
51
+
52
+ ## [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)
53
+
54
+
55
+ ### Features
56
+
57
+ * add w3c dcat standards package ([#68](https://github.com/twinfoundation/standards/issues/68)) ([85746c6](https://github.com/twinfoundation/standards/commit/85746c673464498a52e9c30ce498fd88b81a7434))
58
+
59
+ ## [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)
60
+
61
+
62
+ ### Miscellaneous Chores
63
+
64
+ * **standards-ld-contexts:** Synchronize repo versions
65
+
3
66
  ## [0.0.3-next.1](https://github.com/twinfoundation/standards/compare/standards-ld-contexts-v0.0.3-next.0...standards-ld-contexts-v0.0.3-next.1) (2025-11-10)
4
67
 
5
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-ld-contexts",
3
- "version": "0.0.3-next.1",
3
+ "version": "0.0.3-next.10",
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
- }