Skip to content

Commit f75afad

Browse files
committed
Adding iiif-prezi titles
1 parent 1aaaaee commit f75afad

File tree

1 file changed

+59
-22
lines changed

1 file changed

+59
-22
lines changed

schema/iiif_3_0.json

Lines changed: 59 additions & 22 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,10 +69,12 @@
6269
"required": ["id", "type"]
6370
},
6471
"duration": {
72+
"title":"duration",
6573
"type": "number",
6674
"exclusiveMinimum": 0
6775
},
6876
"external": {
77+
"title":"external",
6978
"type": "array",
7079
"items": {
7180
"allOf": [
@@ -155,7 +164,8 @@
155164
"resource": {
156165
"oneOf": [
157166
{
158-
"title": "Annotation bodies MUST have an id and type property.",
167+
"title": "resource",
168+
"description": "Annotation bodies MUST have an id and type property.",
159169
"type": "object",
160170
"properties": {
161171
"id": { "$ref": "#/types/id" },
@@ -187,7 +197,8 @@
187197
"required": ["id", "type"]
188198
},
189199
{
190-
"title": "Annotation bodies which are TextualBody MUST have an type and value property.",
200+
"title":"AnnotationBody",
201+
"description": "Annotation bodies which are TextualBody MUST have an type and value property.",
191202
"type": "object",
192203
"properties": {
193204
"id": { "$ref": "#/types/id" },
@@ -221,9 +232,12 @@
221232
"items": {
222233
"oneOf": [
223234
{
235+
"title": "service",
224236
"allOf": [
237+
{ "title": "test"},
225238
{ "$ref": "#/types/class" },
226239
{
240+
"title": "Foobar2",
227241
"type": "object",
228242
"properties": {
229243
"profile": { "type": "string" },
@@ -246,7 +260,8 @@
246260
}
247261
},
248262
"rights": {
249-
"title": "Rights URI isn't from either Creative Commons or RightsStatements.org. Both require http links.",
263+
"title": "rights",
264+
"description": "Rights URI isn't from either Creative Commons or RightsStatements.org. Both require http links.",
250265
"oneOf": [
251266
{
252267
"type": "string",
@@ -411,7 +426,7 @@
411426
"type": "string",
412427
"pattern": "^Collection",
413428
"default": "Collection",
414-
"title": "Are you validating a collection?",
429+
"title": "Collection",
415430
"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."
416431
},
417432
"metadata": { "$ref": "#/classes/metadata" },
@@ -618,6 +633,27 @@
618633
}
619634
]
620635
},
636+
"annotationCollectionRef": {
637+
"oneOf": [
638+
{
639+
"type": "string"
640+
},
641+
{
642+
"allOf": [
643+
{ "$ref": "#/types/reference" },
644+
{
645+
"type": "object",
646+
"properties": {
647+
"type": {
648+
"type": "string",
649+
"pattern": "^AnnotationCollection$"
650+
}
651+
}
652+
}
653+
]
654+
}
655+
]
656+
},
621657
"canvas": {
622658
"allOf": [
623659
{ "$ref": "#/types/class" },
@@ -833,7 +869,8 @@
833869
"$ref": "#/classes/annotation"
834870
}
835871
}
836-
}
872+
},
873+
"required": ["items"]
837874
}
838875
]
839876
},
@@ -883,7 +920,10 @@
883920
"partOf": {
884921
"type": "array",
885922
"items": {
886-
"$ref": "#/classes/annotationCollection"
923+
"oneOf": [
924+
{ "$ref": "#/classes/annotationCollection" },
925+
{ "$ref": "#/classes/annotationCollectionRef" }
926+
]
887927
}
888928
},
889929
"next": { "$ref": "#/classes/annotationPageRef" },
@@ -979,17 +1019,8 @@
9791019
},
9801020
{
9811021
"$ref": "#/classes/specificResource"
982-
},
983-
{
984-
"title": "Annotation target can also contain just scope and source",
985-
"type": "object",
986-
"properties": {
987-
"source": { "$ref": "#/types/id" },
988-
"scope": { "$ref": "#/types/id" }
989-
},
990-
"required": ["source", "scope"]
9911022
}
992-
]
1023+
]
9931024
},
9941025
"specificResource": {
9951026
"type": "object",
@@ -1008,6 +1039,7 @@
10081039
{ "$ref": "#/types/class" }
10091040
]
10101041
},
1042+
"scope": { "$ref": "#/types/id"},
10111043
"selector": {
10121044
"oneOf": [
10131045
{ "$ref": "#/classes/selector" },
@@ -1020,7 +1052,7 @@
10201052
]
10211053
}
10221054
},
1023-
"required": ["source", "selector"]
1055+
"required": ["source"]
10241056
},
10251057
"selector": {
10261058
"oneOf": [
@@ -1107,7 +1139,12 @@
11071139
"default": "Range"
11081140
},
11091141
"rendering": { "$ref": "#/types/external" },
1110-
"supplementary": { "$ref": "#/classes/annotationCollection" },
1142+
"supplementary": {
1143+
"oneOf": [
1144+
{ "$ref": "#/classes/annotationCollection" },
1145+
{ "$ref": "#/classes/annotationCollectionRef" }
1146+
]
1147+
},
11111148
"service": { "$ref": "#/classes/service" },
11121149
"placeholderCanvas": { "$ref": "#/classes/placeholderCanvas" },
11131150
"accompanyingCanvas": { "$ref": "#/classes/accompanyingCanvas" },

0 commit comments

Comments
 (0)