forked from IPIF/prosopogrAPhI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
prosopogrAPhI.yaml
1073 lines (1064 loc) · 40.6 KB
/
prosopogrAPhI.yaml
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
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.2
info:
version: 0.3.1
title: prosopogrAPhI
description: basic prosopographical data API
license:
name: CC-BY-SA 4.0
url: 'https://creativecommons.org/licenses/by-sa/4.0/'
contact:
name: Georg Vogeler
email: [email protected]
paths:
/factoids:
get:
summary: Returns array of factoids
description: Returns an array of `Factoid` objects. The number of array members returned with each response is restricted by the **size** parameter. Factoids can be filtered by setting additional parameters like **personId** or **p**. Factoids are sorted by default by date of creation time.
operationId: getFactoids
parameters:
- $ref: '#/components/parameters/size'
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/personId'
- $ref: '#/components/parameters/p'
- $ref: '#/components/parameters/statementId'
- $ref: '#/components/parameters/st'
- $ref: '#/components/parameters/sourceId'
- $ref: '#/components/parameters/s'
- $ref: '#/components/parameters/f'
- $ref: '#/components/parameters/statementContent'
- $ref: '#/components/parameters/relatesToPerson'
- $ref: '#/components/parameters/memberOf'
- $ref: '#/components/parameters/role'
- $ref: '#/components/parameters/name'
- $ref: '#/components/parameters/from'
- $ref: '#/components/parameters/to'
- $ref: '#/components/parameters/place'
- $ref: '#/components/parameters/sortBy'
responses:
'200':
description: A list of Factoids with some metadata
content:
application/json:
schema:
$ref: '#/components/schemas/FactoidsResponse'
'400':
$ref: '#/components/responses/BadRequestError'
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
post:
summary: 'creates a factoid. No Factoid can be created without references to a person, a source, and at least one statement'
operationId: createFactoid
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Factoid'
description: the factoid data
responses:
'201':
description: factoid created
'400':
description: factoid could not be created or updated
'403':
description: Forbidden. Missing token or user is not allowed to create persons.
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
'501':
$ref: '#/components/responses/NotImplementedError'
'/factoids/{id}':
get:
summary: 'Returns factoid with id {id}'
operationId: getFactoidById
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
description: a factoid
content:
application/json:
schema:
$ref: '#/components/schemas/Factoid'
'404':
description: the factoid does not exist
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
put:
summary: 'updates the factoid with the {id}'
operationId: updateFactoid
parameters:
- $ref: '#/components/parameters/id'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Factoid'
responses:
'201':
description: factoid updated
'400':
description: factoid could not be updated or created. TODO should return reason as message
'403':
description: Forbidden. Missing token or user is not allowed to create persons.
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
'501':
$ref: '#/components/responses/NotImplementedError'
delete:
summary: delete the factoid with id {id}
operationId: deleteFactoid
parameters:
- $ref: '#/components/parameters/id'
responses:
'204':
description: Factoid has been deleted successfully
'403':
description: Missing token or user is not allowed to delete this factoid
'404':
description: Factoid not found
'409':
description: 'Conflict: Factoid cannot be deleted eg. because of referential integrity. Reason should be given as error response detail'
'501':
$ref: '#/components/responses/NotImplementedError'
/persons:
get:
summary: Get persons
description: Returns array of `Person` objects. The number of array members returned with each response is restricted by the **size** parameter. Persons can be filtered by setting additional parameters like **factoidId** or **f**. TODO Further parameters for filtering have to be specified.
operationId: getPersons
parameters:
- $ref: '#/components/parameters/size'
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/sortBy'
- $ref: '#/components/parameters/p'
- $ref: '#/components/parameters/factoidId'
- $ref: '#/components/parameters/f'
- $ref: '#/components/parameters/statementId'
- $ref: '#/components/parameters/st'
- $ref: '#/components/parameters/sourceId'
- $ref: '#/components/parameters/s'
- $ref: '#/components/parameters/statementContent'
- $ref: '#/components/parameters/relatesToPerson'
- $ref: '#/components/parameters/memberOf'
- $ref: '#/components/parameters/role'
- $ref: '#/components/parameters/name'
- $ref: '#/components/parameters/from'
- $ref: '#/components/parameters/to'
- $ref: '#/components/parameters/place'
responses:
'200':
description: Successfull response
content:
application/json:
schema:
$ref: '#/components/schemas/PersonsResponse'
'400':
$ref: '#/components/responses/BadRequestError'
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
post:
summary: Add a new person
operationId: createPerson
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Person'
responses:
'201':
description: Person created
headers:
Location:
description: the uri of the created person
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Person'
'400':
$ref: '#/components/responses/BadRequestError'
'403':
description: Forbidden. Missing token or user is not allowed to create persons.
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
'501':
$ref: '#/components/responses/NotImplementedError'
'/persons/{id}':
get:
summary: 'Returns person with id {id}'
operationId: getPersonById
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
description: a person object
content:
application/json:
schema:
$ref: '#/components/schemas/Person'
'404':
description: the person does not exist
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
put:
summary: 'Updates the person with the {id}'
operationId: updatePerson
parameters:
- $ref: '#/components/parameters/id'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/Person'
description: the person data
responses:
'201':
description: person updated
'400':
description: person could not be updated or created. TODO should return reason as message
'403':
description: Forbidden. Missing token or user is not allowed to create persons.
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
'501':
$ref: '#/components/responses/NotImplementedError'
delete:
summary: delete the person with id {id}
operationId: deletePerson
parameters:
- $ref: '#/components/parameters/id'
responses:
'204':
description: Person has been deleted successfully
'403':
description: Missing token or user is not allowed to delete this person
'404':
description: Person not found
'409':
description: 'Conflict: Person cannot be deleted eg. because of referential integrity. Reason should be given as error response detail'
'501':
$ref: '#/components/responses/NotImplementedError'
/sources:
get:
summary: Returns array of source objects.
description: Returns array of `source` objects. The number of array members returned with each response is restricted by the **size** parameter. Sources can be filtered by setting additional parameters like **factoidId** or **f**. TODO Further parameters for filtering have to be specified.
operationId: getSources
parameters:
- $ref: '#/components/parameters/size'
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/sortBy'
- $ref: '#/components/parameters/personId'
- $ref: '#/components/parameters/p'
- $ref: '#/components/parameters/factoidId'
- $ref: '#/components/parameters/f'
- $ref: '#/components/parameters/st'
- $ref: '#/components/parameters/statementContent'
- $ref: '#/components/parameters/relatesToPerson'
- $ref: '#/components/parameters/memberOf'
- $ref: '#/components/parameters/role'
- $ref: '#/components/parameters/name'
- $ref: '#/components/parameters/from'
- $ref: '#/components/parameters/to'
- $ref: '#/components/parameters/place'
responses:
'200':
description: Successfull response
content:
application/json:
schema:
$ref: '#/components/schemas/SourcesResponse'
'400':
$ref: '#/components/responses/BadRequestError'
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
post:
summary: Add a new source
operationId: createSource
requestBody:
$ref: '#/components/requestBodies/Source'
responses:
'201':
description: Source created
headers:
Location:
description: the uri of the created source
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/Source'
'400':
$ref: '#/components/responses/BadRequestError'
'403':
description: Forbidden. Missing token or user is not allowed to create persons.
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
'501':
$ref: '#/components/responses/NotImplementedError'
'/sources/{id}':
get:
summary: 'Returns source with id {id}'
operationId: getSourceById
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
description: a source object
content:
application/json:
schema:
$ref: '#/components/schemas/Source'
'404':
description: the source does not exist
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
put:
summary: 'updates the source with the {id}'
operationId: updateSource
parameters:
- name: id
in: path
required: true
schema:
type: string
requestBody:
$ref: '#/components/requestBodies/Source'
responses:
'201':
description: source updated
'400':
description: source could not be updated or created. TODO should return reason as message
'403':
description: Forbidden. Missing token or user is not allowed to create sources.
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
'501':
$ref: '#/components/responses/NotImplementedError'
delete:
summary: delete the source with id {id}
operationId: deleteSource
parameters:
- $ref: '#/components/parameters/id'
responses:
'204':
description: Source has been deleted successfully
'403':
description: Missing token or user is not allowed to delete this source
'404':
description: Source not found
'409':
description: 'Conflict: Source cannot be deleted eg. because of
referential integrity. Reason should be given as error response detail'
'501':
$ref: '#/components/responses/NotImplementedError'
/statements:
get:
summary: Returns array of statement objects
description: Returns array of `Statement` objects. The number of array members returned with each response is restricted by the **size** parameter. Statements can be filtered by setting additional parameters like **factoidId** or **f**. TODO Further parameters for filtering have to be specified.
operationId: getStatements
parameters:
- $ref: '#/components/parameters/size'
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/sortBy'
- $ref: '#/components/parameters/personId'
- $ref: '#/components/parameters/factoidId'
- $ref: '#/components/parameters/f'
- $ref: '#/components/parameters/sourceId'
- $ref: '#/components/parameters/st'
- $ref: '#/components/parameters/p'
- $ref: '#/components/parameters/statementContent'
- $ref: '#/components/parameters/relatesToPerson'
- $ref: '#/components/parameters/memberOf'
- $ref: '#/components/parameters/role'
- $ref: '#/components/parameters/name'
- $ref: '#/components/parameters/from'
- $ref: '#/components/parameters/to'
- $ref: '#/components/parameters/place'
responses:
'200':
description: Successfull response
content:
application/json:
schema:
$ref: '#/components/schemas/StatementsResponse'
'400':
$ref: '#/components/responses/BadRequestError'
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
'/statements/{id}':
get:
summary: 'Return statement with id {id}'
operationId: getStatementById
parameters:
- $ref: '#/components/parameters/id'
responses:
'200':
description: a statement object
content:
application/json:
schema:
$ref: '#/components/schemas/Statement'
'404':
description: the statement does not exist
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
/describe:
get:
description: Gives basic information about the service and the implementation of API
operationId: getDescription
responses:
'200':
description: basic information about the service and the implementation of the API
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceDescription'
'500':
$ref: '#/components/responses/Standard500ErrorResponse'
servers:
- url: 'https://localhost/api'
- url: 'http://localhost/api'
components:
parameters:
size:
name: size
in: query
description: sets the number of objects returned per page.
schema:
type: integer
default: 30
page:
name: page
in: query
description: 'Sets the page number of returned objects. If size is set to 10 and page is set to 2, the objects 11-20 will be returned.'
schema:
type: integer
default: 1
id:
name: id
in: path
required: true
description: 'can be either the local id, or an uri representing the same resource as stored in `uris`'
schema:
type: string
sortBy:
# TODO: this must be more precise: allowed values per endpoint
# TODO: how to address properties not on level 0?
name: sortBy
in: query
description: 'defines the sort order of the requested resource, can contain all properties of the resource searched. The closing keywords ''ASC'' and ''DESC'' describe the sort order as ''ASCending'' and ''DESCending''. In case the property is a list of values, use the first item.'
schema:
type: string
default: createdWhen
personId:
name: personId
in: query
description: filter by person id
schema:
type: string
p:
name: p
in: query
description: filter by applying a pattern on persons (fulltext search)
schema:
type: string
statementId:
name: statementId
in: query
description: filter by statement id
schema:
type: string
st:
name: st
in: query
description: filter by applying a pattern on statements (fulltext search)
schema:
type: string
sourceId:
name: sourceId
in: query
description: filter by source id
schema:
type: string
s:
name: s
in: query
description: filter by applying a pattern on sources (fulltext search)
schema:
type: string
f:
name: f
in: query
description: filter by applying a pattern on factoid (fulltext search)
schema:
type: string
factoidId:
name: factoidId
in: query
description: filter by factoid id
schema:
type: string
statementContent:
name: statementContent
in: query
description: filter by any keyword occurring in the statement content
schema:
type: string
role:
name: role
in: query
description: could be URI or label
schema:
type: string
from:
name: from
in: query
description: 'all dates after the event date (including the event date) will be included. If `from` and `to` are the same, only a single exact date is included. Fragments (yyyy, yyyy-mm) will be interpreted as exact time ranges if the second parameter is missing (`from=yyyy-mm` is interpreted as `from=start of month`, `to=end of month`. If conflicting data is present, for example ``from=yyyy&to=yyyy-mm-dd`, the most correct interpretation will be decided on by the backend. For instance, the example before will be interpreted as `from=yyyy-01-01&to=yyyy-mm-dd`.'
schema:
type: string
to:
name: to
in: query
description: 'all dates before the event date (including the event date) will be included. If `from` and `to` are the same, only a single exact date is included. Fragments (yyyy, yyyy-mm) will be interpreted as exact time ranges if the second parameter is missing (`from=yyyy-mm` is interpreted as `from=start of month`, `to=end of month`. If conflicting data is present, for example ``from=yyyy&to=yyyy-mm-dd`, the most correct interpretation will be decided on by the backend. For instance, the example before will be interpreted as `from=yyyy-01-01&to=yyyy-mm-dd`.'
schema:
type: string
place:
name: place
in: query
description: could be URI or label
schema:
type: string
relatesToPerson:
name: relatesToPerson
in: query
description: could be URI or label
schema:
type: string
memberOf:
name: memberOf
in: query
description: could be URI or label
schema:
type: string
name:
name: name
in: query
description: names of a person
schema:
type: string
createdBefore:
name: createdBefore
description: sets terminus antequem for filtering by createdWhen
in: query
schema:
type: string
createdAfter:
name: createdAfter
description: sets terminus postquem for filtering by createdWhen
in: query
schema:
type: string
createdBy:
name: createdBy
in: query
description: Filters by full text search in the description of the user responsbile for the creation of the object. A group of persons is represented by a comma seperated list.
schema:
type: string
modifiedBefore:
name: createdBefore
in: query
schema:
type: string
modifiedAfter:
name: createdAfter
in: query
schema:
type: string
modifiedBy:
name: createdBy
in: query
description: Filters by full text search in the description of the user responsbile for a modification of the object. A group of persons is represented by a comma seperated list.
schema:
type: string
responses:
BadRequestError:
description: Bad request. Caused by unknown parameters or illegal parameter values
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Standard500ErrorResponse:
description: An unexpected error occurred.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotImplementedError:
description: Functionality not implemented. Some implementations will only support read operations. For any data modifying request they must return a 501 response.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
requestBodies:
Source:
content:
application/json:
schema:
$ref: '#/components/schemas/Source'
description: the source data
Statement:
content:
application/json:
schema:
$ref: '#/components/schemas/Statement'
schemas:
Factoid:
description: A Factoid is a composite of one or more statements about a person extracted by somebody from a source at a specific time.
type: object
required:
- '@id'
- person
- source
- statement
- createdBy
- createdWhen
properties:
'@id':
$ref: '#/components/schemas/id'
person:
$ref: '#/components/schemas/Person'
statement:
$ref: '#/components/schemas/Statement'
source:
$ref: '#/components/schemas/Source'
createdBy:
$ref: '#/components/schemas/createdBy'
createdWhen:
$ref: '#/components/schemas/createdWhen'
modifiedBy:
$ref: '#/components/schemas/modifiedBy'
modifiedWhen:
$ref: '#/components/schemas/modifiedWhen'
derivedFrom:
description: references the URI of a factoid on which this factoid is based.
type: string
format: uri
example:
fulltext-statement:
'@id': TW_Pez1_809_1
person:
'@id': Andreas_Reuter
statement:
'@id': Pez1_809_1
statementContent: 'Andreas Reuter (ca. 1648 Kremsmünster – 1715 Gleink) war Konventuale von Gleink. Er war Doktor der Theologie, apostolischer Protonotar und wirkte in Gleink als Ökonom sowie insgesamt 22 Jahre lang als Prior. Als solcher begegnet er 1708 als Unterzeichner der Rotel auf Abt Rupert von Kimpflern und 1710 in seinem Brief an Bernhard Pez.'
source: PezNachlassVol1
createdBy: Thomas Wallnig
createdWhen: 2010-05-05T00:00:00.000Z
modifiedBy: Thomas Wallnig
modifiedWhen: 2010-05-05T00:00:00.000Z
fulltext-citation:
'@id': TW_Pez1_123456
person:
'@id': Placidus_Seiz
statement:
'@id': 'Pez#474-7,'
statementContent: '... , quam accepturum me spero a reverendissimo domino abbate Ettalensi ...'
source: 'Pez#474'
createdBy: Thomas Wallnig
createdWhen: 2007-04-16T00:00:00.000Z
modifiedBy: Thomas Wallnig
modifiedWhen: 2007-04-16T00:00:00.000Z
structured-name:
'@id': TW_Pez1_123456
person:
'@id': Placidus_Seiz
uris: 'http://pez-digital.at/placidus_Seiz'
statement:
'@id': person1241
name: Placidus Seitz
source: Lindner-Album_Ettalense253f.
createdBy: Thomas Wallnig
createdWhen: 2007-04-16T00:00:00.000Z
modifiedBy: Thomas Wallnig
modifiedWhen: 2007-07-01T00:00:00.000Z
structured-event:
'@id': Fd2qwr
person:
'@id': Andreas_Reuter
statement:
'@id': Fd2qwr
date:
sortdate: 1648-06-15T00:00:00.000Z
label: ca. 1648
statementType:
- label: "Geburt"
- uri: "http://www.cidoc-crm.org/cidoc-crm/#E67_Birth"
places:
- label: Kremsmünster
source: PezNachlassVol1
createdBy: Thomas Wallnig
createdWhen: 2010-05-05T00:00:00.000Z
modifiedBy: Thomas Wallnig
modifiedWhen: 2010-05-05T00:00:00.000Z
FactoidsResponse:
type: object
description: Schema of the response of /factoids
properties:
protocol:
$ref: '#/components/schemas/Protocol'
factoids:
type: array
items:
$ref: '#/components/schemas/Factoid'
example:
- protocol:
- size: 30
- totalHits: 1234
- page: 2
- factoids:
- '@id': TW_Pez1_809_1
person:
'@id': Andreas_Reuter
statement:
'@id': Pez1_809_1
statementContent: 'Andreas Reuter (ca. 1648 Kremsmünster – 1715 Gleink) war Konventuale von Gleink. Er war Doktor der Theologie, apostolischer Protonotar und wirkte in Gleink als Ökonom sowie insgesamt 22 Jahre lang als Prior. Als solcher begegnet er 1708 als Unterzeichner der Rotel auf Abt Rupert von Kimpflern und 1710 in seinem Brief an Bernhard Pez.'
source: PezNachlassVol1
createdBy: Thomas Wallnig
createdWhen: 2010-05-05T00:00:00.000Z
modifiedBy: Thomas Wallnig
modifiedWhen: 2010-05-05T00:00:00.000Z
- '@id': TW_Pez1_123456
person:
'@id': Placidus_Seiz
statement:
'@id': 'Pez#474-7,'
statementContent: '... , quam accepturum me spero a reverendissimo domino abbate Ettalensi ...'
source: 'Pez#474'
createdBy: Thomas Wallnig
createdWhen: 2007-04-16T00:00:00.000Z
modifiedBy: Thomas Wallnig
modifiedWhen: 2007-04-16T00:00:00.000Z
- '@id': TW_Pez1_123456
person:
'@id': Placidus_Seiz
statement:
'@id': person1241
name: Placidus Seitz
uris:
- 'http://pez-digital.at/placidus_Seiz'
source: Lindner-Album_Ettalense253f.
createdBy: Thomas Wallnig
createdWhen: 2007-04-16T00:00:00.000Z
modifiedBy: Thomas Wallnig
modifiedWhen: 2007-07-01T00:00:00.000Z
Person:
type: object
description: 'A Person is an abstract entity representing a human individual (fictional or historical) independet from their cultural desciption by name, status, social relationsships etc. It has therefore only formal identifiers as properties.'
required:
- '@id'
properties:
'@id':
$ref: '#/components/schemas/id'
uris:
$ref: '#/components/schemas/uris'
createdBy:
$ref: '#/components/schemas/createdBy'
createdWhen:
$ref: '#/components/schemas/createdWhen'
modifiedBy:
$ref: '#/components/schemas/modifiedBy'
modifiedWhen:
$ref: '#/components/schemas/modifiedWhen'
example:
- '@id': Andreas_Reuter
- uris:
- 'http://pez-digital.at/persons#Mauro_Aspini'
- '@id': Placidus_Seiz
uris:
- 'http://d-nb.info/gnd/10102407X'
- 'https://viaf.org/viaf/5285530/'
PersonsResponse:
type: object
description: Schema of the response of /persons
properties:
protocol:
$ref: '#/components/schemas/Protocol'
persons:
type: array
items:
$ref: '#/components/schemas/Person'
example:
- protocol:
- size: 30
- totalHits: 12345
- page: 2
- persons:
- '@id': Andreas_Reuter
- uris:
- http://pez-digital.at/persons#Mauro_Aspini
- '@id': Placidus_Seiz
uris:
- 'http://d-nb.info/gnd/10102407X'
- 'https://viaf.org/viaf/5285530/'
Statement:
type: object
description: The statement object gives human and machine readable information on the person(s) listed in the factoid.
required:
- '@id'
properties:
'@id':
$ref: '#/components/schemas/id'
uris:
$ref: '#/components/schemas/uris'
statementType:
type: object
description: 'in context of structured information (with places, relationships, etc.) this property gives the type of event, relationship etc. connecting the other properties'
properties:
uri:
type: string
format: uri
description: 'A fully dereferencably URI, which could be an endpoint to RESTful API for the applied taxonomy'
label:
type: string
description: descriptive text. We can imagine this to be a term from a controlled vocabulary or a short type name.
name:
type: string
description: any verbal identification of a person
role:
type: object
description: describes the role of the person in the statement. If empty it is considered generically as 'participates in something which could be an event'
properties:
uri:
type: string
format: uri
description: 'A fully dereferencably URI, which could be an endpoint to RESTful API for the applied taxonomy'
label:
type: string
description: descriptive text of the role of the person in the statement.
date:
type: object
description: 'The temporal allocation of the statement: To which time frame the statement on the person applies?'
properties:
sortdate:
type: string
format: date
description: 'Formal version of the date following W3C recommendations. This date is not expected to represent the full range of possible dating. Use the label property to describe the date in more detail dates by century, by year, time ranges, date not before/not after, and similar.'
label:
type: string
description: 'verbal version of the date, which should enable the human reader to get an idea of the chronological concept.'
places:
description: 'describes the geographical information of the statement, e.g. the place where an event happened, the geographic coverage of a social role etc.'
type: array
items:
type: object
properties:
uri:
type: string
format: uri
description: 'reference to geo-referenceable object (e.g. single place), preferably an endpoint of an RESTful API serving coordinates of a single place or a polygon together with information on projection used.'
label:
type: string
description: 'verbal reference to geo-referenceable object, e.g. name of a city, name of an area.'
relatesToPersons:
description: relationships of the person on which the statement is made to other persons.
type: array
items:
type: object
properties:
uri:
type: string
format: uri
description: 'reference to a machine readably object on a person, preferably an endpoint following the definitions of this API.'
label:
type: string
description: 'a human readable description of the person to which the statement relates the persons referenced in the factoid, e.g. the name of the person'
memberOf:
type: object
description: relationship of the person on which the statement is made to institutions or groups of persons identifiable.
properties:
uri:
type: string
format: uri
label:
type: string
description: a human readable description of the group/institution to which the statement relates the persons referenced in the factoid
statementContent:
type: string
description: 'describes the statement in more detail, usually quotes from source or descriptive prose including the wording from the source or a short biogram.'
createdBy:
$ref: '#/components/schemas/createdBy'
createdWhen:
$ref: '#/components/schemas/createdWhen'
modifiedBy:
$ref: '#/components/schemas/modifiedBy'
modifiedWhen:
$ref: '#/components/schemas/modifiedWhen'
StatementsResponse:
type: object
description: Schema of the response of /statements
properties:
protocol:
$ref: '#/components/schemas/Protocol'
statements:
type: array
items:
$ref: '#/components/schemas/Statement'
example:
- protocol:
- size: 30
- totalHits: 1234
- page: 2
- statements:
- '@id': st1
- ...
- '@id': st2
- ...
Protocol:
type: object
description: Provides metadata about the current request
properties:
size:
type: integer
description: Number of objects returned per page
page:
type: integer
description: 'Number of result page (first page, second page etc.)'
totalHits:
type: integer
description: Total number of objects found by this request
Source:
type: object
required:
- '@id'
properties:
'@id':
$ref: '#/components/schemas/id'
label:
description: 'A human readable description of the source of information for the factoid, e.g. a bibliographic reference, an archival shelfmark etc.'
type: string
uris:
$ref: '#/components/schemas/uris'
createdBy:
$ref: '#/components/schemas/createdBy'
createdWhen:
$ref: '#/components/schemas/createdWhen'
modifiedBy:
$ref: '#/components/schemas/modifiedBy'
modifiedWhen:
$ref: '#/components/schemas/modifiedWhen'
example:
- '@id': PezNachlassVol1
uris:
- 'https://e-book.fwf.ac.at/o:370'
metadata: 'Die gelehrte Korrespondenz der Brüder Pez, Text, Regesten, Kommentare; Band 1: 1709–1715, bearb. v. Thomas Wallnig u. Thomas Stockinger, Wien u. Köln: Böhlau, 2010'
- '@id': 'Pez#474'
metadata: 'Melk, Stiftsarchiv, Kt. 07 Patres 07, II, 673r-675v'
- '@id': Lindner-Album_Ettalense253f.
metadata: 'Lindner: Album Ettalense, S. 253f.'
SourcesResponse:
type: object
description: Schema of the response of /sources
properties:
protocol:
$ref: '#/components/schemas/Protocol'
data:
type: array
items:
$ref: '#/components/schemas/Source'
example:
- protocol:
- size: 30
- totalHits: 1234
- page: 2
- sources:
- '@id': source 1
- ...
- '@id': source 2
ServiceDescription:
type: object
description: describes the service providing the API
required:
- complianceLevel
properties:
description:
description: A verbal description of the collection of factoids provided by the service
type: string
provider:
description: information on the service provider
type: string
contact:
description: 'address of a contact point (e-mail, phone etc.)'
type: string
complianceLevel:
type: number
description: |
defines the compliance level supported by the server. This is a numeric value between 0 and 2 which indicates the functionality provided by the service.
*Compliance level 0* is the most minimalistic implementation. It only supports ``GET`` requests and a restricted set of filter parameters: ``f=``, ``p=``, ``s=``, ``st=`` are not allowed and result in a ``400 Bad Request`` response as POST and PUT requests do.