@twin.org/standards-gaia-x 0.0.1-next.41 → 0.0.1-next.42

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,3 +7,4 @@ export * from "./models/IEndpoint";
7
7
  export * from "./models/IParticipant";
8
8
  export * from "./models/IRegistrationNumber";
9
9
  export * from "./models/IServiceOffering";
10
+ export * from "./models/gaiaXContextType";
@@ -1,10 +1,15 @@
1
1
  import type { IJsonLdKeyword, IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { GaiaXContextType } from "./gaiaXContextType";
2
3
  import type { GaiaXTypes } from "./gaiaXTypes";
3
4
  /**
4
5
  * Data Exchange component as defined by Gaia-X
5
6
  * https://docs.gaia-x.eu/ontology/development/classes/DataExchangeComponent
6
7
  */
7
8
  export interface IDataExchangeComponent extends IJsonLdNodeObject {
9
+ /**
10
+ * The LD Context
11
+ */
12
+ "@context": GaiaXContextType;
8
13
  /**
9
14
  * The type of JSON-LD node
10
15
  */
@@ -1,5 +1,5 @@
1
- import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
- import type { GaiaXContexts } from "./gaiaXContexts";
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { GaiaXContextType } from "./gaiaXContextType";
3
3
  import type { GaiaXTypes } from "./gaiaXTypes";
4
4
  import type { IDataExchangeComponent } from "./IDataExchangeComponent";
5
5
  import type { IParticipant } from "./IParticipant";
@@ -11,7 +11,7 @@ export interface IDataResource extends IJsonLdNodeObject {
11
11
  /**
12
12
  * The LD Context
13
13
  */
14
- "@context": typeof GaiaXContexts.GaiaXLdContext | [typeof GaiaXContexts.GaiaXLdContext, ...IJsonLdContextDefinitionElement[]];
14
+ "@context": GaiaXContextType;
15
15
  /**
16
16
  * Subject Id
17
17
  */
@@ -1,5 +1,5 @@
1
- import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
- import type { GaiaXContexts } from "./gaiaXContexts";
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { GaiaXContextType } from "./gaiaXContextType";
3
3
  import type { GaiaXTypes } from "./gaiaXTypes";
4
4
  import type { IAddress } from "./IAddress";
5
5
  import type { IRegistrationNumber } from "./IRegistrationNumber";
@@ -10,7 +10,7 @@ export interface IParticipant extends IJsonLdNodeObject {
10
10
  /**
11
11
  * The LD context
12
12
  */
13
- "@context": typeof GaiaXContexts.GaiaXLdContext | [typeof GaiaXContexts.GaiaXLdContext, ...IJsonLdContextDefinitionElement[]];
13
+ "@context": GaiaXContextType;
14
14
  /**
15
15
  * The participant Id.
16
16
  */
@@ -1,5 +1,5 @@
1
- import type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
- import type { GaiaXContexts } from "./gaiaXContexts";
1
+ import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
+ import type { GaiaXContextType } from "./gaiaXContextType";
3
3
  import type { GaiaXTypes } from "./gaiaXTypes";
4
4
  import type { IDataResource } from "./IDataResource";
5
5
  import type { IEndpoint } from "./IEndpoint";
@@ -11,7 +11,7 @@ export interface IServiceOffering extends IJsonLdNodeObject {
11
11
  /**
12
12
  * The LD context
13
13
  */
14
- "@context": typeof GaiaXContexts.GaiaXLdContext | [typeof GaiaXContexts.GaiaXLdContext, ...IJsonLdContextDefinitionElement[]];
14
+ "@context": GaiaXContextType;
15
15
  /**
16
16
  * Id
17
17
  */
@@ -0,0 +1,14 @@
1
+ import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
2
+ import type { GaiaXContexts } from "./gaiaXContexts";
3
+ /**
4
+ * The Gaia-X JSON-LD context type.
5
+ */
6
+ export type GaiaXContextType = typeof GaiaXContexts.GaiaXLdContext | [
7
+ ...IJsonLdContextDefinitionElement[],
8
+ typeof GaiaXContexts.GaiaXLdContext,
9
+ IJsonLdContextDefinitionElement
10
+ ] | [
11
+ IJsonLdContextDefinitionElement,
12
+ typeof GaiaXContexts.GaiaXLdContext,
13
+ ...IJsonLdContextDefinitionElement[]
14
+ ];
package/docs/changelog.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @twin.org/standards-gaia-x - Changelog
2
2
 
3
+ ## [0.0.1-next.42](https://github.com/twinfoundation/standards/compare/standards-gaia-x-v0.0.1-next.41...standards-gaia-x-v0.0.1-next.42) (2025-05-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * refine the LD Context of Gaia-X entities ([#24](https://github.com/twinfoundation/standards/issues/24)) ([151c7f9](https://github.com/twinfoundation/standards/commit/151c7f940c900daac6c98a6f89ea5f708b25a1bd))
9
+
3
10
  ## [0.0.1-next.41](https://github.com/twinfoundation/standards/compare/standards-gaia-x-v0.0.1-next.40...standards-gaia-x-v0.0.1-next.41) (2025-05-08)
4
11
 
5
12
 
@@ -12,6 +12,7 @@
12
12
 
13
13
  ## Type Aliases
14
14
 
15
+ - [GaiaXContextType](type-aliases/GaiaXContextType.md)
15
16
  - [GaiaXContexts](type-aliases/GaiaXContexts.md)
16
17
  - [GaiaXTypes](type-aliases/GaiaXTypes.md)
17
18
 
@@ -13,6 +13,18 @@ https://docs.gaia-x.eu/ontology/development/classes/DataExchangeComponent
13
13
 
14
14
  ## Properties
15
15
 
16
+ ### @context
17
+
18
+ > **@context**: [`GaiaXContextType`](../type-aliases/GaiaXContextType.md)
19
+
20
+ The LD Context
21
+
22
+ #### Overrides
23
+
24
+ `IJsonLdNodeObject.@context`
25
+
26
+ ***
27
+
16
28
  ### type
17
29
 
18
30
  > **type**: `"DataExchangeComponent"` \| \[`"DataExchangeComponent"`, `...string[]`\]
@@ -15,7 +15,7 @@ See also W3C DCAT Dataset https://www.w3.org/TR/vocab-dcat-3/.
15
15
 
16
16
  ### @context
17
17
 
18
- > **@context**: `"https://w3id.org/gaia-x/development"` \| \[`"https://w3id.org/gaia-x/development"`, `...IJsonLdContextDefinitionElement[]`\]
18
+ > **@context**: [`GaiaXContextType`](../type-aliases/GaiaXContextType.md)
19
19
 
20
20
  The LD Context
21
21
 
@@ -14,7 +14,7 @@ A Legal Person participating in the ecosystem
14
14
 
15
15
  ### @context
16
16
 
17
- > **@context**: `"https://w3id.org/gaia-x/development"` \| \[`"https://w3id.org/gaia-x/development"`, `...IJsonLdContextDefinitionElement[]`\]
17
+ > **@context**: [`GaiaXContextType`](../type-aliases/GaiaXContextType.md)
18
18
 
19
19
  The LD context
20
20
 
@@ -14,7 +14,7 @@ A Service offering
14
14
 
15
15
  ### @context
16
16
 
17
- > **@context**: `"https://w3id.org/gaia-x/development"` \| \[`"https://w3id.org/gaia-x/development"`, `...IJsonLdContextDefinitionElement[]`\]
17
+ > **@context**: [`GaiaXContextType`](../type-aliases/GaiaXContextType.md)
18
18
 
19
19
  The LD context
20
20
 
@@ -0,0 +1,5 @@
1
+ # Type Alias: GaiaXContextType
2
+
3
+ > **GaiaXContextType** = *typeof* [`GaiaXLdContext`](../variables/GaiaXContexts.md#gaiaxldcontext) \| \[`...IJsonLdContextDefinitionElement[]`, *typeof* [`GaiaXLdContext`](../variables/GaiaXContexts.md#gaiaxldcontext), `IJsonLdContextDefinitionElement`\] \| \[`IJsonLdContextDefinitionElement`, *typeof* [`GaiaXLdContext`](../variables/GaiaXContexts.md#gaiaxldcontext), `...IJsonLdContextDefinitionElement[]`\]
4
+
5
+ The Gaia-X JSON-LD context type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/standards-gaia-x",
3
- "version": "0.0.1-next.41",
3
+ "version": "0.0.1-next.42",
4
4
  "description": "Models which define the structure of Gaia-x",
5
5
  "repository": {
6
6
  "type": "git",