UNPKG

6 kBJSONView Raw
1{
2 "title": "MonetaryGrant",
3 "@id": "schema:MonetaryGrant",
4 "extends": "Grant",
5 "role": "tertiary",
6 "status": "stable",
7 "category": "other",
8 "description": "A monetary grant.",
9 "properties": {
10 "type": {
11 "@id": "schema:type",
12 "description": "The name of the type.",
13 "type": "string",
14 "enum": [
15 "MonetaryGrant"
16 ],
17 "default": "MonetaryGrant",
18 "from": "Entity"
19 },
20 "id": {
21 "@id": "schema:id",
22 "description": "The identifier for this item.",
23 "type": "string",
24 "from": "Entity"
25 },
26 "meta": {
27 "@id": "stencila:meta",
28 "description": "Metadata associated with this item.",
29 "type": "object",
30 "from": "Entity"
31 },
32 "alternateNames": {
33 "@id": "schema:alternateName",
34 "description": "Alternate names (aliases) for the item.",
35 "type": "array",
36 "items": {
37 "type": "string"
38 },
39 "from": "Thing",
40 "isArray": true,
41 "isPlural": true,
42 "aliases": [
43 "alternateName"
44 ]
45 },
46 "description": {
47 "@id": "schema:description",
48 "description": "A description of the item.",
49 "$comment": "Allows for the description to be an array of nodes (e.g. an array of inline content,\nor a couple of paragraphs), or a string. The `minItems` restriction avoids a string\nbeing coerced into an array with a single string item.\n",
50 "anyOf": [
51 {
52 "type": "array",
53 "items": {
54 "$ref": "BlockContent.schema.json"
55 }
56 },
57 {
58 "type": "array",
59 "items": {
60 "$ref": "InlineContent.schema.json"
61 },
62 "minItems": 2
63 },
64 {
65 "type": "string"
66 }
67 ],
68 "from": "Thing"
69 },
70 "identifiers": {
71 "@id": "schema:identifier",
72 "description": "Any kind of identifier for any kind of Thing.",
73 "$comment": "Some identifiers have specific properties e.g the `issn` property for\nthe `Periodical` type. These should be used in preference to this\nproperty which is intended for identifiers that do not yet have a\nspecific property. Identifiers can be represented as strings, but\nusing a `PropertyValue` will usually be better because it allows\nfor `propertyID` (i.e. the type of identifier).\n",
74 "type": "array",
75 "items": {
76 "anyOf": [
77 {
78 "$ref": "PropertyValue.schema.json"
79 },
80 {
81 "type": "string"
82 }
83 ]
84 },
85 "from": "Thing",
86 "isArray": true,
87 "isPlural": true,
88 "aliases": [
89 "identifier"
90 ]
91 },
92 "images": {
93 "@id": "schema:image",
94 "description": "Images of the item.",
95 "type": "array",
96 "items": {
97 "anyOf": [
98 {
99 "$ref": "ImageObject.schema.json"
100 },
101 {
102 "type": "string",
103 "format": "uri"
104 }
105 ]
106 },
107 "from": "Thing",
108 "isArray": true,
109 "isPlural": true,
110 "aliases": [
111 "image"
112 ]
113 },
114 "name": {
115 "@id": "schema:name",
116 "description": "The name of the item.",
117 "type": "string",
118 "from": "Thing"
119 },
120 "url": {
121 "@id": "schema:url",
122 "description": "The URL of the item.",
123 "type": "string",
124 "format": "uri",
125 "from": "Thing"
126 },
127 "fundedItems": {
128 "@id": "schema:fundedItem",
129 "description": "Indicates an item funded or sponsored through a Grant.",
130 "$comment": "An array because a grant may have more than one funded item.\n",
131 "type": "array",
132 "items": {
133 "$ref": "Thing.schema.json"
134 },
135 "from": "Grant",
136 "isArray": true,
137 "isPlural": true,
138 "aliases": [
139 "fundedItem"
140 ]
141 },
142 "sponsors": {
143 "@id": "schema:sponsor",
144 "description": "A person or organization that supports a thing through a pledge, promise, or financial contribution.",
145 "$comment": "An array because a grant may have more than one sponsor.\n",
146 "type": "array",
147 "items": {
148 "anyOf": [
149 {
150 "$ref": "Person.schema.json"
151 },
152 {
153 "$ref": "Organization.schema.json"
154 }
155 ]
156 },
157 "from": "Grant",
158 "isArray": true,
159 "isPlural": true,
160 "aliases": [
161 "sponsor"
162 ]
163 },
164 "amounts": {
165 "@id": "schema:amount",
166 "description": "The amount of money.",
167 "$comment": "This property is an array, to allow for multiple amounts, possibly, but not necessarily,\nfrom multiple `funders`.\n",
168 "type": "number",
169 "from": "MonetaryGrant"
170 },
171 "funders": {
172 "@id": "schema:funder",
173 "description": "A person or organization that supports (sponsors) something through some kind of financial contribution.\n",
174 "$comment": "Often a `MonetaryGrant` will have a single funder. This property is an array to be consistent with `funders` on other types e.g. `CreativeWork`.",
175 "type": "array",
176 "items": {
177 "anyOf": [
178 {
179 "$ref": "Person.schema.json"
180 },
181 {
182 "$ref": "Organization.schema.json"
183 }
184 ]
185 },
186 "from": "MonetaryGrant",
187 "isArray": true,
188 "isPlural": true,
189 "aliases": [
190 "funder"
191 ]
192 }
193 },
194 "file": "MonetaryGrant.schema.yaml",
195 "children": [],
196 "descendants": [],
197 "$schema": "http://json-schema.org/draft-07/schema#",
198 "$id": "https://schema.stenci.la/v1/MonetaryGrant.schema.json",
199 "source": "https://github.com/stencila/schema/blob/master/schema/MonetaryGrant.schema.yaml",
200 "type": "object",
201 "propertyAliases": {
202 "alternateName": "alternateNames",
203 "identifier": "identifiers",
204 "image": "images",
205 "fundedItem": "fundedItems",
206 "sponsor": "sponsors",
207 "funder": "funders"
208 },
209 "additionalProperties": false,
210 "required": [
211 "type"
212 ]
213}