-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobject.schema.json
279 lines (279 loc) · 15.2 KB
/
object.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
{
"meta:license": [
"Copyright 2017 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "https://ns.adobe.com/xdm/external/activity-streams-2/object",
"title": "Object",
"definitions": {
"mime-media-type": {
"type": "string",
"title": "MIME Media Type",
"description":
"[Multipurpose Internet Mail Extensions (MIME)](https://tools.ietf.org/html/rfc2046)",
"pattern": "\\w+\\/[-.\\w]+(?:\\+[-.\\w]+)?"
},
"single-object-or-link": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"$ref": "https://ns.adobe.com/xdm/external/activity-streams-2/object"
},
{
"$ref": "https://ns.adobe.com/xdm/external/activity-streams-2/link"
}
]
},
"multiple-objects-or-links": {
"items": {
"$ref": "#/definitions/single-object-or-link"
},
"type": "array"
},
"object-or-link-or-array-of-object-or-link": {
"oneOf": [
{
"$ref": "#/definitions/single-object-or-link"
},
{
"$ref": "#/definitions/multiple-objects-or-links"
}
]
},
"single-image-or-link": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"$ref": "https://ns.adobe.com/xdm/external/activity-streams-2/image"
},
{
"$ref": "https://ns.adobe.com/xdm/external/activity-streams-2/link"
}
]
},
"multiple-images-or-links": {
"items": {
"$ref": "#/definitions/single-image-or-link"
},
"type": "array"
},
"image-or-link-or-array-of-image-or-link": {
"oneOf": [
{
"$ref": "#/definitions/single-image-or-link"
},
{
"$ref": "#/definitions/multiple-images-or-links"
}
]
},
"single-xsd:anyURI-or-link": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"$ref": "https://ns.adobe.com/xdm/external/activity-streams-2/link"
}
]
},
"multiple-xsd:anyURIs-or-links": {
"items": {
"$ref": "#/definitions/single-xsd:anyURI-or-link"
},
"type": "array"
},
"xsd:anyURI-or-link-or-array-of-xsd:anyURI-or-link": {
"oneOf": [
{
"$ref": "#/definitions/single-xsd:anyURI-or-link"
},
{
"$ref": "#/definitions/multiple-xsd:anyURIs-or-links"
}
]
},
"string-type": {
"oneOf": [
{
"type": "string"
},
{
"$ref":
"https://ns.adobe.com/xdm/external/activity-streams-2/rdf-langstring"
}
]
},
"object-properties": {
"properties": {
"activitystreams:attachment": {
"description":
"Identifies a resource attached or related to an object that potentially requires special handling. The intent is to provide a model that is at least semantically similar to attachments in email. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-attachment) document for a complete description.",
"$ref": "#/definitions/object-or-link-or-array-of-object-or-link"
},
"activitystreams:attributedTo": {
"description":
"Identifies one or more entities to which this object is attributed. The attributed entities might not be Actors. For instance, an object might be attributed to the completion of another activity. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-attributedTo) document for a complete description.",
"$ref": "#/definitions/object-or-link-or-array-of-object-or-link"
},
"activitystreams:audience": {
"description":
"Identifies one or more entities that represent the total population of entities for which the object can considered to be relevant. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-audience) document for a complete description.",
"$ref": "#/definitions/object-or-link-or-array-of-object-or-link"
},
"activitystreams:content": {
"description":
"The content or textual representation of the Object encoded as a JSON string. By default, the value of content is HTML. The mediaType property can be used in the object to indicate a different content type. The content may be expressed using multiple language-tagged values. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-content) document for a complete description.",
"$ref": "#/definitions/string-type"
},
"activitystreams:context": {
"description":
"Identifies the context within which the object exists or an activity was performed. The notion of 'context' used is intentionally vague. The intended function is to serve as a means of grouping objects and activities that share a common originating context or purpose. An example could be all activities relating to a common project or event. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-context) document for a complete description.",
"$ref": "#/definitions/object-or-link-or-array-of-object-or-link"
},
"activitystreams:name": {
"description":
"A simple, human-readable, plain-text name for the object. HTML markup must not be included. The name may be expressed using multiple language-tagged values. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-name) document for a complete description.",
"$ref": "#/definitions/string-type"
},
"activitystreams:endTime": {
"description":
"The date and time describing the actual or expected ending time of the object. When used with an Activity object, for instance, the endTime property specifies the moment the activity concluded or is expected to conclude. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-endtime) document for a complete description.",
"type": "string",
"format": "date-time"
},
"activitystreams:generator": {
"description":
"Identifies the entity (e.g. an application) that generated the object. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-generator) document for a complete description.",
"$ref": "#/definitions/object-or-link-or-array-of-object-or-link"
},
"activitystreams:icon": {
"description":
"Indicates an entity that describes an icon for this object. The image should have an aspect ratio of one (horizontal) to one (vertical) and should be suitable for presentation at a small size. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-icon) document for a complete description.",
"$ref": "#/definitions/image-or-link-or-array-of-image-or-link"
},
"activitystreams:image": {
"description":
"Indicates an entity that describes an image for this object. Unlike the icon property, there are no aspect ratio or display size limitations assumed. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-image) document for a complete description.",
"$ref": "#/definitions/image-or-link-or-array-of-image-or-link"
},
"activitystreams:inReplyTo": {
"description":
"Indicates one or more entities for which this object is considered a response. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-inreplyto) document for a complete description.",
"$ref": "#/definitions/object-or-link-or-array-of-object-or-link"
},
"activitystreams:location": {
"description":
"Indicates one or more physical or logical locations associated with the object. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-location) document for a complete description.",
"$ref": "#/definitions/object-or-link-or-array-of-object-or-link"
},
"activitystreams:preview": {
"description":
"Identifies an entity that provides a preview of this object. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-preview) document for a complete description.",
"$ref": "#/definitions/object-or-link-or-array-of-object-or-link"
},
"activitystreams:published": {
"description":
"The date and time at which the object was published Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-published) document for a complete description.",
"type": "string",
"format": "date-time"
},
"activitystreams:replies": {
"description":
"Identifies a Collection containing objects considered to be responses to this object. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-replies) document for a complete description.",
"$ref":
"https://ns.adobe.com/xdm/external/activity-streams-2/collection"
},
"activitystreams:startTime": {
"description":
"The date and time describing the actual or expected starting time of the object. When used with an Activity object, for instance, the startTime property specifies the moment the activity began or is scheduled to begin. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-starttime) document for a complete description.",
"type": "string",
"format": "date-time"
},
"activitystreams:summary": {
"description":
"A natural language summarization of the object encoded as HTML. Multiple language tagged summaries may be provided. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-summary) document for a complete description.",
"$ref": "#/definitions/string-type"
},
"activitystreams:tag": {
"description":
"One or more 'tags' that have been associated with an objects. A tag can be any kind of Object. The key difference between attachment and tag is that the former implies association by inclusion, while the latter implies associated by reference. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-tag) document for a complete description.",
"$ref": "#/definitions/object-or-link-or-array-of-object-or-link"
},
"activitystreams:updated": {
"description":
"The date and time at which the object was updated Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-updated) document for a complete description.",
"type": "string",
"format": "date-time"
},
"activitystreams:url": {
"description":
"Identifies one or more links to representations of the object. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-url) document for a complete description.",
"$ref":
"#/definitions/xsd:anyURI-or-link-or-array-of-xsd:anyURI-or-link"
},
"activitystreams:to": {
"description":
"Identifies an entity considered to be part of the public primary audience of an Object. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-to) document for a complete description.",
"$ref": "#/definitions/object-or-link-or-array-of-object-or-link"
},
"activitystreams:bto": {
"description":
"Identifies an Object that is part of the private primary audience of this Object. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-bto) document for a complete description.",
"$ref": "#/definitions/object-or-link-or-array-of-object-or-link"
},
"activitystreams:cc": {
"description":
"Identifies an Object that is part of the public secondary audience of this Object. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-cc) document for a complete description.",
"$ref": "#/definitions/object-or-link-or-array-of-object-or-link"
},
"activitystreams:bcc": {
"description":
"Identifies one or more Objects that are part of the private secondary audience of this Object. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-bcc) document for a complete description.",
"$ref": "#/definitions/object-or-link-or-array-of-object-or-link"
},
"activitystreams:mediaType": {
"description":
"When used on a Link, identifies the MIME media type of the referenced resource. When used on an Object, identifies the MIME media type of the value of the content property. If not specified, the content property is assumed to contain text/html content. Refer to the [Activity Streams 2.0 Core](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-mediatype) document for a complete description.",
"$ref": "#/definitions/mime-media-type"
},
"activitystreams:duration": {
"type": "string",
"pattern":
"^[-]?P(?!$)(?:\\d+Y)?(?:\\d+M)?(?:\\d+D)?(?:T(?!$)(?:\\d+H)?(?:\\d+M)?(?:\\d+(?:\\.\\d+)?S)?)?$",
"description":
"XSD Duration according to [specification](https://www.w3.org/TR/xmlschema11-2/#duration)",
"title": "XSD Duration"
}
}
}
},
"type": "object",
"description":
"Describes an object of any kind. The [`Object`](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-object) type serves as the base type for most of the other kinds of objects defined in the Activity Vocabulary, including other Core types such as `[Activity](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-activity)`, `[IntransitiveActivity](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-intransitiveactivity)`, `[Collection](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-collection)` and `[OrderedCollection](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-orderedcollection)`.",
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/external/activity-streams-2/context"
},
{
"$ref": "https://ns.adobe.com/xdm/external/activity-streams-2/id"
},
{
"$ref": "https://ns.adobe.com/xdm/external/activity-streams-2/type"
},
{
"$ref": "#/definitions/object-properties"
}
],
"meta:status": "experimental"
}