Skip to content

Commit 5848475

Browse files
authored
Merge pull request #185 from IIIF/iiif-prezi-schema-update
Adding iiif-prezi titles
2 parents e38c1e6 + 352379c commit 5848475

File tree

1 file changed

+35
-27
lines changed

1 file changed

+35
-27
lines changed

schema/iiif_3_0.json

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
"$comment": "IIIF basic types",
44
"types": {
55
"id": {
6+
"title":"id",
7+
"description": "Id must be present and must be a URI",
68
"type": "string",
79
"format": "uri",
8-
"pattern": "^http.*$",
9-
"title": "Id must be present and must be a URI"
10+
"pattern": "^http.*$"
1011
},
1112
"lngString": {
12-
"title": "Language string, must have a language and value must be an array.",
13+
"title":"LngString",
14+
"description": "Language string, must have a language and value must be an array.",
1315
"type": "object",
1416
"patternProperties": {
1517
"^[a-zA-Z-][a-zA-Z-]*$": {
@@ -24,10 +26,12 @@
2426
"additionalProperties": false
2527
},
2628
"dimension": {
29+
"title": "dimension",
2730
"type": "integer",
2831
"exclusiveMinimum": 0
2932
},
3033
"keyValueString": {
34+
"title": "KeyValueString",
3135
"type": "object",
3236
"properties": {
3337
"label": {"$ref": "#/types/lngString" },
@@ -36,6 +40,7 @@
3640
"required": ["label", "value"]
3741
},
3842
"BCP47": {
43+
"title": "BCP47",
3944
"anyOf": [
4045
{
4146
"type":"string",
@@ -48,11 +53,13 @@
4853
]
4954
},
5055
"format": {
56+
"title": "format",
5157
"type": "string",
5258
"pattern": "^[a-z][a-z]*/.*$"
5359
},
5460
"class": {
55-
"title": "Classes MUST have an id and type property and MAY have a label.",
61+
"title": "class",
62+
"description": "Classes MUST have an id and type property and MAY have a label.",
5663
"type": "object",
5764
"properties": {
5865
"id": { "$ref": "#/types/id" },
@@ -62,15 +69,18 @@
6269
"required": ["id", "type"]
6370
},
6471
"duration": {
72+
"title":"duration",
6573
"type": "number",
6674
"exclusiveMinimum": 0
6775
},
6876
"external": {
77+
"title":"LinkedResources",
6978
"type": "array",
7079
"items": {
7180
"allOf": [
7281
{ "$ref": "#/types/class" },
7382
{
83+
"title": "linkedResource",
7484
"type": "object",
7585
"properties": {
7686
"format": { "$ref": "#/types/format" },
@@ -113,11 +123,13 @@
113123
}
114124
},
115125
"homepage": {
126+
"title":"homepages",
116127
"type": "array",
117128
"items": {
118129
"allOf": [
119130
{ "$ref": "#/types/class" },
120131
{
132+
"title": "homepage",
121133
"type": "object",
122134
"properties": {
123135
"format": { "$ref": "#/types/format" },
@@ -155,7 +167,8 @@
155167
"resource": {
156168
"oneOf": [
157169
{
158-
"title": "Annotation bodies MUST have an id and type property.",
170+
"title": "AnnotationBody",
171+
"description": "Annotation bodies MUST have an id and type property.",
159172
"type": "object",
160173
"properties": {
161174
"id": { "$ref": "#/types/id" },
@@ -187,7 +200,8 @@
187200
"required": ["id", "type"]
188201
},
189202
{
190-
"title": "Annotation bodies which are TextualBody MUST have an type and value property.",
203+
"title":"TextualBody",
204+
"description": "Annotation bodies which are TextualBody MUST have an type and value property.",
191205
"type": "object",
192206
"properties": {
193207
"id": { "$ref": "#/types/id" },
@@ -221,6 +235,7 @@
221235
"items": {
222236
"oneOf": [
223237
{
238+
"title": "serviceV3",
224239
"allOf": [
225240
{ "$ref": "#/types/class" },
226241
{
@@ -234,6 +249,7 @@
234249
},
235250
{
236251
"type": "object",
252+
"title": "serviceV2",
237253
"properties": {
238254
"@id": { "$ref": "#/types/id" },
239255
"@type": { "type": "string" },
@@ -246,7 +262,8 @@
246262
}
247263
},
248264
"rights": {
249-
"title": "Rights URI isn't from either Creative Commons or RightsStatements.org. Both require http links.",
265+
"title": "rights",
266+
"description": "Rights URI isn't from either Creative Commons or RightsStatements.org. Both require http links.",
250267
"oneOf": [
251268
{
252269
"type": "string",
@@ -378,11 +395,13 @@
378395
}
379396
},
380397
"provider": {
398+
"title": "providers",
381399
"type": "array",
382400
"items": {
383401
"allOf": [
384402
{ "$ref": "#/types/class" },
385403
{
404+
"title":"provider",
386405
"type": "object",
387406
"properties": {
388407
"type": {
@@ -411,7 +430,7 @@
411430
"type": "string",
412431
"pattern": "^Collection",
413432
"default": "Collection",
414-
"title": "Are you validating a collection?",
433+
"title": "Collection",
415434
"description":"If you are validating a manifest, you may get this error if there are errors in the manifest. The validator first validates it as a manifest and if that fails it will try and validate it using the other types."
416435
},
417436
"metadata": { "$ref": "#/classes/metadata" },
@@ -603,6 +622,7 @@
603622
"type": "string"
604623
},
605624
{
625+
"title":"AnnotationPageRefExtended",
606626
"allOf": [
607627
{ "$ref": "#/types/reference" },
608628
{
@@ -624,6 +644,7 @@
624644
"type": "string"
625645
},
626646
{
647+
"title":"AnnotationCollectionRefExtended",
627648
"allOf": [
628649
{ "$ref": "#/types/reference" },
629650
{
@@ -1047,6 +1068,7 @@
10471068
"pattern": "^http.*$"
10481069
},
10491070
{
1071+
"title": "PointSelector",
10501072
"type": "object",
10511073
"properties": {
10521074
"type": {
@@ -1061,6 +1083,7 @@
10611083
"required": ["type"]
10621084
},
10631085
{
1086+
"title": "FragmentSelector",
10641087
"type": "object",
10651088
"properties": {
10661089
"type": {
@@ -1081,6 +1104,7 @@
10811104
"required": ["type","value"]
10821105
},
10831106
{
1107+
"title": "SVGSelector",
10841108
"type": "object",
10851109
"properties": {
10861110
"type": {
@@ -1095,6 +1119,7 @@
10951119
"required": ["type","value"]
10961120
},
10971121
{
1122+
"title": "ImageAPISelector",
10981123
"type": "object",
10991124
"properties": {
11001125
"type": {
@@ -1151,25 +1176,7 @@
11511176
"items": {
11521177
"oneOf": [
11531178
{ "$ref": "#/classes/specificResource" },
1154-
{
1155-
"allOf": [
1156-
{ "$ref": "#/types/class" },
1157-
{
1158-
"type": "object",
1159-
"properties": {
1160-
"type": {
1161-
"type": "string",
1162-
"pattern": "^Canvas$",
1163-
"default": "Canvas"
1164-
},
1165-
"items": {
1166-
"type": "array"
1167-
}
1168-
},
1169-
"required": ["items"]
1170-
}
1171-
]
1172-
},
1179+
{ "$ref": "#/classes/canvas" },
11731180
{ "$ref": "#/classes/range" },
11741181
{ "$ref": "#/classes/rangeRef" },
11751182
{ "$ref": "#/classes/canvasRef" }
@@ -1183,6 +1190,7 @@
11831190
}
11841191
},
11851192
"$id": "http://iiif.io/api/presentation/3/schema.json" ,
1193+
"title":"AbstractIIIFResource",
11861194
"oneOf": [
11871195
{ "$ref": "#/classes/manifest" },
11881196
{ "$ref": "#/classes/collection" },

0 commit comments

Comments
 (0)