UNPKG

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