1 | {
|
2 | "title": "Thing",
|
3 | "@id": "schema:Thing",
|
4 | "extends": "Entity",
|
5 | "status": "stable",
|
6 | "role": "base",
|
7 | "category": "metadata",
|
8 | "description": "The most generic type of item.",
|
9 | "properties": {
|
10 | "type": {
|
11 | "@id": "schema:type",
|
12 | "description": "The name of the type.",
|
13 | "type": "string",
|
14 | "enum": [
|
15 | "Thing",
|
16 | "Article",
|
17 | "AudioObject",
|
18 | "Brand",
|
19 | "Collection",
|
20 | "Comment",
|
21 | "ContactPoint",
|
22 | "CreativeWork",
|
23 | "Datatable",
|
24 | "DatatableColumn",
|
25 | "DefinedTerm",
|
26 | "Figure",
|
27 | "Grant",
|
28 | "ImageObject",
|
29 | "ListItem",
|
30 | "MediaObject",
|
31 | "MonetaryGrant",
|
32 | "Organization",
|
33 | "Periodical",
|
34 | "Person",
|
35 | "PostalAddress",
|
36 | "Product",
|
37 | "PropertyValue",
|
38 | "PublicationIssue",
|
39 | "PublicationVolume",
|
40 | "Review",
|
41 | "SoftwareApplication",
|
42 | "SoftwareEnvironment",
|
43 | "SoftwareSession",
|
44 | "SoftwareSourceCode",
|
45 | "Table",
|
46 | "VideoObject",
|
47 | "VolumeMount"
|
48 | ],
|
49 | "default": "Thing",
|
50 | "from": "Entity"
|
51 | },
|
52 | "id": {
|
53 | "@id": "schema:id",
|
54 | "description": "The identifier for this item.",
|
55 | "type": "string",
|
56 | "from": "Entity"
|
57 | },
|
58 | "meta": {
|
59 | "@id": "stencila:meta",
|
60 | "description": "Metadata associated with this item.",
|
61 | "type": "object",
|
62 | "from": "Entity"
|
63 | },
|
64 | "alternateNames": {
|
65 | "@id": "schema:alternateName",
|
66 | "description": "Alternate names (aliases) for the item.",
|
67 | "type": "array",
|
68 | "items": {
|
69 | "type": "string"
|
70 | },
|
71 | "from": "Thing",
|
72 | "isArray": true,
|
73 | "isPlural": true,
|
74 | "aliases": [
|
75 | "alternateName"
|
76 | ]
|
77 | },
|
78 | "description": {
|
79 | "@id": "schema:description",
|
80 | "description": "A description of the item.",
|
81 | "$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",
|
82 | "anyOf": [
|
83 | {
|
84 | "type": "array",
|
85 | "items": {
|
86 | "$ref": "BlockContent.schema.json"
|
87 | }
|
88 | },
|
89 | {
|
90 | "type": "array",
|
91 | "items": {
|
92 | "$ref": "InlineContent.schema.json"
|
93 | },
|
94 | "minItems": 2
|
95 | },
|
96 | {
|
97 | "type": "string"
|
98 | }
|
99 | ],
|
100 | "from": "Thing"
|
101 | },
|
102 | "identifiers": {
|
103 | "@id": "schema:identifier",
|
104 | "description": "Any kind of identifier for any kind of Thing.",
|
105 | "$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",
|
106 | "type": "array",
|
107 | "items": {
|
108 | "anyOf": [
|
109 | {
|
110 | "$ref": "PropertyValue.schema.json"
|
111 | },
|
112 | {
|
113 | "type": "string"
|
114 | }
|
115 | ]
|
116 | },
|
117 | "from": "Thing",
|
118 | "isArray": true,
|
119 | "isPlural": true,
|
120 | "aliases": [
|
121 | "identifier"
|
122 | ]
|
123 | },
|
124 | "images": {
|
125 | "@id": "schema:image",
|
126 | "description": "Images of the item.",
|
127 | "type": "array",
|
128 | "items": {
|
129 | "anyOf": [
|
130 | {
|
131 | "$ref": "ImageObject.schema.json"
|
132 | },
|
133 | {
|
134 | "type": "string",
|
135 | "format": "uri"
|
136 | }
|
137 | ]
|
138 | },
|
139 | "from": "Thing",
|
140 | "isArray": true,
|
141 | "isPlural": true,
|
142 | "aliases": [
|
143 | "image"
|
144 | ]
|
145 | },
|
146 | "name": {
|
147 | "@id": "schema:name",
|
148 | "description": "The name of the item.",
|
149 | "type": "string",
|
150 | "from": "Thing"
|
151 | },
|
152 | "url": {
|
153 | "@id": "schema:url",
|
154 | "description": "The URL of the item.",
|
155 | "type": "string",
|
156 | "format": "uri",
|
157 | "from": "Thing"
|
158 | }
|
159 | },
|
160 | "file": "Thing.schema.yaml",
|
161 | "children": [
|
162 | "Brand",
|
163 | "ContactPoint",
|
164 | "CreativeWork",
|
165 | "DatatableColumn",
|
166 | "DefinedTerm",
|
167 | "Grant",
|
168 | "ListItem",
|
169 | "Organization",
|
170 | "Person",
|
171 | "Product",
|
172 | "PropertyValue",
|
173 | "SoftwareEnvironment",
|
174 | "SoftwareSession",
|
175 | "VolumeMount"
|
176 | ],
|
177 | "descendants": [
|
178 | "Article",
|
179 | "AudioObject",
|
180 | "Brand",
|
181 | "Collection",
|
182 | "Comment",
|
183 | "ContactPoint",
|
184 | "CreativeWork",
|
185 | "Datatable",
|
186 | "DatatableColumn",
|
187 | "DefinedTerm",
|
188 | "Figure",
|
189 | "Grant",
|
190 | "ImageObject",
|
191 | "ListItem",
|
192 | "MediaObject",
|
193 | "MonetaryGrant",
|
194 | "Organization",
|
195 | "Periodical",
|
196 | "Person",
|
197 | "PostalAddress",
|
198 | "Product",
|
199 | "PropertyValue",
|
200 | "PublicationIssue",
|
201 | "PublicationVolume",
|
202 | "Review",
|
203 | "SoftwareApplication",
|
204 | "SoftwareEnvironment",
|
205 | "SoftwareSession",
|
206 | "SoftwareSourceCode",
|
207 | "Table",
|
208 | "VideoObject",
|
209 | "VolumeMount"
|
210 | ],
|
211 | "$schema": "http://json-schema.org/draft-07/schema#",
|
212 | "$id": "https://schema.stenci.la/v0/Thing.schema.json",
|
213 | "source": "https://github.com/stencila/schema/blob/master/Thing.schema.yaml",
|
214 | "type": "object",
|
215 | "propertyAliases": {
|
216 | "alternateName": "alternateNames",
|
217 | "identifier": "identifiers",
|
218 | "image": "images"
|
219 | },
|
220 | "additionalProperties": false,
|
221 | "required": [
|
222 | "type"
|
223 | ]
|
224 | }
|