Skip to content

Commit 63e5a40

Browse files
authored
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
1 parent 3696060 commit 63e5a40

File tree

71 files changed

+3560
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+3560
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"@context": "https://w3id.org/dspace/2024/1/context.json",
3+
"@type": "dspace:CatalogError",
4+
"dspace:code": "123:A",
5+
"dspace:reason": [
6+
{
7+
"@value": "Catalog not provisioned for this requester.",
8+
"@language": "en"
9+
}
10+
]
11+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"@context": "https://w3id.org/dspace/2024/1/context.json",
3+
"@type": "dspace:CatalogRequestMessage",
4+
"dspace:filter": [
5+
"some-filter"
6+
]
7+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"@context": "https://w3id.org/dspace/2024/1/context.json",
3+
"@id": "urn:uuid:3afeadd8-ed2d-569e-d634-8394a8836d57",
4+
"@type": "dcat:Catalog",
5+
"dct:title": "Data Provider A Catalog",
6+
"dct:description": [
7+
{
8+
"@value": "A catalog of data items",
9+
"@language": "en"
10+
}
11+
],
12+
"dspace:participantId": "urn:example:DataProviderA",
13+
"dcat:keyword": [
14+
"traffic",
15+
"government"
16+
],
17+
"dcat:service": [
18+
{
19+
"@id": "urn:uuid:4aa2dcc8-4d2d-569e-d634-8394a8834d77",
20+
"@type": "dcat:DataService",
21+
"dcat:endpointDescription": "dspace:connector",
22+
"dcat:endpointURL": "https://provider-a.com/connector"
23+
}
24+
],
25+
"dcat:dataset": [
26+
{
27+
"@id": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88",
28+
"@type": "dcat:Dataset",
29+
"dct:title": "Traffic Data",
30+
"dct:description": [
31+
{
32+
"@value": "Traffic data sample extract",
33+
"@language": "en"
34+
}
35+
],
36+
"dcat:keyword": [
37+
"traffic"
38+
],
39+
"odrl:hasPolicy": [
40+
{
41+
"@type": "odrl:Offer",
42+
"dspace:providerId": "http://example.com/Provider",
43+
"odrl:permission": [
44+
{
45+
"odrl:action": "odrl:use",
46+
"odrl:constraint": [
47+
{
48+
"odrl:leftOperand": "odrl:spatial",
49+
"odrl:operator": "odrl:EQ",
50+
"odrl:rightOperand": "odrl:EU"
51+
}
52+
],
53+
"odrl:duty": []
54+
}
55+
],
56+
"odrl:prohibition": [],
57+
"odrl:obligation": []
58+
}
59+
],
60+
"dcat:distribution": {
61+
"@type": "dcat:Distribution",
62+
"dct:format": "dspace:s3+push",
63+
"dcat:accessService": [
64+
{
65+
"@id": "urn:uuid:4aa2dcc8-4d2d-569e-d634-8394a8834d77",
66+
"@type": "dcat:DataService",
67+
"dcat:endpointURL": "https://provider-a.com/connector"
68+
}
69+
]
70+
}
71+
}
72+
]
73+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"@context": "https://w3id.org/dspace/2024/1/context.json",
3+
"@type": "dspace:DatasetRequestMessage",
4+
"dspace:dataset": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88"
5+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"@context": "https://w3id.org/dspace/2024/1/context.json",
3+
"@id": "urn:uuid:3afeadd8-ed2d-569e-d634-8394a8836d57",
4+
"@type": "dcat:Dataset",
5+
"dct:title": "Traffic Data",
6+
"dct:description": [
7+
{
8+
"@value": "Traffic data sample extract",
9+
"@language": "en"
10+
}
11+
],
12+
"dcat:keyword": [
13+
"traffic"
14+
],
15+
"odrl:hasPolicy": {
16+
"@type": "odrl:Offer",
17+
"@id": "urn:uuid:2828282:3dd1add8-4d2d-569e-d634-8394a8836a88",
18+
"odrl:permission": [
19+
{
20+
"odrl:action": "odrl:use",
21+
"odrl:constraint": [
22+
{
23+
"odrl:leftOperand": "odrl:spatial",
24+
"odrl:rightOperand": "_:EU",
25+
"odrl:operator": "odrl:eq"
26+
}
27+
]
28+
}
29+
]
30+
},
31+
"dcat:distribution": [
32+
{
33+
"@type": "dcat:Distribution",
34+
"dct:format": {
35+
"@id": "dspace:s3+push"
36+
},
37+
"dcat:accessService": [
38+
{
39+
"@id": "urn:uuid:4aa2dcc8-4d2d-569e-d634-8394a8834d77",
40+
"dcat:endpointURL": "https://provider-a.com/connector"
41+
}
42+
]
43+
}
44+
]
45+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2019-09/schema",
3+
"title": "CatalogErrorSchema",
4+
"type": "object",
5+
"allOf": [
6+
{
7+
"$ref": "#/definitions/CatalogError"
8+
}
9+
],
10+
"$id": "https://w3id.org/dspace/schemas/2024/1/CatalogErrorSchema",
11+
"definitions": {
12+
"CatalogError": {
13+
"type": "object",
14+
"properties": {
15+
"@context": {
16+
"type": "string",
17+
"const": "https://w3id.org/dspace/2024/1/context.json"
18+
},
19+
"@type": {
20+
"type": "string",
21+
"const": "dspace:CatalogError"
22+
},
23+
"dspace:code": {
24+
"type": "string"
25+
},
26+
"dspace:reason": {
27+
"type": "array"
28+
}
29+
},
30+
"required": [ "@context", "@type" ]
31+
}
32+
}
33+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2019-09/schema",
3+
"title": "CatalogRequestMessageSchema",
4+
"type": "object",
5+
"allOf": [
6+
{
7+
"$ref": "#/definitions/CatalogRequestMessage"
8+
}
9+
],
10+
"$id": "https://w3id.org/dspace/schemas/2024/1/CatalogRequestMessageSchema",
11+
"definitions": {
12+
"CatalogRequestMessage": {
13+
"type": "object",
14+
"properties": {
15+
"@context": {
16+
"type": "string",
17+
"const": "https://w3id.org/dspace/2024/1/context.json"
18+
},
19+
"@type": {
20+
"type": "string",
21+
"const": "dspace:CatalogRequestMessage"
22+
},
23+
"dspace:filter": {
24+
"type": "array",
25+
"items": {
26+
}
27+
}
28+
},
29+
"required": [ "@context", "@type"]
30+
}
31+
}
32+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2019-09/schema",
3+
"title": "CatalogSchema",
4+
"type": "object",
5+
"allOf": [
6+
{
7+
"$ref": "#/definitions/Catalog"
8+
}
9+
],
10+
"$id": "https://w3id.org/dspace/schemas/2024/1/CatalogSchema",
11+
"definitions": {
12+
"Catalog": {
13+
"type": "object",
14+
"allOf": [
15+
{
16+
"$ref": "https://w3id.org/dspace/schemas/2024/1/dataset-schema.json#/definitions/Dataset"
17+
},
18+
{
19+
"properties": {
20+
"@context": {
21+
"type": "string",
22+
"const": "https://w3id.org/dspace/2024/1/context.json"
23+
},
24+
"@type": {
25+
"type": "string",
26+
"const": "dcat:Catalog"
27+
},
28+
"dcat:dataset": {
29+
"type": "array",
30+
"items": {
31+
"$ref": "https://w3id.org/dspace/schemas/2024/1/dataset-schema.json#/definitions/Dataset"
32+
},
33+
"minItems": 1
34+
},
35+
"dcat:service": {
36+
"type": "array",
37+
"items": {
38+
"$ref": "https://w3id.org/dspace/schemas/2024/1/dataset-schema.json#/definitions/DataService"
39+
},
40+
"minItems": 1
41+
},
42+
"dspace:participantId": {
43+
"type": "string"
44+
},
45+
"foaf:homepage": {
46+
"type": "string"
47+
}
48+
}
49+
}
50+
],
51+
"required": [ "@context", "@type" ],
52+
"not": {
53+
"required": [ "odrl:hasPolicy" ]
54+
}
55+
}
56+
}
57+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2019-09/schema",
3+
"title": "DatasetRequestMessageSchema",
4+
"type": "object",
5+
"allOf": [
6+
{
7+
"$ref": "#/definitions/DatasetRequestMessage"
8+
}
9+
],
10+
"$id": "https://w3id.org/dspace/schemas/2024/1/DatasetRequestMessageSchema",
11+
"definitions": {
12+
"DatasetRequestMessage": {
13+
"type": "object",
14+
"properties": {
15+
"@context": {
16+
"type": "string",
17+
"const": "https://w3id.org/dspace/2024/1/context.json"
18+
},
19+
"@type": {
20+
"type": "string",
21+
"const": "dspace:DatasetRequestMessage"
22+
},
23+
"dspace:dataset": {
24+
"type": "string"
25+
}
26+
},
27+
"required": [ "@context", "@type", "dspace:dataset" ]
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)