1 | {
|
2 | "title": "Cite",
|
3 | "@id": "stencila:Cite",
|
4 | "extends": "Entity",
|
5 | "role": "secondary",
|
6 | "status": "unstable",
|
7 | "description": "A reference to a CreativeWork that is cited in another CreativeWork.\n",
|
8 | "properties": {
|
9 | "type": {
|
10 | "@id": "schema:type",
|
11 | "description": "The name of the type.",
|
12 | "type": "string",
|
13 | "enum": [
|
14 | "Cite"
|
15 | ],
|
16 | "default": "Cite",
|
17 | "from": "Entity"
|
18 | },
|
19 | "id": {
|
20 | "@id": "schema:id",
|
21 | "description": "The identifier for this item.",
|
22 | "type": "string",
|
23 | "from": "Entity"
|
24 | },
|
25 | "meta": {
|
26 | "@id": "stencila:meta",
|
27 | "description": "Metadata associated with this item.",
|
28 | "type": "object",
|
29 | "from": "Entity"
|
30 | },
|
31 | "citationMode": {
|
32 | "@id": "stencila:citationMode",
|
33 | "description": "How the cite is rendered in the surrounding text.",
|
34 | "type": "string",
|
35 | "enum": [
|
36 | "normal",
|
37 | "suppressAuthor"
|
38 | ],
|
39 | "from": "Cite"
|
40 | },
|
41 | "content": {
|
42 | "@id": "stencila:content",
|
43 | "description": "Optional structured content/text of this citation.",
|
44 | "type": "array",
|
45 | "items": {
|
46 | "$ref": "InlineContent.schema.json"
|
47 | },
|
48 | "from": "Cite",
|
49 | "isArray": true
|
50 | },
|
51 | "pageStart": {
|
52 | "@id": "schema:pageStart",
|
53 | "description": "The page on which the work starts; for example \"135\" or \"xiii\".",
|
54 | "anyOf": [
|
55 | {
|
56 | "type": "integer"
|
57 | },
|
58 | {
|
59 | "type": "string"
|
60 | }
|
61 | ],
|
62 | "from": "Cite"
|
63 | },
|
64 | "pageEnd": {
|
65 | "@id": "schema:pageEnd",
|
66 | "description": "The page on which the work ends; for example \"138\" or \"xvi\".",
|
67 | "anyOf": [
|
68 | {
|
69 | "type": "integer"
|
70 | },
|
71 | {
|
72 | "type": "string"
|
73 | }
|
74 | ],
|
75 | "from": "Cite"
|
76 | },
|
77 | "pagination": {
|
78 | "@id": "schema:pagination",
|
79 | "description": "Any description of pages that is not separated into pageStart and pageEnd;\nfor example, \"1-6, 9, 55\".\n",
|
80 | "type": "string",
|
81 | "from": "Cite"
|
82 | },
|
83 | "prefix": {
|
84 | "@id": "stencila:citationPrefix",
|
85 | "description": "A prefix to show before the citation.",
|
86 | "type": "string",
|
87 | "from": "Cite"
|
88 | },
|
89 | "suffix": {
|
90 | "@id": "stencila:citationSuffix",
|
91 | "description": "A suffix to show after the citation.",
|
92 | "type": "string",
|
93 | "from": "Cite"
|
94 | },
|
95 | "target": {
|
96 | "@id": "stencila:target",
|
97 | "description": "The target of the citation (URL or reference ID).",
|
98 | "type": "string",
|
99 | "from": "Cite"
|
100 | }
|
101 | },
|
102 | "required": [
|
103 | "type",
|
104 | "target"
|
105 | ],
|
106 | "file": "Cite.schema.yaml",
|
107 | "children": [],
|
108 | "descendants": [],
|
109 | "$schema": "http://json-schema.org/draft-07/schema#",
|
110 | "$id": "https://schema.stenci.la/v0/Cite.schema.json",
|
111 | "source": "https://github.com/stencila/schema/blob/master/Cite.schema.yaml",
|
112 | "type": "object",
|
113 | "additionalProperties": false,
|
114 | "propertyAliases": {}
|
115 | }
|