@twin.org/standards-gaia-x 0.0.3-next.10 → 0.0.3-next.11

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.
@@ -1,4 +1,6 @@
1
- import { DataTypeHandlerFactory } from "@twin.org/data-core";
1
+ // Copyright 2024 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { DataTypeHelper } from "@twin.org/data-core";
2
4
  import { GaiaXContexts } from "../models/gaiaXContexts.js";
3
5
  import { GaiaXTypes } from "../models/gaiaXTypes.js";
4
6
  import AddressSchema from "../schemas/Address.json" with { type: "json" };
@@ -16,41 +18,37 @@ export class GaiaXDataTypes {
16
18
  * Register all the data types.
17
19
  */
18
20
  static registerTypes() {
19
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.DataExchangeComponent}`, () => ({
20
- context: GaiaXContexts.ContextRoot,
21
- type: GaiaXTypes.DataExchangeComponent,
22
- jsonSchema: async () => DataExchangeComponentSchema
23
- }));
24
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.DataResource}`, () => ({
25
- context: GaiaXContexts.ContextRoot,
26
- type: GaiaXTypes.DataResource,
27
- jsonSchema: async () => DataResourceSchema
28
- }));
29
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.Endpoint}`, () => ({
30
- context: GaiaXContexts.ContextRoot,
31
- type: GaiaXTypes.Endpoint,
32
- jsonSchema: async () => EndpointSchema
33
- }));
34
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.Address}`, () => ({
35
- context: GaiaXContexts.ContextRoot,
36
- type: GaiaXTypes.Address,
37
- jsonSchema: async () => AddressSchema
38
- }));
39
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.ServiceOffering}`, () => ({
40
- context: GaiaXContexts.ContextRoot,
41
- type: GaiaXTypes.ServiceOffering,
42
- jsonSchema: async () => ServiceOfferingSchema
43
- }));
44
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.LegalPerson}`, () => ({
45
- context: GaiaXContexts.ContextRoot,
46
- type: GaiaXTypes.LegalPerson,
47
- jsonSchema: async () => LegalPersonSchema
48
- }));
49
- DataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.RegistrationNumber}`, () => ({
50
- context: GaiaXContexts.ContextRoot,
51
- type: GaiaXTypes.RegistrationNumber,
52
- jsonSchema: async () => RegistrationNumberSchema
53
- }));
21
+ const types = [
22
+ {
23
+ type: GaiaXTypes.DataExchangeComponent,
24
+ schema: DataExchangeComponentSchema
25
+ },
26
+ {
27
+ type: GaiaXTypes.DataResource,
28
+ schema: DataResourceSchema
29
+ },
30
+ {
31
+ type: GaiaXTypes.Endpoint,
32
+ schema: EndpointSchema
33
+ },
34
+ {
35
+ type: GaiaXTypes.Address,
36
+ schema: AddressSchema
37
+ },
38
+ {
39
+ type: GaiaXTypes.ServiceOffering,
40
+ schema: ServiceOfferingSchema
41
+ },
42
+ {
43
+ type: GaiaXTypes.LegalPerson,
44
+ schema: LegalPersonSchema
45
+ },
46
+ {
47
+ type: GaiaXTypes.RegistrationNumber,
48
+ schema: RegistrationNumberSchema
49
+ }
50
+ ];
51
+ DataTypeHelper.registerTypes(GaiaXContexts.Namespace, undefined, types);
54
52
  }
55
53
  }
56
54
  //# sourceMappingURL=gaiaXDataTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gaiaXDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/gaiaXDataTypes.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,aAAa,MAAM,yBAAyB,CAAC,OAAO,IAA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 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonSchema } from \"@twin.org/data-core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { GaiaXContexts } from \"../models/gaiaXContexts.js\";\nimport { GaiaXTypes } from \"../models/gaiaXTypes.js\";\nimport AddressSchema from \"../schemas/Address.json\" with { type: \"json\" };\nimport DataExchangeComponentSchema from \"../schemas/DataExchangeComponent.json\" with { type: \"json\" };\nimport DataResourceSchema from \"../schemas/DataResource.json\" with { type: \"json\" };\nimport EndpointSchema from \"../schemas/Endpoint.json\" with { type: \"json\" };\nimport LegalPersonSchema from \"../schemas/LegalPerson.json\" with { type: \"json\" };\nimport RegistrationNumberSchema from \"../schemas/RegistrationNumber.json\" with { type: \"json\" };\nimport ServiceOfferingSchema from \"../schemas/ServiceOffering.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for Gaia-X.\n */\nexport class GaiaXDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${GaiaXContexts.ContextRoot}${GaiaXTypes.DataExchangeComponent}`,\n\t\t\t() => ({\n\t\t\t\tcontext: GaiaXContexts.ContextRoot,\n\t\t\t\ttype: GaiaXTypes.DataExchangeComponent,\n\t\t\t\tjsonSchema: async () => DataExchangeComponentSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${GaiaXContexts.ContextRoot}${GaiaXTypes.DataResource}`,\n\t\t\t() => ({\n\t\t\t\tcontext: GaiaXContexts.ContextRoot,\n\t\t\t\ttype: GaiaXTypes.DataResource,\n\t\t\t\tjsonSchema: async () => DataResourceSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.Endpoint}`, () => ({\n\t\t\tcontext: GaiaXContexts.ContextRoot,\n\t\t\ttype: GaiaXTypes.Endpoint,\n\t\t\tjsonSchema: async () => EndpointSchema as IJsonSchema\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(`${GaiaXContexts.ContextRoot}${GaiaXTypes.Address}`, () => ({\n\t\t\tcontext: GaiaXContexts.ContextRoot,\n\t\t\ttype: GaiaXTypes.Address,\n\t\t\tjsonSchema: async () => AddressSchema as IJsonSchema\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${GaiaXContexts.ContextRoot}${GaiaXTypes.ServiceOffering}`,\n\t\t\t() => ({\n\t\t\t\tcontext: GaiaXContexts.ContextRoot,\n\t\t\t\ttype: GaiaXTypes.ServiceOffering,\n\t\t\t\tjsonSchema: async () => ServiceOfferingSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${GaiaXContexts.ContextRoot}${GaiaXTypes.LegalPerson}`,\n\t\t\t() => ({\n\t\t\t\tcontext: GaiaXContexts.ContextRoot,\n\t\t\t\ttype: GaiaXTypes.LegalPerson,\n\t\t\t\tjsonSchema: async () => LegalPersonSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${GaiaXContexts.ContextRoot}${GaiaXTypes.RegistrationNumber}`,\n\t\t\t() => ({\n\t\t\t\tcontext: GaiaXContexts.ContextRoot,\n\t\t\t\ttype: GaiaXTypes.RegistrationNumber,\n\t\t\t\tjsonSchema: async () => RegistrationNumberSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
1
+ {"version":3,"file":"gaiaXDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/gaiaXDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB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AAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACzE,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHelper } from \"@twin.org/data-core\";\nimport { GaiaXContexts } from \"../models/gaiaXContexts.js\";\nimport { GaiaXTypes } from \"../models/gaiaXTypes.js\";\nimport AddressSchema from \"../schemas/Address.json\" with { type: \"json\" };\nimport DataExchangeComponentSchema from \"../schemas/DataExchangeComponent.json\" with { type: \"json\" };\nimport DataResourceSchema from \"../schemas/DataResource.json\" with { type: \"json\" };\nimport EndpointSchema from \"../schemas/Endpoint.json\" with { type: \"json\" };\nimport LegalPersonSchema from \"../schemas/LegalPerson.json\" with { type: \"json\" };\nimport RegistrationNumberSchema from \"../schemas/RegistrationNumber.json\" with { type: \"json\" };\nimport ServiceOfferingSchema from \"../schemas/ServiceOffering.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for Gaia-X.\n */\nexport class GaiaXDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tconst types = [\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.DataExchangeComponent,\n\t\t\t\tschema: DataExchangeComponentSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.DataResource,\n\t\t\t\tschema: DataResourceSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.Endpoint,\n\t\t\t\tschema: EndpointSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.Address,\n\t\t\t\tschema: AddressSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.ServiceOffering,\n\t\t\t\tschema: ServiceOfferingSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.LegalPerson,\n\t\t\t\tschema: LegalPersonSchema\n\t\t\t},\n\t\t\t{\n\t\t\t\ttype: GaiaXTypes.RegistrationNumber,\n\t\t\t\tschema: RegistrationNumberSchema\n\t\t\t}\n\t\t];\n\n\t\tDataTypeHelper.registerTypes(GaiaXContexts.Namespace, undefined, types);\n\t}\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"gaiaXContextType.js","sourceRoot":"","sources":["../../../src/models/gaiaXContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { GaiaXContexts } from \"./gaiaXContexts.js\";\n\n/**\n * The Gaia-X JSON-LD context type.\n */\nexport type GaiaXContextType =\n\t| typeof GaiaXContexts.ContextRoot\n\t| [\n\t\t\t...IJsonLdContextDefinitionElement[],\n\t\t\ttypeof GaiaXContexts.ContextRoot,\n\t\t\tIJsonLdContextDefinitionElement\n\t ]\n\t| [\n\t\t\tIJsonLdContextDefinitionElement,\n\t\t\ttypeof GaiaXContexts.ContextRoot,\n\t\t\t...IJsonLdContextDefinitionElement[]\n\t ];\n"]}
1
+ {"version":3,"file":"gaiaXContextType.js","sourceRoot":"","sources":["../../../src/models/gaiaXContextType.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { GaiaXContexts } from \"./gaiaXContexts.js\";\n\n/**\n * The Gaia-X JSON-LD context type.\n */\nexport type GaiaXContextType =\n\t| typeof GaiaXContexts.Namespace\n\t| [\n\t\t\t...IJsonLdContextDefinitionElement[],\n\t\t\ttypeof GaiaXContexts.Namespace,\n\t\t\tIJsonLdContextDefinitionElement\n\t ]\n\t| [\n\t\t\tIJsonLdContextDefinitionElement,\n\t\t\ttypeof GaiaXContexts.Namespace,\n\t\t\t...IJsonLdContextDefinitionElement[]\n\t ];\n"]}
@@ -1,13 +1,13 @@
1
1
  // Copyright 2024 IOTA Stiftung.
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
3
  /**
4
- * The LD Contexts concerning Gaia-X.
4
+ * The Contexts concerning Gaia-X.
5
5
  */
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
7
  export const GaiaXContexts = {
8
8
  /**
9
- * The Gaia-X LD Context
9
+ * The Gaia-X Namespace
10
10
  */
11
- ContextRoot: "https://schema.twindev.org/gaia-x-loire/"
11
+ Namespace: "https://schema.twindev.org/gaia-x-loire/"
12
12
  };
13
13
  //# sourceMappingURL=gaiaXContexts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gaiaXContexts.js","sourceRoot":"","sources":["../../../src/models/gaiaXContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B;;OAEG;IACH,WAAW,EAAE,0CAA0C;CAC9C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The LD Contexts concerning Gaia-X.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const GaiaXContexts = {\n\t/**\n\t * The Gaia-X LD Context\n\t */\n\tContextRoot: \"https://schema.twindev.org/gaia-x-loire/\"\n} as const;\n\n/**\n * The LD Contexts concerning Gaia-X.\n */\nexport type GaiaXContexts = (typeof GaiaXContexts)[keyof typeof GaiaXContexts];\n"]}
1
+ {"version":3,"file":"gaiaXContexts.js","sourceRoot":"","sources":["../../../src/models/gaiaXContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,aAAa,GAAG;IAC5B;;OAEG;IACH,SAAS,EAAE,0CAA0C;CAC5C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The Contexts concerning Gaia-X.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const GaiaXContexts = {\n\t/**\n\t * The Gaia-X Namespace\n\t */\n\tNamespace: \"https://schema.twindev.org/gaia-x-loire/\"\n} as const;\n\n/**\n * The Contexts concerning Gaia-X.\n */\nexport type GaiaXContexts = (typeof GaiaXContexts)[keyof typeof GaiaXContexts];\n"]}
@@ -3,12 +3,12 @@ import type { GaiaXContexts } from "./gaiaXContexts.js";
3
3
  /**
4
4
  * The Gaia-X JSON-LD context type.
5
5
  */
6
- export type GaiaXContextType = typeof GaiaXContexts.ContextRoot | [
6
+ export type GaiaXContextType = typeof GaiaXContexts.Namespace | [
7
7
  ...IJsonLdContextDefinitionElement[],
8
- typeof GaiaXContexts.ContextRoot,
8
+ typeof GaiaXContexts.Namespace,
9
9
  IJsonLdContextDefinitionElement
10
10
  ] | [
11
11
  IJsonLdContextDefinitionElement,
12
- typeof GaiaXContexts.ContextRoot,
12
+ typeof GaiaXContexts.Namespace,
13
13
  ...IJsonLdContextDefinitionElement[]
14
14
  ];
@@ -1,13 +1,13 @@
1
1
  /**
2
- * The LD Contexts concerning Gaia-X.
2
+ * The Contexts concerning Gaia-X.
3
3
  */
4
4
  export declare const GaiaXContexts: {
5
5
  /**
6
- * The Gaia-X LD Context
6
+ * The Gaia-X Namespace
7
7
  */
8
- readonly ContextRoot: "https://schema.twindev.org/gaia-x-loire/";
8
+ readonly Namespace: "https://schema.twindev.org/gaia-x-loire/";
9
9
  };
10
10
  /**
11
- * The LD Contexts concerning Gaia-X.
11
+ * The Contexts concerning Gaia-X.
12
12
  */
13
13
  export type GaiaXContexts = (typeof GaiaXContexts)[keyof typeof GaiaXContexts];
package/docs/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @twin.org/standards-gaia-x - Changelog
2
2
 
3
+ ## [0.0.3-next.11](https://github.com/twinfoundation/standards/compare/standards-gaia-x-v0.0.3-next.10...standards-gaia-x-v0.0.3-next.11) (2026-01-14)
4
+
5
+
6
+ ### Features
7
+
8
+ * improved namespaces and contexts ([#102](https://github.com/twinfoundation/standards/issues/102)) ([c74c370](https://github.com/twinfoundation/standards/commit/c74c370cd8145d6166ca4454353f3774c302ac3b))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/standards-w3c-odrl bumped from 0.0.3-next.10 to 0.0.3-next.11
16
+
3
17
  ## [0.0.3-next.10](https://github.com/twinfoundation/standards/compare/standards-gaia-x-v0.0.3-next.9...standards-gaia-x-v0.0.3-next.10) (2026-01-13)
4
18
 
5
19
 
@@ -1,5 +1,5 @@
1
1
  # Type Alias: GaiaXContextType
2
2
 
3
- > **GaiaXContextType** = *typeof* [`ContextRoot`](../variables/GaiaXContexts.md#contextroot) \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`ContextRoot`](../variables/GaiaXContexts.md#contextroot), `IJsonLdContextDefinitionElement`\] \| \[`IJsonLdContextDefinitionElement`, *typeof* [`ContextRoot`](../variables/GaiaXContexts.md#contextroot), `...IJsonLdContextDefinitionElement[]`\]
3
+ > **GaiaXContextType** = *typeof* [`Namespace`](../variables/GaiaXContexts.md#namespace) \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`Namespace`](../variables/GaiaXContexts.md#namespace), `IJsonLdContextDefinitionElement`\] \| \[`IJsonLdContextDefinitionElement`, *typeof* [`Namespace`](../variables/GaiaXContexts.md#namespace), `...IJsonLdContextDefinitionElement[]`\]
4
4
 
5
5
  The Gaia-X JSON-LD context type.
@@ -2,4 +2,4 @@
2
2
 
3
3
  > **GaiaXContexts** = *typeof* [`GaiaXContexts`](../variables/GaiaXContexts.md)\[keyof *typeof* [`GaiaXContexts`](../variables/GaiaXContexts.md)\]
4
4
 
5
- The LD Contexts concerning Gaia-X.
5
+ The Contexts concerning Gaia-X.
@@ -2,12 +2,12 @@
2
2
 
3
3
  > `const` **GaiaXContexts**: `object`
4
4
 
5
- The LD Contexts concerning Gaia-X.
5
+ The Contexts concerning Gaia-X.
6
6
 
7
7
  ## Type Declaration
8
8
 
9
- ### ContextRoot
9
+ ### Namespace
10
10
 
11
- > `readonly` **ContextRoot**: `"https://schema.twindev.org/gaia-x-loire/"` = `"https://schema.twindev.org/gaia-x-loire/"`
11
+ > `readonly` **Namespace**: `"https://schema.twindev.org/gaia-x-loire/"` = `"https://schema.twindev.org/gaia-x-loire/"`
12
12
 
13
- The Gaia-X LD Context
13
+ The Gaia-X Namespace
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-gaia-x",
3
- "version": "0.0.3-next.10",
3
+ "version": "0.0.3-next.11",
4
4
  "description": "Models which define the structure of Gaia-x",
5
5
  "repository": {
6
6
  "type": "git",
@@ -17,7 +17,7 @@
17
17
  "@twin.org/core": "next",
18
18
  "@twin.org/data-core": "next",
19
19
  "@twin.org/data-json-ld": "next",
20
- "@twin.org/standards-w3c-odrl": "0.0.3-next.10"
20
+ "@twin.org/standards-w3c-odrl": "0.0.3-next.11"
21
21
  },
22
22
  "main": "./dist/es/index.js",
23
23
  "types": "./dist/types/index.d.ts",