-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi.yaml
More file actions
936 lines (901 loc) · 27.7 KB
/
Copy pathapi.yaml
File metadata and controls
936 lines (901 loc) · 27.7 KB
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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
openapi: 3.0.0
info:
title: Design Museum Gent REST API
version: 2.8.0
description: CIDOC-CRM compliant JSON-LD REST API for the Design Museum Gent collection.
contact:
name: Olivier Van D'huynslager
email: olivier.vandhuynslager@stad.gent
url: https://data.designmuseumgent.be
license:
name: MIT
url: https://opensource.org/licenses/MIT
servers:
- url: https://data.designmuseumgent.be/v2
description: Production (v2 — current)
- url: https://data.designmuseumgent.be/v1
description: v1 (deprecated — sunset 31 December 2026)
externalDocs:
url: https://api.designmuseumgent.be
description: Full API documentation
tags:
- name: Objects
description: Collection objects
- name: Agents
description: Persons and organisations
- name: Exhibitions
description: Exhibition archive
- name: Concepts
description: Thesaurus terms
- name: Colors
description: Color index and statistics
- name: Discovery
description: Index endpoints for types, materials, nationalities and roles
- name: Private
description: Authenticated private streams
- name: DCAT
description: Data catalog
components:
securitySchemes:
ApiKeyAuth:
type: apiKey
in: query
name: apiKey
description: API key for private endpoints
ApiKeyHeader:
type: apiKey
in: header
name: x-api-key
description: API key for private endpoints (preferred)
parameters:
page:
name: page
in: query
description: Page number
schema:
type: integer
default: 1
itemsPerPage:
name: itemsPerPage
in: query
description: Number of items per page (max 100)
schema:
type: integer
default: 10
maximum: 100
fullRecord:
name: fullRecord
in: query
description: Return full CIDOC-CRM records instead of lightweight stubs
schema:
type: boolean
default: false
modifiedSince:
name: modifiedSince
in: query
description: Only return records modified on or after this date. Format YYYY-MM-DD
schema:
type: string
format: date
example: "2026-05-01"
searchQuery:
name: q
in: query
description: Full text search on titles, descriptions and identifiers. Supports phrases, OR, and negation (-keramiek)
schema:
type: string
example: roze glas
onDisplay:
name: onDisplay
in: query
description: Only return objects currently on display in the collection presentation
schema:
type: boolean
default: false
schemas:
HydraCollection:
type: object
properties:
"@context":
type: object
"@id":
type: string
format: uri
"@type":
type: string
example: hydra:Collection
"hydra:totalItems":
type: integer
"hydra:view":
type: object
properties:
"@id":
type: string
"@type":
type: string
"hydra:first":
type: string
"hydra:last":
type: string
"hydra:next":
type: string
"hydra:previous":
type: string
"hydra:member":
type: array
items:
type: object
ErrorResponse:
type: object
properties:
error:
type: string
IndexCollection:
type: object
properties:
"@context":
type: object
"@id":
type: string
format: uri
"@type":
type: string
example: hydra:Collection
"hydra:totalItems":
type: integer
"hydra:member":
type: array
items:
type: object
properties:
"@type":
type: string
"rdfs:label":
type: string
"object_count":
type: integer
"filter":
type: string
format: uri
paths:
# ---------------------------------------------------------------------------
# OBJECTS
# ---------------------------------------------------------------------------
/id/objects:
get:
tags: [Objects]
summary: Paginated collection of all objects
description: >
Returns a Hydra paginated collection of objects. Supports full records,
image filter, color filter, type filter, material filter, full text search,
incremental harvesting and collection presentation filter.
Pagination links are also exposed via RFC 8288 Link headers.
parameters:
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/itemsPerPage'
- $ref: '#/components/parameters/fullRecord'
- $ref: '#/components/parameters/modifiedSince'
- $ref: '#/components/parameters/searchQuery'
- $ref: '#/components/parameters/onDisplay'
- name: hasImages
in: query
description: Only return objects that have a IIIF manifest
schema:
type: boolean
default: false
- name: hasParts
in: query
description: Only return koepelrecords — objects that have physical components
schema:
type: boolean
default: false
- name: isPartOf
in: query
description: Only return components — objects that belong to a larger set
schema:
type: boolean
default: false
- name: type
in: query
description: Filter by object type label. Comma-separated for multiple (AND). Use /v2/id/types to discover available values.
schema:
type: string
example: vaas
- name: material
in: query
description: Filter by material label. Comma-separated for multiple (AND). Use /v2/id/materials to discover available values.
schema:
type: string
example: glas (materiaal)
- name: color
in: query
description: Filter by base color. Comma-separated for multiple (AND). Available values at /v2/id/colors.
schema:
type: string
example: pink,grey
- name: cssColor
in: query
description: Filter by CSS color name. Comma-separated for multiple (AND). Use /v2/id/colors to discover available values.
schema:
type: string
example: Old rose
- name: colors
in: query
description: Include color data in full records. Requires fullRecord=true.
schema:
type: boolean
default: false
- name: hasColors
in: query
description: >
Only return objects that have been processed by the color tagger.
Useful for knowing what is indexed. Separate from ?colors=true which
includes the color data in the response.
schema:
type: boolean
default: false
responses:
"200":
description: Successful response
headers:
Link:
schema:
type: string
description: RFC 8288 pagination links (first, last, next, prev)
content:
application/ld+json:
schema:
$ref: '#/components/schemas/HydraCollection'
"400":
description: Invalid modifiedSince format
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
"500":
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/id/object/{ObjectPID}:
get:
tags: [Objects]
summary: Single object record
description: >
Returns a single object as CIDOC-CRM compliant JSON-LD.
Handles resolver redirects (301) and permanently removed objects (410).
Includes ETag and Last-Modified headers for cache validation.
parameters:
- name: ObjectPID
in: path
required: true
description: Object identifier (DMG object number)
schema:
type: string
example: "1987-1105"
- name: colors
in: query
description: Include color data
schema:
type: boolean
default: false
responses:
"200":
description: Object found
headers:
ETag:
schema:
type: string
description: Cache validation token
Last-Modified:
schema:
type: string
description: Timestamp of last harvest
Cache-Control:
schema:
type: string
content:
application/ld+json:
schema:
type: object
"301":
description: Object has been merged — follow Location header
"404":
description: Object not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
"410":
description: Object permanently removed
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
"500":
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
head:
tags: [Objects]
summary: Check if an object exists
description: >
Lightweight existence check without fetching the full payload.
Returns the same status codes as GET but with no response body.
Includes ETag and Last-Modified headers for cache validation.
parameters:
- name: ObjectPID
in: path
required: true
schema:
type: string
example: "1987-1105"
responses:
"200":
description: Object exists
headers:
ETag:
schema:
type: string
Last-Modified:
schema:
type: string
"301":
description: Object has been merged — follow Location header
"404":
description: Object not found
"410":
description: Object permanently removed
# ---------------------------------------------------------------------------
# AGENTS
# ---------------------------------------------------------------------------
/id/agents:
get:
tags: [Agents]
summary: Paginated collection of all agents
description: >
Returns a Hydra paginated collection of agents (persons and organisations).
Supports full text search, nationality filter and role filter.
parameters:
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/itemsPerPage'
- $ref: '#/components/parameters/fullRecord'
- $ref: '#/components/parameters/modifiedSince'
- $ref: '#/components/parameters/searchQuery'
- name: nationality
in: query
description: Filter by nationality (Dutch country name). Comma-separated for multiple (AND). Use /v2/id/nationalities to discover available values.
schema:
type: string
example: België
- name: role
in: query
description: Filter by role in the collection. Use /v2/id/roles to discover available values.
schema:
type: string
example: designer
responses:
"200":
description: Successful response
headers:
Link:
schema:
type: string
description: RFC 8288 pagination links
content:
application/ld+json:
schema:
$ref: '#/components/schemas/HydraCollection'
"400":
description: Invalid modifiedSince format
"500":
description: Server error
/id/agent/{agentPID}:
get:
tags: [Agents]
summary: Single agent record
description: >
Returns a single agent as CIDOC-CRM compliant JSON-LD, enriched with
Wikipedia biographies, thumbnail image and exhibition participation.
parameters:
- name: agentPID
in: path
required: true
description: Agent identifier
schema:
type: string
example: DMG-A-00162
responses:
"200":
description: Agent found
headers:
ETag:
schema:
type: string
Last-Modified:
schema:
type: string
content:
application/ld+json:
schema:
type: object
"404":
description: Agent not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
"500":
description: Server error
head:
tags: [Agents]
summary: Check if an agent exists
description: Lightweight existence check. Includes ETag and Last-Modified headers for cache validation.
parameters:
- name: agentPID
in: path
required: true
schema:
type: string
example: DMG-A-00162
responses:
"200":
description: Agent exists
headers:
ETag:
schema:
type: string
Last-Modified:
schema:
type: string
"404":
description: Agent not found
"500":
description: Server error
# ---------------------------------------------------------------------------
# EXHIBITIONS
# ---------------------------------------------------------------------------
/id/exhibitions:
get:
tags: [Exhibitions]
summary: Paginated collection of all exhibitions
description: Returns a Hydra paginated collection of exhibitions from the Design Museum Gent archive.
parameters:
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/itemsPerPage'
- $ref: '#/components/parameters/fullRecord'
- $ref: '#/components/parameters/modifiedSince'
responses:
"200":
description: Successful response
headers:
Link:
schema:
type: string
description: RFC 8288 pagination links
content:
application/ld+json:
schema:
$ref: '#/components/schemas/HydraCollection'
"500":
description: Server error
/id/exhibition/{exhibitionPID}:
get:
tags: [Exhibitions]
summary: Single exhibition record
description: >
Returns a single exhibition as CIDOC-CRM compliant JSON-LD with multilingual
titles, descriptions, time span, object links and media.
parameters:
- name: exhibitionPID
in: path
required: true
description: Exhibition identifier
schema:
type: string
example: TE_2020-001
responses:
"200":
description: Exhibition found
headers:
ETag:
schema:
type: string
Last-Modified:
schema:
type: string
content:
application/ld+json:
schema:
type: object
"404":
description: Exhibition not found
"500":
description: Server error
head:
tags: [Exhibitions]
summary: Check if an exhibition exists
description: Lightweight existence check. Includes ETag and Last-Modified headers for cache validation.
parameters:
- name: exhibitionPID
in: path
required: true
schema:
type: string
example: TE_2020-001
responses:
"200":
description: Exhibition exists
headers:
ETag:
schema:
type: string
Last-Modified:
schema:
type: string
"404":
description: Exhibition not found
"500":
description: Server error
# ---------------------------------------------------------------------------
# CONCEPTS
# ---------------------------------------------------------------------------
/id/concepts:
get:
tags: [Concepts]
summary: Paginated collection of the thesaurus
description: Returns a Hydra paginated collection of thesaurus concepts used to describe objects in the collection.
parameters:
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/itemsPerPage'
- $ref: '#/components/parameters/fullRecord'
- $ref: '#/components/parameters/modifiedSince'
- $ref: '#/components/parameters/searchQuery'
responses:
"200":
description: Successful response
headers:
Link:
schema:
type: string
content:
application/ld+json:
schema:
$ref: '#/components/schemas/HydraCollection'
"500":
description: Server error
/id/concept/{ConceptPID}:
get:
tags: [Concepts]
summary: Single concept record
description: Returns a single thesaurus concept as CIDOC-CRM + SKOS JSON-LD with multilingual labels, scope notes and hierarchy.
parameters:
- name: ConceptPID
in: path
required: true
description: Concept identifier
schema:
type: string
example: "530000049"
responses:
"200":
description: Concept found
headers:
ETag:
schema:
type: string
Last-Modified:
schema:
type: string
content:
application/ld+json:
schema:
type: object
"404":
description: Concept not found
"500":
description: Server error
head:
tags: [Concepts]
summary: Check if a concept exists
description: Lightweight existence check. Includes ETag and Last-Modified headers for cache validation.
parameters:
- name: ConceptPID
in: path
required: true
schema:
type: string
example: "530000049"
responses:
"200":
description: Concept exists
headers:
ETag:
schema:
type: string
Last-Modified:
schema:
type: string
"404":
description: Concept not found
"500":
description: Server error
# ---------------------------------------------------------------------------
# COLORS
# ---------------------------------------------------------------------------
/id/colors:
get:
tags: [Colors]
summary: Color index with weighted statistics
description: >
Returns all available base colors and CSS color names with weighted
distribution statistics across the collection. Supports ?onDisplay=true
to filter to collection presentation objects only.
parameters:
- $ref: '#/components/parameters/onDisplay'
responses:
"200":
description: Color index
content:
application/ld+json:
schema:
type: object
properties:
base_colors:
type: array
items:
type: object
properties:
value:
type: string
example: pink
object_count:
type: integer
example: 1243
collection_share_pct:
type: number
example: 8.4
avg_dominance_pct:
type: number
example: 22.1
filter:
type: string
format: uri
dominant:
type: string
format: uri
css_colors:
type: array
items:
type: object
properties:
value:
type: string
example: Old rose
object_count:
type: integer
example: 312
collection_share_pct:
type: number
example: 0.94
avg_dominance_pct:
type: number
example: 22.1
filter:
type: string
format: uri
dominant:
type: string
format: uri
"500":
description: Server error
/id/colors/dominant:
get:
tags: [Colors]
summary: Objects most dominant in a specific color
description: Returns objects sorted by the dominance percentage of a specific base color or CSS color name.
parameters:
- name: color
in: query
description: Base color to rank by
schema:
type: string
example: black
- name: cssColor
in: query
description: CSS color name to rank by
schema:
type: string
example: Old rose
- name: limit
in: query
description: Number of results (max 100)
schema:
type: integer
default: 20
maximum: 100
responses:
"200":
description: Dominant objects
content:
application/ld+json:
schema:
$ref: '#/components/schemas/HydraCollection'
"400":
description: Missing color or cssColor parameter
"500":
description: Server error
# ---------------------------------------------------------------------------
# DISCOVERY
# ---------------------------------------------------------------------------
/id/types:
get:
tags: [Discovery]
summary: Object type index
description: All object types in the collection with object counts and filter URLs. Supports ?onDisplay=true.
parameters:
- $ref: '#/components/parameters/onDisplay'
responses:
"200":
description: Type index
content:
application/ld+json:
schema:
$ref: '#/components/schemas/IndexCollection'
"500":
description: Server error
/id/materials:
get:
tags: [Discovery]
summary: Material index
description: All materials in the collection with object counts and filter URLs. Supports ?onDisplay=true.
parameters:
- $ref: '#/components/parameters/onDisplay'
responses:
"200":
description: Material index
content:
application/ld+json:
schema:
$ref: '#/components/schemas/IndexCollection'
"500":
description: Server error
/id/nationalities:
get:
tags: [Discovery]
summary: Nationality index
description: All nationalities in the agent records with agent counts and filter URLs.
responses:
"200":
description: Nationality index
content:
application/ld+json:
schema:
$ref: '#/components/schemas/IndexCollection'
"500":
description: Server error
/id/roles:
get:
tags: [Discovery]
summary: Agent role index
description: All roles agents play in the collection (designer, producer) with agent counts and filter URLs.
responses:
"200":
description: Role index
content:
application/ld+json:
schema:
$ref: '#/components/schemas/IndexCollection'
"500":
description: Server error
# ---------------------------------------------------------------------------
# PRIVATE
# ---------------------------------------------------------------------------
/id/private/objects:
get:
tags: [Private]
summary: Authenticated private objects stream
description: >
Returns the full private collection stream. Requires a valid API key
passed as ?apiKey= or x-api-key header. Supports all the same filters
as the public objects endpoint.
security:
- ApiKeyAuth: []
- ApiKeyHeader: []
parameters:
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/itemsPerPage'
- $ref: '#/components/parameters/fullRecord'
- $ref: '#/components/parameters/modifiedSince'
- $ref: '#/components/parameters/searchQuery'
- $ref: '#/components/parameters/onDisplay'
- name: hasImages
in: query
schema:
type: boolean
default: false
- name: colors
in: query
schema:
type: boolean
default: false
- name: color
in: query
schema:
type: string
example: pink
- name: cssColor
in: query
schema:
type: string
example: Old rose
- name: type
in: query
schema:
type: string
example: vaas
- name: material
in: query
schema:
type: string
example: glas (materiaal)
- name: hasParts
in: query
schema:
type: boolean
default: false
- name: isPartOf
in: query
schema:
type: boolean
default: false
- name: hasColors
in: query
schema:
type: boolean
default: false
responses:
"200":
description: Successful response
content:
application/ld+json:
schema:
$ref: '#/components/schemas/HydraCollection'
"401":
description: Missing or invalid API key
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
"500":
description: Server error
# ---------------------------------------------------------------------------
# DCAT
# ---------------------------------------------------------------------------
/:
get:
tags: [DCAT]
summary: DCAT data catalog
description: Machine-readable DCAT catalog describing all available datasets.
responses:
"200":
description: DCAT catalog
content:
application/ld+json:
schema:
type: object
/dcat:
get:
tags: [DCAT]
summary: DCAT data catalog (alias)
description: Alias for GET /v2/. Returns identical response.
responses:
"200":
description: DCAT catalog
content:
application/ld+json:
schema:
type: object