-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Folder for the 2024-1 Release (#247)
* fix reference to class name for "Offer" * add the releases/2024-1 folder * remove the text files from releases/2024-1/common
- Loading branch information
1 parent
3696060
commit 63e5a40
Showing
71 changed files
with
3,560 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
releases/2024-1/catalog/message/example/catalog-error.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,11 @@ | ||
{ | ||
"@context": "https://w3id.org/dspace/2024/1/context.json", | ||
"@type": "dspace:CatalogError", | ||
"dspace:code": "123:A", | ||
"dspace:reason": [ | ||
{ | ||
"@value": "Catalog not provisioned for this requester.", | ||
"@language": "en" | ||
} | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
releases/2024-1/catalog/message/example/catalog-request-message.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,7 @@ | ||
{ | ||
"@context": "https://w3id.org/dspace/2024/1/context.json", | ||
"@type": "dspace:CatalogRequestMessage", | ||
"dspace:filter": [ | ||
"some-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,73 @@ | ||
{ | ||
"@context": "https://w3id.org/dspace/2024/1/context.json", | ||
"@id": "urn:uuid:3afeadd8-ed2d-569e-d634-8394a8836d57", | ||
"@type": "dcat:Catalog", | ||
"dct:title": "Data Provider A Catalog", | ||
"dct:description": [ | ||
{ | ||
"@value": "A catalog of data items", | ||
"@language": "en" | ||
} | ||
], | ||
"dspace:participantId": "urn:example:DataProviderA", | ||
"dcat:keyword": [ | ||
"traffic", | ||
"government" | ||
], | ||
"dcat:service": [ | ||
{ | ||
"@id": "urn:uuid:4aa2dcc8-4d2d-569e-d634-8394a8834d77", | ||
"@type": "dcat:DataService", | ||
"dcat:endpointDescription": "dspace:connector", | ||
"dcat:endpointURL": "https://provider-a.com/connector" | ||
} | ||
], | ||
"dcat:dataset": [ | ||
{ | ||
"@id": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88", | ||
"@type": "dcat:Dataset", | ||
"dct:title": "Traffic Data", | ||
"dct:description": [ | ||
{ | ||
"@value": "Traffic data sample extract", | ||
"@language": "en" | ||
} | ||
], | ||
"dcat:keyword": [ | ||
"traffic" | ||
], | ||
"odrl:hasPolicy": [ | ||
{ | ||
"@type": "odrl:Offer", | ||
"dspace:providerId": "http://example.com/Provider", | ||
"odrl:permission": [ | ||
{ | ||
"odrl:action": "odrl:use", | ||
"odrl:constraint": [ | ||
{ | ||
"odrl:leftOperand": "odrl:spatial", | ||
"odrl:operator": "odrl:EQ", | ||
"odrl:rightOperand": "odrl:EU" | ||
} | ||
], | ||
"odrl:duty": [] | ||
} | ||
], | ||
"odrl:prohibition": [], | ||
"odrl:obligation": [] | ||
} | ||
], | ||
"dcat:distribution": { | ||
"@type": "dcat:Distribution", | ||
"dct:format": "dspace:s3+push", | ||
"dcat:accessService": [ | ||
{ | ||
"@id": "urn:uuid:4aa2dcc8-4d2d-569e-d634-8394a8834d77", | ||
"@type": "dcat:DataService", | ||
"dcat:endpointURL": "https://provider-a.com/connector" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
releases/2024-1/catalog/message/example/dataset-request-message.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,5 @@ | ||
{ | ||
"@context": "https://w3id.org/dspace/2024/1/context.json", | ||
"@type": "dspace:DatasetRequestMessage", | ||
"dspace:dataset": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88" | ||
} |
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,45 @@ | ||
{ | ||
"@context": "https://w3id.org/dspace/2024/1/context.json", | ||
"@id": "urn:uuid:3afeadd8-ed2d-569e-d634-8394a8836d57", | ||
"@type": "dcat:Dataset", | ||
"dct:title": "Traffic Data", | ||
"dct:description": [ | ||
{ | ||
"@value": "Traffic data sample extract", | ||
"@language": "en" | ||
} | ||
], | ||
"dcat:keyword": [ | ||
"traffic" | ||
], | ||
"odrl:hasPolicy": { | ||
"@type": "odrl:Offer", | ||
"@id": "urn:uuid:2828282:3dd1add8-4d2d-569e-d634-8394a8836a88", | ||
"odrl:permission": [ | ||
{ | ||
"odrl:action": "odrl:use", | ||
"odrl:constraint": [ | ||
{ | ||
"odrl:leftOperand": "odrl:spatial", | ||
"odrl:rightOperand": "_:EU", | ||
"odrl:operator": "odrl:eq" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"dcat:distribution": [ | ||
{ | ||
"@type": "dcat:Distribution", | ||
"dct:format": { | ||
"@id": "dspace:s3+push" | ||
}, | ||
"dcat:accessService": [ | ||
{ | ||
"@id": "urn:uuid:4aa2dcc8-4d2d-569e-d634-8394a8834d77", | ||
"dcat:endpointURL": "https://provider-a.com/connector" | ||
} | ||
] | ||
} | ||
] | ||
} |
33 changes: 33 additions & 0 deletions
33
releases/2024-1/catalog/message/schema/catalog-error-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,33 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"title": "CatalogErrorSchema", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/CatalogError" | ||
} | ||
], | ||
"$id": "https://w3id.org/dspace/schemas/2024/1/CatalogErrorSchema", | ||
"definitions": { | ||
"CatalogError": { | ||
"type": "object", | ||
"properties": { | ||
"@context": { | ||
"type": "string", | ||
"const": "https://w3id.org/dspace/2024/1/context.json" | ||
}, | ||
"@type": { | ||
"type": "string", | ||
"const": "dspace:CatalogError" | ||
}, | ||
"dspace:code": { | ||
"type": "string" | ||
}, | ||
"dspace:reason": { | ||
"type": "array" | ||
} | ||
}, | ||
"required": [ "@context", "@type" ] | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
releases/2024-1/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,32 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"title": "CatalogRequestMessageSchema", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/CatalogRequestMessage" | ||
} | ||
], | ||
"$id": "https://w3id.org/dspace/schemas/2024/1/CatalogRequestMessageSchema", | ||
"definitions": { | ||
"CatalogRequestMessage": { | ||
"type": "object", | ||
"properties": { | ||
"@context": { | ||
"type": "string", | ||
"const": "https://w3id.org/dspace/2024/1/context.json" | ||
}, | ||
"@type": { | ||
"type": "string", | ||
"const": "dspace:CatalogRequestMessage" | ||
}, | ||
"dspace:filter": { | ||
"type": "array", | ||
"items": { | ||
} | ||
} | ||
}, | ||
"required": [ "@context", "@type"] | ||
} | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
releases/2024-1/catalog/message/schema/catalog-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,57 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"title": "CatalogSchema", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/Catalog" | ||
} | ||
], | ||
"$id": "https://w3id.org/dspace/schemas/2024/1/CatalogSchema", | ||
"definitions": { | ||
"Catalog": { | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "https://w3id.org/dspace/schemas/2024/1/dataset-schema.json#/definitions/Dataset" | ||
}, | ||
{ | ||
"properties": { | ||
"@context": { | ||
"type": "string", | ||
"const": "https://w3id.org/dspace/2024/1/context.json" | ||
}, | ||
"@type": { | ||
"type": "string", | ||
"const": "dcat:Catalog" | ||
}, | ||
"dcat:dataset": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://w3id.org/dspace/schemas/2024/1/dataset-schema.json#/definitions/Dataset" | ||
}, | ||
"minItems": 1 | ||
}, | ||
"dcat:service": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "https://w3id.org/dspace/schemas/2024/1/dataset-schema.json#/definitions/DataService" | ||
}, | ||
"minItems": 1 | ||
}, | ||
"dspace:participantId": { | ||
"type": "string" | ||
}, | ||
"foaf:homepage": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
], | ||
"required": [ "@context", "@type" ], | ||
"not": { | ||
"required": [ "odrl:hasPolicy" ] | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
releases/2024-1/catalog/message/schema/dataset-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,30 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"title": "DatasetRequestMessageSchema", | ||
"type": "object", | ||
"allOf": [ | ||
{ | ||
"$ref": "#/definitions/DatasetRequestMessage" | ||
} | ||
], | ||
"$id": "https://w3id.org/dspace/schemas/2024/1/DatasetRequestMessageSchema", | ||
"definitions": { | ||
"DatasetRequestMessage": { | ||
"type": "object", | ||
"properties": { | ||
"@context": { | ||
"type": "string", | ||
"const": "https://w3id.org/dspace/2024/1/context.json" | ||
}, | ||
"@type": { | ||
"type": "string", | ||
"const": "dspace:DatasetRequestMessage" | ||
}, | ||
"dspace:dataset": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ "@context", "@type", "dspace:dataset" ] | ||
} | ||
} | ||
} |
Oops, something went wrong.