Skip to content

Commit b60eb64

Browse files
committed
Initial commit of the OpenBEL.org child schema
1 parent 15e7948 commit b60eb64

2 files changed

Lines changed: 213 additions & 0 deletions

File tree

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright 2014 Anthony Bargnesi, Anselmo DiFabio, William Hayes
2+
https://github.com/jsongraph/jsongraph.rb
3+
4+
Permission is hereby granted, free of charge, to any person obtaining
5+
a copy of this software and associated documentation files (the
6+
"Software"), to deal in the Software without restriction, including
7+
without limitation the rights to use, copy, modify, merge, publish,
8+
distribute, sublicense, and/or sell copies of the Software, and to
9+
permit persons to whom the Software is furnished to do so, subject to
10+
the following conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
}, {
2+
"$schema": "http://json-schema.org/draft-04/schema",
3+
"oneOf": [{
4+
"type": "object",
5+
"properties": {
6+
"graph": {
7+
"$ref": "#/definitions/graph"
8+
}
9+
},
10+
"additionalProperties": false,
11+
"required": ["graph"]
12+
}, {
13+
"type": "object",
14+
"properties": {
15+
"id": {
16+
"type": "string",
17+
"title": "",
18+
"description": "",
19+
"name": ""
20+
},
21+
"label": {
22+
"type": "string",
23+
"title": "",
24+
"description": "",
25+
"name": ""
26+
},
27+
"type": {
28+
"type": "string",
29+
"title": "",
30+
"description": "",
31+
"name": ""
32+
},
33+
"metadata": {
34+
"type": ["object", "null"],
35+
"title": "",
36+
"description": "",
37+
"name": ""
38+
},
39+
"graphs": {
40+
"type": "array",
41+
"items": {
42+
"$ref": "#/definitions/graph"
43+
}
44+
}
45+
},
46+
"additionalProperties": false
47+
}],
48+
"definitions": {
49+
"graph": {
50+
"type": "object",
51+
"additionalProperties": false,
52+
"properties": {
53+
"id": {
54+
"type": "string"
55+
},
56+
"label": {
57+
"type": "string"
58+
},
59+
"directed": {
60+
"type": ["boolean", "null"],
61+
"default": true
62+
},
63+
"type": {
64+
"type": "string"
65+
},
66+
"metadata": {
67+
"type": ["object", "null"],
68+
"additionalProperties": true,
69+
"properties": {
70+
"ncbi_tax_id": {
71+
"type": "integer"
72+
},
73+
"species_common_name": {
74+
"type": "string"
75+
},
76+
"description": {
77+
"type": "string"
78+
},
79+
80+
}
81+
},
82+
"nodes": {
83+
"type": ["array", "null"],
84+
"items": {
85+
"type": "object",
86+
"additionalProperties": false,
87+
"properties": {
88+
"id": {
89+
"type": "string"
90+
},
91+
"label": {
92+
"type": "string"
93+
},
94+
"metadata": {
95+
"type": ["object", "null"],
96+
"additionalProperties": true,
97+
"properties": {
98+
"x_loc": {
99+
"type": "number"
100+
},
101+
"y_loc": {
102+
"type": "number"
103+
}
104+
}
105+
}
106+
},
107+
"required": ["id"]
108+
}
109+
},
110+
"edges": {
111+
"type": ["array", "null"],
112+
"items": {
113+
"type": "object",
114+
"additionalProperties": false,
115+
"properties": {
116+
"id": {
117+
"type": "string"
118+
},
119+
"source": {
120+
"type": "string"
121+
},
122+
"target": {
123+
"type": "string"
124+
},
125+
"rel": {
126+
"type": "string"
127+
},
128+
"directed": {
129+
"type": ["boolean", "null"],
130+
"default": true
131+
},
132+
"label": {
133+
"type": "string"
134+
},
135+
"metadata": {
136+
"type": ["object", "null"],
137+
"additionalProperties": true,
138+
"properties": {
139+
"evidences": {
140+
"type": "array",
141+
"items": {
142+
"$ref": "#/definitions/evidence"
143+
}
144+
}
145+
}
146+
}
147+
},
148+
"required": ["id", "source", "target"]
149+
}
150+
}
151+
},
152+
"required": ["id"]
153+
},
154+
"evidence": {
155+
"type": "object",
156+
"properties": {
157+
"bel_statement": {
158+
"type": "string"
159+
},
160+
"citation": {
161+
"type": "object",
162+
"properties": {
163+
"reference_type": {
164+
"type": "string"
165+
},
166+
"reference_id": {
167+
"type": "string"
168+
},
169+
"name": {
170+
"type": "string"
171+
},
172+
}
173+
},
174+
"biological_context": {
175+
"type": "object",
176+
"additionalProperties": true,
177+
"properties": {
178+
"ncbi_tax_id": {
179+
"type": "integer"
180+
},
181+
"species_common_name": {
182+
"type": "string"
183+
}
184+
}
185+
},
186+
"summary_text": {
187+
"type": "string"
188+
}
189+
}
190+
}
191+
}
192+
}

0 commit comments

Comments
 (0)