Skip to content

Commit a7fa8b4

Browse files
authored
Merge branch 'BioSchemas:master' into master
2 parents 3642d60 + 91fd6e8 commit a7fa8b4

File tree

49 files changed

+11066
-66
lines changed

Some content is hidden

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

49 files changed

+11066
-66
lines changed

ComputationalWorkflow/jsonld/ComputationalWorkflow_v1.1-DRAFT.json

+914
Large diffs are not rendered by default.

DataCatalog/jsonld/DataCatalog_v0.4-DRAFT.json

+389
Large diffs are not rendered by default.

Dataset/jsonld/Dataset_v0.6-DRAFT.json

+686
Large diffs are not rendered by default.
+264
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,264 @@
1+
{
2+
"@context": {
3+
"schema": "http://schema.org/",
4+
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
5+
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
6+
"bioschemasdrafts": "https://discovery.biothings.io/view/bioschemasdrafts/",
7+
"owl": "http://www.w3.org/2002/07/owl/"
8+
},
9+
"@graph": [
10+
{
11+
"@id": "bioschemasdrafts:Disease",
12+
"@type": "rdfs:Class",
13+
"rdfs:comment": "This is the first draft of the Disease profile, using MedicalCondition type from schema.org as template for inheriting some properties. Changes since 0.1-DRAFT<ul><li>added sameAs as recommended<li></ul>Version 0.2-DRAFT",
14+
"rdfs:label": "Disease",
15+
"rdfs:subClassOf": {
16+
"@id": "schema:MedicalCondition"
17+
},
18+
"$validation": {
19+
"$schema": "http://json-schema.org/draft-07/schema#",
20+
"type": "object",
21+
"properties": {
22+
"drug": {
23+
"description": "Specifying a drug or medicine used in a medication procedure.",
24+
"oneOf": [
25+
{
26+
"$ref": "#/definitions/drugobject"
27+
},
28+
{
29+
"type": "array",
30+
"items": {
31+
"$ref": "#/definitions/drugobject"
32+
}
33+
}
34+
],
35+
"owl:cardinality": "many"
36+
},
37+
"alternateName": {
38+
"description": "An alias for the item.",
39+
"oneOf": [
40+
{
41+
"type": "string"
42+
},
43+
{
44+
"type": "array",
45+
"items": {
46+
"type": "string"
47+
}
48+
}
49+
],
50+
"owl:cardinality": "many"
51+
},
52+
"description": {
53+
"description": "A description of the item.",
54+
"type": "string",
55+
"owl:cardinality": "one"
56+
},
57+
"disambiguatingDescription": {
58+
"description": "A sub property of description. A short description of the item used to disambiguate from other, similar items. Information from other properties (in particular, name) may be necessary for the description to be useful for disambiguation.",
59+
"oneOf": [
60+
{
61+
"type": "string"
62+
},
63+
{
64+
"type": "array",
65+
"items": {
66+
"type": "string"
67+
}
68+
}
69+
],
70+
"owl:cardinality": "many"
71+
},
72+
"identifier": {
73+
"description": "The identifier property represents any kind of identifier for any kind of [[Thing]], such as ISBNs, GTIN codes, UUIDs etc. Schema.org provides dedicated properties for representing many of these, either as textual strings or as URL (URI) links. See [background notes](/docs/datamodel.html#identifierBg) for more details.\n ",
74+
"oneOf": [
75+
{
76+
"$ref": "#/definitions/propertyvalue"
77+
},
78+
{
79+
"type": "string"
80+
},
81+
{
82+
"type": "string",
83+
"format": "uri"
84+
}
85+
],
86+
"owl:cardinality": "one"
87+
},
88+
"image": {
89+
"description": "An image of the item. This can be a [[URL]] or a fully described [[ImageObject]].",
90+
"oneOf": [
91+
{
92+
"type": "string",
93+
"format": "uri"
94+
},
95+
{
96+
"$ref": "#/definitions/imageobject"
97+
}
98+
],
99+
"owl:cardinality": "one"
100+
},
101+
"name": {
102+
"description": "The name of the item.",
103+
"type": "string",
104+
"owl:cardinality": "one"
105+
},
106+
"sameAs": {
107+
"description": "URL of a reference Web page that unambiguously indicates the item's identity. E.g. the URL of the item's Wikipedia page, Wikidata entry, or official website.",
108+
"oneOf": [
109+
{
110+
"type": "string",
111+
"format": "uri"
112+
},
113+
{
114+
"type": "array",
115+
"items": {
116+
"type": "string",
117+
"format": "uri"
118+
}
119+
}
120+
],
121+
"owl:cardinality": "many"
122+
},
123+
"url": {
124+
"description": "URL of the item. Link to the official webpage associated to this entity.",
125+
"type": "string",
126+
"format": "uri",
127+
"owl:cardinality": "one"
128+
}
129+
},
130+
"required": [
131+
"identifier",
132+
"name"
133+
],
134+
"recommended": [
135+
"drug",
136+
"description",
137+
"image",
138+
"url",
139+
"sameAs"
140+
],
141+
"optional": [
142+
"alternateName",
143+
"disambiguatingDescription",
144+
"sameAs"
145+
],
146+
"definitions": {
147+
"drugobject": {
148+
"@type": "Drug",
149+
"type": "object",
150+
"properties": {
151+
"name": {
152+
"type": "string"
153+
},
154+
"url": {
155+
"type": "string",
156+
"format": "uri"
157+
}
158+
},
159+
"required": []
160+
},
161+
"propertyvalue": {
162+
"@type": "PropertyValue",
163+
"type": "object",
164+
"properties": {
165+
"name": {
166+
"type": "string"
167+
},
168+
"value": {
169+
"oneOf": [
170+
{
171+
"type": "string"
172+
},
173+
{
174+
"type": "boolean"
175+
},
176+
{
177+
"type": "number"
178+
}
179+
]
180+
},
181+
"identifier": {
182+
"type": "string"
183+
},
184+
"valuereference": {
185+
"oneOf": [
186+
{
187+
"$ref": "#/definitions/categorycode"
188+
},
189+
{
190+
"type": "array",
191+
"items": [
192+
{
193+
"$ref": "#/definitions/categorycode"
194+
}
195+
]
196+
}
197+
]
198+
},
199+
"unitCode": {
200+
"oneOf": [
201+
{
202+
"type": "string"
203+
},
204+
{
205+
"type": "string",
206+
"format": "uri"
207+
}
208+
]
209+
},
210+
"unitText": {
211+
"type": "string"
212+
}
213+
},
214+
"required": [
215+
"name",
216+
"value"
217+
],
218+
"recommended": [
219+
"valueReference"
220+
],
221+
"optional": [
222+
"unitCode",
223+
"unitText"
224+
]
225+
},
226+
"imageobject": {
227+
"@type": "ImageObject",
228+
"type": "object",
229+
"properties": {
230+
"name": {
231+
"type": "string"
232+
},
233+
"url": {
234+
"type": "string",
235+
"format": "uri"
236+
}
237+
},
238+
"required": []
239+
},
240+
"categorycode": {
241+
"@type": "CategoryCode",
242+
"type": "object",
243+
"properties": {
244+
"name": {
245+
"type": "string"
246+
},
247+
"codeValue": {
248+
"type": "string"
249+
},
250+
"url": {
251+
"type": "string"
252+
}
253+
},
254+
"required": [
255+
"name",
256+
"codeValue",
257+
"url"
258+
]
259+
}
260+
}
261+
}
262+
}
263+
]
264+
}

0 commit comments

Comments
 (0)