-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathcatalog-schema.json
59 lines (59 loc) · 2.08 KB
/
catalog-schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "CatalogSchema",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/Catalog"
}
],
"$id": "https://w3id.org/dspace/2024/1/catalog/catalog-schema.json",
"definitions": {
"Catalog": {
"type": "object",
"allOf": [
{
"$ref": "https://w3id.org/dspace/2024/1/catalog/dataset-schema.json#/definitions/AbstractDataset"
},
{
"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/2024/1/catalog/dataset-schema.json#/definitions/Dataset"
},
"minItems": 1
},
"dcat:service": {
"type": "array",
"items": {
"$ref": "https://w3id.org/dspace/2024/1/catalog/dataset-schema.json#/definitions/DataService"
},
"minItems": 1
},
"dspace:participantId": {
"type": "string"
},
"foaf:homepage": {
"type": "string"
}
}
}
],
"required": [ "@context", "@type" ],
"anyOf" : [
{
"not" : { "required" : [ "odrl:hasPolicy" ] }
}
]
}
}
}