1 | {
|
2 | "title": "CiteGroup",
|
3 | "@id": "stencila:CiteGroup",
|
4 | "extends": "Entity",
|
5 | "category": "text",
|
6 | "role": "secondary",
|
7 | "status": "unstable",
|
8 | "description": "A group of Cite nodes.",
|
9 | "$comment": "This type allows you to group associated citations together.\nWhen some content in a [`Creative Work`](./CreativeWork) cites more than one\nreference for a particular piece of text, use a `CiteGroup` to encapsulate\nmultiple [`Cite`](./Cite) nodes.\n\nAt present we do not give a `citationMode` property to a `CiteGroup` since\nthey will almost always be parenthetical as opposed to narrative.\nIn other words, it usually only makes sense for individual `Cite` nodes to be\nnarrative (although they may be connected together within `content` using words\nsuch as \"and\").\n",
|
10 | "properties": {
|
11 | "type": {
|
12 | "@id": "schema:type",
|
13 | "description": "The name of the type.",
|
14 | "type": "string",
|
15 | "enum": [
|
16 | "CiteGroup"
|
17 | ],
|
18 | "default": "CiteGroup",
|
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 | "items": {
|
34 | "@id": "schema:itemListElement",
|
35 | "type": "array",
|
36 | "description": "One or more `Cite`s to be referenced in the same surrounding text.",
|
37 | "items": {
|
38 | "$ref": "Cite.schema.json"
|
39 | },
|
40 | "from": "CiteGroup",
|
41 | "isArray": true,
|
42 | "isPlural": true,
|
43 | "aliases": [
|
44 | "item"
|
45 | ]
|
46 | }
|
47 | },
|
48 | "required": [
|
49 | "type",
|
50 | "items"
|
51 | ],
|
52 | "examples": [
|
53 | {
|
54 | "type": "Article",
|
55 | "title": "An example of using the CiteGroup node type",
|
56 | "authors": [
|
57 | {
|
58 | "type": "Person",
|
59 | "givenNames": [
|
60 | "Joe"
|
61 | ],
|
62 | "familyNames": [
|
63 | "Bloggs"
|
64 | ]
|
65 | }
|
66 | ],
|
67 | "content": [
|
68 | {
|
69 | "type": "Paragraph",
|
70 | "content": [
|
71 | "Citing two articles ",
|
72 | {
|
73 | "type": "CiteGroup",
|
74 | "items": [
|
75 | {
|
76 | "type": "Cite",
|
77 | "target": "some-one-else-1991"
|
78 | },
|
79 | {
|
80 | "type": "Cite",
|
81 | "target": "updated-works-2009"
|
82 | }
|
83 | ]
|
84 | },
|
85 | "."
|
86 | ]
|
87 | }
|
88 | ],
|
89 | "references": [
|
90 | {
|
91 | "type": "Article",
|
92 | "id": "some-one-else-1991",
|
93 | "title": "Another article by someone else",
|
94 | "authors": [
|
95 | {
|
96 | "type": "Person",
|
97 | "givenNames": [
|
98 | "Some",
|
99 | "One"
|
100 | ],
|
101 | "familyNames": [
|
102 | "Else"
|
103 | ]
|
104 | }
|
105 | ],
|
106 | "datePublished": "1991"
|
107 | },
|
108 | {
|
109 | "type": "Article",
|
110 | "id": "update-works-2009",
|
111 | "title": "A Better Updated Work",
|
112 | "authors": [
|
113 | {
|
114 | "type": "Person",
|
115 | "givenNames": [
|
116 | "Some",
|
117 | "Better"
|
118 | ],
|
119 | "familyNames": [
|
120 | "Person"
|
121 | ]
|
122 | }
|
123 | ],
|
124 | "datePublished": "2009"
|
125 | }
|
126 | ]
|
127 | }
|
128 | ],
|
129 | "file": "CiteGroup.schema.yaml",
|
130 | "children": [],
|
131 | "descendants": [],
|
132 | "$schema": "http://json-schema.org/draft-07/schema#",
|
133 | "$id": "https://schema.stenci.la/v1/CiteGroup.schema.json",
|
134 | "source": "https://github.com/stencila/schema/blob/master/schema/CiteGroup.schema.yaml",
|
135 | "type": "object",
|
136 | "propertyAliases": {
|
137 | "item": "items"
|
138 | },
|
139 | "additionalProperties": false
|
140 | }
|