Skip to content

Commit

Permalink
Create Folder for the 2024-1 Release (#247)
Browse files Browse the repository at this point in the history
* 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
sebbader-sap authored Feb 27, 2024
1 parent 3696060 commit 63e5a40
Show file tree
Hide file tree
Showing 71 changed files with 3,560 additions and 0 deletions.
11 changes: 11 additions & 0 deletions releases/2024-1/catalog/message/example/catalog-error.json
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"
}
]
}
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"
]
}
73 changes: 73 additions & 0 deletions releases/2024-1/catalog/message/example/catalog.json
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"
}
]
}
}
]
}
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"
}
45 changes: 45 additions & 0 deletions releases/2024-1/catalog/message/example/dataset.json
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 releases/2024-1/catalog/message/schema/catalog-error-schema.json
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" ]
}
}
}
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 releases/2024-1/catalog/message/schema/catalog-schema.json
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" ]
}
}
}
}
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" ]
}
}
}
Loading

0 comments on commit 63e5a40

Please sign in to comment.