-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add message schemas and shapes (International-Data-Spaces-Assoc…
…iation#3) * feat: add message schemes for contract negotiation * feat: add message schemes for cataloging * feat: add message schemes for transfer process * refactor: replace JSON schema keyword "pattern" with better fitting "const" * fix: revert not discussed changes * fix: resolve broken links and typos * refactor: clean up file structure * fix: broken link to the negotiation error diagram --------- Co-authored-by: Julia Pampus <[email protected]>
- Loading branch information
1 parent
83ea179
commit 15be6d2
Showing
117 changed files
with
2,429 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"@context": "https://w3id.org/idsa/v5/context.json", | ||
"@type": "ids:CatalogErrorMessage", | ||
"ids:code": "123:A", | ||
"ids:reason": [ | ||
{ "@value": "Catalog not provisioned for this requester.", "@language": "en" }, | ||
{ "some": "other reason"} | ||
] | ||
} |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@startuml "catalog-error-message" | ||
!pragma layout smetana | ||
|
||
!include ../../../common/style/diagram.styles.puml | ||
|
||
hide empty description | ||
|
||
|
||
class "ids:CatalogErrorMessage" { | ||
@context : "https://w3id.org/idsa/v5/context.json" | ||
@type : "ids:CatalogErrorMessage" | ||
ids:code : String | ||
ids:reason : Array | ||
} | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@startuml "catalog-request-message" | ||
!pragma layout smetana | ||
|
||
!include ../../../common/style/diagram.styles.puml | ||
|
||
hide empty description | ||
|
||
|
||
class "ids:CatalogRequestMessage" { | ||
@context : "https://w3id.org/idsa/v5/context.json" | ||
@type : ids:CatalogRequestMessage | ||
ids:filter : Object | ||
} | ||
|
||
@enduml |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@startuml "catalog" | ||
!pragma layout smetana | ||
|
||
!include ../../../common/style/diagram.styles.puml | ||
|
||
hide empty description | ||
|
||
|
||
class dcat:Catalog { | ||
@type : "dcat:Catalog", | ||
... | ||
} | ||
|
||
@enduml |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"title": "CatalogErrorMessageSchema", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/CatalogErrorMessage" | ||
} | ||
], | ||
"$id": "https://w3id.org/idsa/schemas/v5/CatalogErrorMessageSchema", | ||
"definitions": { | ||
"CatalogErrorMessage": { | ||
"type": "object", | ||
"properties": { | ||
"@context": { | ||
"type": "string", | ||
"const": "https://w3id.org/idsa/v5/context.json", | ||
"required": true | ||
}, | ||
"@type": { | ||
"type": "string", | ||
"const": "ids:CatalogErrorMessage", | ||
"required": true | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"title": "CatalogMessageSchema", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/CatalogMessage" | ||
} | ||
], | ||
"$id": "https://w3id.org/idsa/schemas/v5/CatalogMessageSchema", | ||
"definitions": { | ||
"CatalogMessage": { | ||
"type": "object", | ||
"properties": { | ||
"@context": { | ||
"type": "string", | ||
"const": "https://w3id.org/idsa/v5/context.json", | ||
"required": true | ||
}, | ||
"@type": { | ||
"type": "string", | ||
"const": "ids:CatalogMessage", | ||
"required": true | ||
}, | ||
"ids:catalog": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://w3id.org/idsa/schemas/v5/CatalogSchema#definitions/Catalog" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
catalog/message/schema/catalog-request-message-schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"title": "CatalogRequestMessageSchema", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/CatalogRequestMessage" | ||
} | ||
], | ||
"$id": "https://w3id.org/idsa/schemas/v5/CatalogRequestMessageSchema", | ||
"definitions": { | ||
"CatalogRequestMessage": { | ||
"type": "object", | ||
"properties": { | ||
"@context": { | ||
"type": "string", | ||
"const": "https://w3id.org/idsa/v5/context.json", | ||
"required": true | ||
}, | ||
"@type": { | ||
"type": "string", | ||
"const": "ids:CatalogRequestMessage", | ||
"required": true | ||
}, | ||
"ids:filter": { | ||
"type": "array", | ||
"items": { | ||
"@type": "string", | ||
"const": "ids:Filter" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"title": "CatalogSchema", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/Catalog" | ||
} | ||
], | ||
"$id": "https://w3id.org/idsa/schemas/v5/CatalogSchema", | ||
"definitions": { | ||
"Catalog": { | ||
"type": "object", | ||
"properties": { | ||
"@context": { | ||
"type": "string", | ||
"const": "https://w3id.org/idsa/v5/context.json", | ||
"required": true | ||
}, | ||
"@type": { | ||
"type": "string", | ||
"const": "dcat:Catalog", | ||
"required": true | ||
}, | ||
"dcat:dataset": { | ||
"type": "array", | ||
"items": { | ||
"@type": { | ||
"type": "string", | ||
"const": "dcat:Dataset" | ||
} | ||
}, | ||
"minItems": 1, | ||
"required": false | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.