forked from OBOFoundry/OBOFoundry.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetadata-schema.json
86 lines (86 loc) · 2.69 KB
/
metadata-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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"properties": {
"id": { "type": "string", "pattern": "^[0-9a-z_]+$" },
"contact": {
"type": "object",
"properties": {
"github": { "type": "string", "pattern": "^[^@]+$"},
"email": { "type": "string", "format": "email" },
"label": { "type": "string", "pattern": "^[^@]+$" }
},
"required": ["email", "label"]
},
"description": { "type": "string" },
"homepage": { "type": "string", "format": "uri" },
"products": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string", "pattern": "^[0-9A-Za-z-_\\/]+\\.(owl|obo|json|omn|ofn|owx|ttl|owl\\.gz)$" }
},
"required": ["id"]
}
},
"license": {
"type": "object",
"properties": {
"url": { "type": "string", "format": "uri" },
"label": { "type": "string" }
},
"required": ["url", "label"],
"oneOf": [
{
"properties": {
"url": { "enum": ["http://creativecommons.org/licenses/by/4.0/", "https://creativecommons.org/licenses/by/4.0/"] },
"label": { "enum": ["CC-BY", "CC BY 4.0", "CC-BY 4.0"] }
}
},
{
"properties": {
"url": { "enum": ["http://creativecommons.org/publicdomain/zero/1.0/", "https://creativecommons.org/publicdomain/zero/1.0/"] },
"label": { "enum": ["CC-0", "CC0", "CC0 1.0 Universal", "CC0 1.0"] }
}
},
{
"properties": {
"url": { "enum": ["http://creativecommons.org/licenses/by/3.0/", "https://creativecommons.org/licenses/by/3.0/"] },
"label": { "enum": ["CC-BY", "CC-BY 3.0", "CC BY 3.0"] }
}
},
{
"properties": {
"url": { "enum": ["http://creativecommons.org/licenses/by-nd/4.0/", "https://creativecommons.org/licenses/by-nd/4.0/"] },
"label": { "enum": ["CC BY-ND 4.0"] }
}
},
{
"properties": {
"url": { "enum": ["http://www.gnu.org/licenses/gpl-3.0.en.html", "https://www.gnu.org/licenses/gpl-3.0.en.html"] },
"label": { "enum": ["GNU GPL 3.0"] }
}
},
{
"properties": {
"url": { "enum": ["http://creativecommons.org/licenses/by-sa/2.0/", "https://creativecommons.org/licenses/by-sa/2.0/"] },
"label": { "enum": ["CC-BY-SA", "CC BY-SA 2.0"] }
}
},
{
"properties": {
"url": { "enum": ["http://creativecommons.org/licenses/by/2.0/", "https://creativecommons.org/licenses/by/2.0/"] },
"label": { "enum": ["CC-BY", "CC BY 2.0", "CC-BY 2.0"] }
}
},
{
"properties": {
"url": { "enum": ["http://opensource.org/licenses/Artistic-2.0", "https://opensource.org/licenses/Artistic-2.0"] },
"label": { "enum": ["Artistic License 2.0"] }
}
}
]
},
"title": { "type": "string" }
},
"required": ["id", "contact", "title", "description"]
}