1 | {
|
2 | "title": "CreativeWork",
|
3 | "@id": "schema:CreativeWork",
|
4 | "extends": "Thing",
|
5 | "category": "works",
|
6 | "role": "base",
|
7 | "status": "stable",
|
8 | "description": "A creative work, including books, movies, photographs, software programs, etc.\n",
|
9 | "$comment": "This is an implementation, and extension, of schema.org [`CreativeWork`](https://schema.org/CreativeWork).\nIt extends schema.org `CreativeWork` by, adding several properties including `dateAccepted`\nand `fundedBy`.\n",
|
10 | "properties": {
|
11 | "type": {
|
12 | "@id": "schema:type",
|
13 | "description": "The name of the type.",
|
14 | "type": "string",
|
15 | "enum": [
|
16 | "CreativeWork",
|
17 | "Article",
|
18 | "AudioObject",
|
19 | "Claim",
|
20 | "Collection",
|
21 | "Comment",
|
22 | "Datatable",
|
23 | "Figure",
|
24 | "ImageObject",
|
25 | "MediaObject",
|
26 | "Periodical",
|
27 | "PublicationIssue",
|
28 | "PublicationVolume",
|
29 | "Review",
|
30 | "SoftwareApplication",
|
31 | "SoftwareSourceCode",
|
32 | "Table",
|
33 | "VideoObject"
|
34 | ],
|
35 | "default": "CreativeWork",
|
36 | "from": "Entity"
|
37 | },
|
38 | "id": {
|
39 | "@id": "schema:id",
|
40 | "description": "The identifier for this item.",
|
41 | "type": "string",
|
42 | "from": "Entity"
|
43 | },
|
44 | "meta": {
|
45 | "@id": "stencila:meta",
|
46 | "description": "Metadata associated with this item.",
|
47 | "type": "object",
|
48 | "from": "Entity"
|
49 | },
|
50 | "alternateNames": {
|
51 | "@id": "schema:alternateName",
|
52 | "description": "Alternate names (aliases) for the item.",
|
53 | "type": "array",
|
54 | "items": {
|
55 | "type": "string"
|
56 | },
|
57 | "from": "Thing",
|
58 | "isArray": true,
|
59 | "isPlural": true,
|
60 | "aliases": [
|
61 | "alternateName"
|
62 | ]
|
63 | },
|
64 | "description": {
|
65 | "@id": "schema:description",
|
66 | "description": "A description of the item.",
|
67 | "$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",
|
68 | "anyOf": [
|
69 | {
|
70 | "type": "array",
|
71 | "items": {
|
72 | "$ref": "BlockContent.schema.json"
|
73 | }
|
74 | },
|
75 | {
|
76 | "type": "array",
|
77 | "items": {
|
78 | "$ref": "InlineContent.schema.json"
|
79 | },
|
80 | "minItems": 2
|
81 | },
|
82 | {
|
83 | "type": "string"
|
84 | }
|
85 | ],
|
86 | "from": "Thing"
|
87 | },
|
88 | "identifiers": {
|
89 | "@id": "schema:identifier",
|
90 | "description": "Any kind of identifier for any kind of Thing.",
|
91 | "$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",
|
92 | "type": "array",
|
93 | "items": {
|
94 | "anyOf": [
|
95 | {
|
96 | "$ref": "PropertyValue.schema.json"
|
97 | },
|
98 | {
|
99 | "type": "string"
|
100 | }
|
101 | ]
|
102 | },
|
103 | "from": "Thing",
|
104 | "isArray": true,
|
105 | "isPlural": true,
|
106 | "aliases": [
|
107 | "identifier"
|
108 | ]
|
109 | },
|
110 | "images": {
|
111 | "@id": "schema:image",
|
112 | "description": "Images of the item.",
|
113 | "type": "array",
|
114 | "items": {
|
115 | "anyOf": [
|
116 | {
|
117 | "$ref": "ImageObject.schema.json"
|
118 | },
|
119 | {
|
120 | "type": "string",
|
121 | "format": "uri"
|
122 | }
|
123 | ]
|
124 | },
|
125 | "from": "Thing",
|
126 | "isArray": true,
|
127 | "isPlural": true,
|
128 | "aliases": [
|
129 | "image"
|
130 | ]
|
131 | },
|
132 | "name": {
|
133 | "@id": "schema:name",
|
134 | "description": "The name of the item.",
|
135 | "type": "string",
|
136 | "from": "Thing"
|
137 | },
|
138 | "url": {
|
139 | "@id": "schema:url",
|
140 | "description": "The URL of the item.",
|
141 | "type": "string",
|
142 | "format": "uri",
|
143 | "from": "Thing"
|
144 | },
|
145 | "about": {
|
146 | "@id": "schema:about",
|
147 | "description": "The subject matter of the content.",
|
148 | "$comment": "Consistent with https://schema.org/about, this property allows for\nlinking to one of more `Thing` nodes. This could for example include\na `Person` (e.g for a bibliography) or a `DefinedTerm` (e.g. for\nsubject areas the creative work relates to).\n",
|
149 | "type": "array",
|
150 | "items": {
|
151 | "$ref": "ThingTypes.schema.json"
|
152 | },
|
153 | "from": "CreativeWork",
|
154 | "isArray": true
|
155 | },
|
156 | "authors": {
|
157 | "@id": "schema:author",
|
158 | "description": "The authors of this creative work.",
|
159 | "allOf": [
|
160 | {
|
161 | "parser": "scsi"
|
162 | },
|
163 | {
|
164 | "type": "array",
|
165 | "items": {
|
166 | "anyOf": [
|
167 | {
|
168 | "$ref": "Person.schema.json"
|
169 | },
|
170 | {
|
171 | "$ref": "Organization.schema.json"
|
172 | }
|
173 | ]
|
174 | }
|
175 | }
|
176 | ],
|
177 | "from": "CreativeWork",
|
178 | "isArray": true,
|
179 | "isPlural": true,
|
180 | "aliases": [
|
181 | "author"
|
182 | ]
|
183 | },
|
184 | "comments": {
|
185 | "@id": "schema:comment",
|
186 | "description": "Comments about this creative work.",
|
187 | "type": "array",
|
188 | "items": {
|
189 | "$ref": "Comment.schema.json"
|
190 | },
|
191 | "from": "CreativeWork",
|
192 | "isArray": true,
|
193 | "isPlural": true,
|
194 | "aliases": [
|
195 | "comment"
|
196 | ]
|
197 | },
|
198 | "content": {
|
199 | "@id": "stencila:content",
|
200 | "description": "The structured content of this creative work c.f. property `text`.",
|
201 | "anyOf": [
|
202 | {
|
203 | "type": "array",
|
204 | "items": {
|
205 | "$ref": "Node.schema.json"
|
206 | }
|
207 | },
|
208 | {
|
209 | "type": "string"
|
210 | }
|
211 | ],
|
212 | "from": "CreativeWork"
|
213 | },
|
214 | "dateCreated": {
|
215 | "@id": "schema:dateCreated",
|
216 | "description": "Date/time of creation.",
|
217 | "allOf": [
|
218 | {
|
219 | "$ref": "Date.schema.json"
|
220 | }
|
221 | ],
|
222 | "from": "CreativeWork"
|
223 | },
|
224 | "dateReceived": {
|
225 | "@id": "schema:dateReceived",
|
226 | "description": "Date/time that work was received.",
|
227 | "allOf": [
|
228 | {
|
229 | "$ref": "Date.schema.json"
|
230 | }
|
231 | ],
|
232 | "from": "CreativeWork"
|
233 | },
|
234 | "dateAccepted": {
|
235 | "@id": "stencila:dateAccepted",
|
236 | "description": "Date/time of acceptance.",
|
237 | "$comment": "This is not yet a schema.org property but the term is used\n[in Dublin Core](http://purl.org/dc/terms/dateAccepted).\n",
|
238 | "allOf": [
|
239 | {
|
240 | "$ref": "Date.schema.json"
|
241 | }
|
242 | ],
|
243 | "from": "CreativeWork"
|
244 | },
|
245 | "dateModified": {
|
246 | "@id": "schema:dateModified",
|
247 | "description": "Date/time of most recent modification.",
|
248 | "allOf": [
|
249 | {
|
250 | "$ref": "Date.schema.json"
|
251 | }
|
252 | ],
|
253 | "from": "CreativeWork"
|
254 | },
|
255 | "datePublished": {
|
256 | "@id": "schema:datePublished",
|
257 | "aliases": [
|
258 | "date"
|
259 | ],
|
260 | "description": "Date of first publication.",
|
261 | "allOf": [
|
262 | {
|
263 | "$ref": "Date.schema.json"
|
264 | }
|
265 | ],
|
266 | "from": "CreativeWork"
|
267 | },
|
268 | "editors": {
|
269 | "@id": "schema:editor",
|
270 | "description": "People who edited the `CreativeWork`.",
|
271 | "type": "array",
|
272 | "items": {
|
273 | "$ref": "Person.schema.json"
|
274 | },
|
275 | "from": "CreativeWork",
|
276 | "isArray": true,
|
277 | "isPlural": true,
|
278 | "aliases": [
|
279 | "editor"
|
280 | ]
|
281 | },
|
282 | "funders": {
|
283 | "@id": "schema:funder",
|
284 | "description": "People or organizations that funded the `CreativeWork`.",
|
285 | "type": "array",
|
286 | "items": {
|
287 | "anyOf": [
|
288 | {
|
289 | "$ref": "Person.schema.json"
|
290 | },
|
291 | {
|
292 | "$ref": "Organization.schema.json"
|
293 | }
|
294 | ]
|
295 | },
|
296 | "from": "CreativeWork",
|
297 | "isArray": true,
|
298 | "isPlural": true,
|
299 | "aliases": [
|
300 | "funder"
|
301 | ]
|
302 | },
|
303 | "fundedBy": {
|
304 | "@id": "stencila:fundedBy",
|
305 | "description": "Grants that funded the `CreativeWork`; reverse of `fundedItems`.",
|
306 | "$comment": "This follows the proposal [here](https://github.com/schemaorg/schemaorg/issues/2258)\nfor a property that is the reverse of `fundedItems`.\nIt is an any because a `CreativeWork` may have been funded through more than\none `Grant`.\n",
|
307 | "type": "array",
|
308 | "items": {
|
309 | "anyOf": [
|
310 | {
|
311 | "$ref": "Grant.schema.json"
|
312 | },
|
313 | {
|
314 | "$ref": "MonetaryGrant.schema.json"
|
315 | }
|
316 | ]
|
317 | },
|
318 | "from": "CreativeWork",
|
319 | "isArray": true
|
320 | },
|
321 | "genre": {
|
322 | "@id": "schema:genre",
|
323 | "description": "Genre of the creative work, broadcast channel or group.",
|
324 | "allOf": [
|
325 | {
|
326 | "parser": "csi"
|
327 | },
|
328 | {
|
329 | "type": "array",
|
330 | "items": {
|
331 | "type": "string"
|
332 | }
|
333 | }
|
334 | ],
|
335 | "from": "CreativeWork",
|
336 | "isArray": true
|
337 | },
|
338 | "keywords": {
|
339 | "@id": "schema:keywords",
|
340 | "description": "Keywords or tags used to describe this content.\nMultiple entries in a keywords list are typically delimited by commas.\n",
|
341 | "allOf": [
|
342 | {
|
343 | "parser": "csi"
|
344 | },
|
345 | {
|
346 | "type": "array",
|
347 | "items": {
|
348 | "type": "string"
|
349 | }
|
350 | }
|
351 | ],
|
352 | "from": "CreativeWork",
|
353 | "isArray": true,
|
354 | "isPlural": true,
|
355 | "aliases": [
|
356 | "keyword"
|
357 | ]
|
358 | },
|
359 | "isPartOf": {
|
360 | "@id": "schema:isPartOf",
|
361 | "description": "An item or other CreativeWork that this CreativeWork is a part of.\n",
|
362 | "$ref": "CreativeWorkTypes.schema.json",
|
363 | "from": "CreativeWork"
|
364 | },
|
365 | "licenses": {
|
366 | "@id": "schema:license",
|
367 | "description": "License documents that applies to this content, typically indicated by URL.\n",
|
368 | "type": "array",
|
369 | "items": {
|
370 | "anyOf": [
|
371 | {
|
372 | "$ref": "CreativeWorkTypes.schema.json"
|
373 | },
|
374 | {
|
375 | "type": "string",
|
376 | "format": "uri"
|
377 | }
|
378 | ]
|
379 | },
|
380 | "from": "CreativeWork",
|
381 | "isArray": true,
|
382 | "isPlural": true,
|
383 | "aliases": [
|
384 | "license"
|
385 | ]
|
386 | },
|
387 | "maintainers": {
|
388 | "@id": "schema:maintainer",
|
389 | "description": "The people or organizations who maintain this CreativeWork.",
|
390 | "$comment": "A maintainer of a Dataset, SoftwareApplication, or other CreativeWork.\nA maintainer is a Person or Organization that manages contributions to,\nand/or publication of, some (typically complex) artifact. It is common for\ndistributions of software and data to be based on \"upstream\" sources.\nWhen maintainer is applied to a specific version of something e.g. a particular\nversion or packaging of a Dataset, it is always possible that the upstream\nsource has a different maintainer. The isBasedOn property can be used to\nindicate such relationships between datasets to make the different maintenance\nroles clear. Similarly in the case of software, a package may have dedicated\nmaintainers working on integration into software distributions such as Ubuntu,\nas well as upstream maintainers of the underlying work.\n",
|
391 | "type": "array",
|
392 | "items": {
|
393 | "anyOf": [
|
394 | {
|
395 | "$ref": "Person.schema.json"
|
396 | },
|
397 | {
|
398 | "$ref": "Organization.schema.json"
|
399 | }
|
400 | ]
|
401 | },
|
402 | "from": "CreativeWork",
|
403 | "isArray": true,
|
404 | "isPlural": true,
|
405 | "aliases": [
|
406 | "maintainer"
|
407 | ]
|
408 | },
|
409 | "parts": {
|
410 | "@id": "schema:hasParts",
|
411 | "aliases": [
|
412 | "hasParts",
|
413 | "part"
|
414 | ],
|
415 | "description": "Elements of the collection which can be a variety of different elements,\nsuch as Articles, Datatables, Tables and more.\n",
|
416 | "type": "array",
|
417 | "items": {
|
418 | "$ref": "CreativeWorkTypes.schema.json"
|
419 | },
|
420 | "from": "CreativeWork",
|
421 | "isArray": true,
|
422 | "isPlural": true
|
423 | },
|
424 | "publisher": {
|
425 | "@id": "schema:publisher",
|
426 | "description": "A publisher of the CreativeWork.\n",
|
427 | "anyOf": [
|
428 | {
|
429 | "$ref": "Person.schema.json"
|
430 | },
|
431 | {
|
432 | "$ref": "Organization.schema.json"
|
433 | }
|
434 | ],
|
435 | "from": "CreativeWork"
|
436 | },
|
437 | "references": {
|
438 | "@id": "schema:citation",
|
439 | "aliases": [
|
440 | "citations",
|
441 | "reference"
|
442 | ],
|
443 | "description": "References to other creative works, such as another publication,\nweb page, scholarly article, etc.\n",
|
444 | "type": "array",
|
445 | "items": {
|
446 | "anyOf": [
|
447 | {
|
448 | "$ref": "CreativeWorkTypes.schema.json"
|
449 | },
|
450 | {
|
451 | "type": "string"
|
452 | }
|
453 | ]
|
454 | },
|
455 | "from": "CreativeWork",
|
456 | "isArray": true,
|
457 | "isPlural": true
|
458 | },
|
459 | "text": {
|
460 | "@id": "schema:text",
|
461 | "description": "The textual content of this creative work.",
|
462 | "type": "string",
|
463 | "from": "CreativeWork"
|
464 | },
|
465 | "title": {
|
466 | "@id": "schema:headline",
|
467 | "description": "The title of the creative work.",
|
468 | "aliases": [
|
469 | "headline"
|
470 | ],
|
471 | "$comment": "Allows for the title to include inline content (e.g `Strong`, `Math`)\nor a string. The title can not be block content e.g `Paragraph`.\nThe `minItems` restriction avoids a string being coerced into an array\nwith a single string item.\n",
|
472 | "anyOf": [
|
473 | {
|
474 | "type": "array",
|
475 | "items": {
|
476 | "$ref": "InlineContent.schema.json"
|
477 | },
|
478 | "minItems": 2
|
479 | },
|
480 | {
|
481 | "type": "string"
|
482 | }
|
483 | ],
|
484 | "from": "CreativeWork"
|
485 | },
|
486 | "version": {
|
487 | "@id": "schema:version",
|
488 | "description": "The version of the creative work.",
|
489 | "$comment": "In this case `string` is listed as an alternative before `number` to\navoid semantic version numbers e.g. `1.0` being parsed, and subsequently\nencoded, as `1` thereby resulting in loss of information.\n",
|
490 | "anyOf": [
|
491 | {
|
492 | "type": "string"
|
493 | },
|
494 | {
|
495 | "type": "number"
|
496 | }
|
497 | ],
|
498 | "from": "CreativeWork"
|
499 | }
|
500 | },
|
501 | "file": "CreativeWork.schema.yaml",
|
502 | "children": [
|
503 | "Article",
|
504 | "Claim",
|
505 | "Collection",
|
506 | "Comment",
|
507 | "Datatable",
|
508 | "Figure",
|
509 | "MediaObject",
|
510 | "Periodical",
|
511 | "PublicationIssue",
|
512 | "PublicationVolume",
|
513 | "Review",
|
514 | "SoftwareApplication",
|
515 | "SoftwareSourceCode",
|
516 | "Table"
|
517 | ],
|
518 | "descendants": [
|
519 | "Article",
|
520 | "AudioObject",
|
521 | "Claim",
|
522 | "Collection",
|
523 | "Comment",
|
524 | "Datatable",
|
525 | "Figure",
|
526 | "ImageObject",
|
527 | "MediaObject",
|
528 | "Periodical",
|
529 | "PublicationIssue",
|
530 | "PublicationVolume",
|
531 | "Review",
|
532 | "SoftwareApplication",
|
533 | "SoftwareSourceCode",
|
534 | "Table",
|
535 | "VideoObject"
|
536 | ],
|
537 | "$schema": "http://json-schema.org/draft-07/schema#",
|
538 | "$id": "https://schema.stenci.la/v1/CreativeWork.schema.json",
|
539 | "source": "https://github.com/stencila/schema/blob/master/schema/CreativeWork.schema.yaml",
|
540 | "type": "object",
|
541 | "propertyAliases": {
|
542 | "alternateName": "alternateNames",
|
543 | "identifier": "identifiers",
|
544 | "image": "images",
|
545 | "author": "authors",
|
546 | "comment": "comments",
|
547 | "date": "datePublished",
|
548 | "editor": "editors",
|
549 | "funder": "funders",
|
550 | "keyword": "keywords",
|
551 | "license": "licenses",
|
552 | "maintainer": "maintainers",
|
553 | "hasParts": "parts",
|
554 | "part": "parts",
|
555 | "citations": "references",
|
556 | "reference": "references",
|
557 | "headline": "title"
|
558 | },
|
559 | "additionalProperties": false,
|
560 | "required": [
|
561 | "type"
|
562 | ]
|
563 | }
|