forked from geneontology/go-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
db-xrefs.schema.yaml
60 lines (60 loc) · 1.68 KB
/
db-xrefs.schema.yaml
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
####
#### Use kwalify and this schema to validate the config files.
#### Example:
#### kwalify -E -m ./metadata/db-xrefs.schema.yaml
#### kwalify -E -f ./metadata/db-xrefs.schema.yaml ./metadata/db-xrefs.yaml
####
#### To convert to JSON once passed:
#### ./node_modules/yamljs/bin/yaml2json -p ./metadata/db-xrefs.yaml > ./metadata/db-xrefs.json
####
type: seq
sequence:
- type: map
mapping:
"database":
type: str
required: true
unique: true
"synonyms":
type: seq
required: false
sequence:
- type: str
"name":
type: str
required: true
"description":
type: str
required: false
"generic_urls":
type: seq
required: true
sequence:
- type: str
pattern: /^((ht|f)tp(s?)\:\/\/\w[\/\.\:\[\]\=\?\&\+\-\,\%\(\)\|\;\_\~\w]+)$/
"entity_types":
type: seq
required: false
sequence:
- type: map
mapping:
"type_id":
type: str
required: true
"type_name":
type: str
required: true
"id_syntax":
type: str
required: false
"url_syntax":
type: str
pattern: /^((ht|f)tp(s?)\:\/\/\w[\/\.\:\[\]\=\?\&\+\-\,\%\(\)\|\;\_\~\w]+)$/
required: false
"example_id":
type: str
required: false
"example_url":
type: str
pattern: /^((ht|f)tp(s?)\:\/\/\w[\/\.\:\[\]\=\?\&\+\-\,\%\(\)\|\;\_\~\w]+)$/
required: false