-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvoxb.xsd
865 lines (865 loc) · 32.3 KB
/
voxb.xsd
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2011 (http://www.altova.com) by Dansk Bibliotekscenter A/S (Dansk Bibliotekscenter A/S) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:voxb="http://oss.dbc.dk/ns/voxb" targetNamespace="http://oss.dbc.dk/ns/voxb" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:annotation>
<xs:documentation xml:lang="en">XML schema for VoxB previous known as BSD</xs:documentation>
</xs:annotation>
<xs:element name="createUserRequest">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:userAlias"/>
<xs:element ref="voxb:authenticationFingerprint"/>
<xs:element ref="voxb:callback" minOccurs="0"/>
<xs:element ref="voxb:outputType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="createUserResponse">
<xs:annotation>
<xs:documentation xml:lang="en">If on return userAlias, its OK, if userAliasSuggestion then the userAlias is already taken - otherwise it is an error.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:userAliasSuggestion"/>
<xs:element ref="voxb:error"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="updateUserRequest">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:institutionId"/>
<xs:element ref="voxb:userAlias"/>
<xs:element ref="voxb:callback" minOccurs="0"/>
<xs:element ref="voxb:outputType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="updateUserResponse">
<xs:complexType>
<xs:choice>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:error"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="deleteUserRequest">
<xs:annotation>
<xs:documentation xml:lang="en">Will also delete all of user's item</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:institutionId"/>
<xs:element ref="voxb:callback" minOccurs="0"/>
<xs:element ref="voxb:outputType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="deleteUserResponse">
<xs:complexType>
<xs:choice>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:error"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="undeleteUserRequest">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:institutionId"/>
<xs:element ref="voxb:callback" minOccurs="0"/>
<xs:element ref="voxb:outputType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="undeleteUserResponse">
<xs:complexType>
<xs:choice>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:error"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="fetchUserRequest">
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:userAlias">
<xs:annotation>
<xs:documentation xml:lang="en">Not yet implemented in fetchUserRequest</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="voxb:authenticationFingerprint"/>
</xs:choice>
<xs:element ref="voxb:callback" minOccurs="0"/>
<xs:element ref="voxb:outputType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="fetchUserResponse">
<xs:complexType>
<xs:choice>
<xs:element ref="voxb:users" maxOccurs="unbounded"/>
<xs:element ref="voxb:error"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="createMyDataRequest">
<xs:annotation>
<xs:documentation>the request used for creating new voxB-data. local and tags are repeatable, rating and review are not. If the rated/reviewed/tagged object is not part of the voxB database (identified by objectIdentifierValue/Type), it will be created.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:institutionId"/>
<xs:element ref="voxb:item"/>
<xs:element ref="voxb:object"/>
<xs:element ref="voxb:callback" minOccurs="0"/>
<xs:element ref="voxb:outputType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="createMyDataResponse">
<xs:complexType>
<xs:choice>
<xs:element ref="voxb:voxbIdentifier"/>
<xs:element ref="voxb:error"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="updateMyDataRequest">
<xs:annotation>
<xs:documentation xml:lang="en">Will over write earlier entries of the given type on the item</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:voxbIdentifier"/>
<xs:element ref="voxb:institutionId"/>
<xs:element ref="voxb:item"/>
<xs:element ref="voxb:object" minOccurs="0"/>
<xs:element ref="voxb:callback" minOccurs="0"/>
<xs:element ref="voxb:outputType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="updateMyDataResponse">
<xs:complexType>
<xs:choice>
<xs:element ref="voxb:voxbIdentifier"/>
<xs:element ref="voxb:error"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="deleteMyDataRequest">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:voxbIdentifier"/>
<xs:element ref="voxb:institutionId"/>
<xs:element ref="voxb:item" minOccurs="0"/>
<xs:element ref="voxb:object" minOccurs="0"/>
<xs:element ref="voxb:callback" minOccurs="0"/>
<xs:element ref="voxb:outputType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="deleteMyDataResponse">
<xs:complexType>
<xs:choice>
<xs:element ref="voxb:voxbIdentifier"/>
<xs:element ref="voxb:error"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="undeleteMyDataRequest">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:voxbIdentifier"/>
<xs:element ref="voxb:institutionId"/>
<xs:element ref="voxb:callback" minOccurs="0"/>
<xs:element ref="voxb:outputType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="undeleteMyDataResponse">
<xs:complexType>
<xs:choice>
<xs:element ref="voxb:voxbIdentifier"/>
<xs:element ref="voxb:error"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="fetchMyDataRequest">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:callback" minOccurs="0"/>
<xs:element ref="voxb:outputType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="fetchMyDataResponse">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:userId"/>
<xs:choice>
<xs:element ref="voxb:result" maxOccurs="unbounded"/>
<xs:element ref="voxb:error"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="fetchDataRequest">
<xs:annotation>
<xs:documentation>retrieve user created data about one or more objects, using either an object identifier (FAUST, ISBN, LOCAL etc.) or a specific voxB item identifier.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:fetchData" maxOccurs="unbounded"/>
<xs:element ref="voxb:institutionId" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="voxb:output"/>
<xs:element ref="voxb:callback" minOccurs="0"/>
<xs:element ref="voxb:outputType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="fetchDataResponse">
<xs:complexType>
<xs:choice>
<xs:element ref="voxb:totalItemData" maxOccurs="unbounded"/>
<xs:element ref="voxb:error"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="searchDataRequest">
<xs:annotation>
<xs:documentation>Only limited search functionality implemented yet.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:searchString"/>
<xs:element ref="voxb:qualifier"/>
<xs:element ref="voxb:truncate" minOccurs="0"/>
<xs:element ref="voxb:moreSearch" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="voxb:callback" minOccurs="0"/>
<xs:element ref="voxb:outputType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="searchDataResponse">
<xs:complexType>
<xs:choice>
<xs:element ref="voxb:itemList"/>
<xs:element ref="voxb:error"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="reportOffensiveContentRequest">
<xs:annotation>
<xs:documentation xml:lang="en">userId is the reporting user. voxbIdentifier is the identifier of the item which contains the offending content</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:voxbIdentifier"/>
<xs:element ref="voxb:callback" minOccurs="0"/>
<xs:element ref="voxb:outputType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="reportOffensiveContentResponse">
<xs:annotation>
<xs:documentation xml:lang="en">Return userId is the id of the reporting user.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:error"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="aliasName" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">The name the user want to be represented by, when showing the "item" to other users.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="authenticationFingerprint">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:userIdentifierValue"/>
<xs:element ref="voxb:userIdentifierType"/>
<xs:element ref="voxb:identityProvider"/>
<xs:element ref="voxb:institutionId"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="averageRating" type="xs:float">
<xs:annotation>
<xs:documentation xml:lang="en">The average rating for this object.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="booleanOperator" type="voxb:booleanOperatorType">
<xs:annotation>
<xs:documentation xml:lang="en">There are only 3 boolean operators. AND, OR and NOT. They will be interpreted in the order of the sub-elements of the search element. Default: AND</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="callback" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">If outputType=json.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="contentType" type="voxb:contentTypeType">
<xs:annotation>
<xs:documentation xml:lang="en">Which output do you want: review, tags, summaryTags, rating, totalRatings or local?</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="error" type="voxb:errorType">
<xs:annotation>
<xs:documentation xml:lang="en">return info when an error occurs. The enumerations mentioned is only drafts. The list of errorCode's will be completed when the service is released.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="fetchData">
<xs:complexType>
<xs:choice>
<xs:sequence>
<xs:element ref="voxb:objectIdentifierValue"/>
<xs:element ref="voxb:objectIdentifierType"/>
</xs:sequence>
<xs:element ref="voxb:voxbIdentifier"/>
<xs:element ref="voxb:latestReviews"/>
<xs:element ref="voxb:highestRatedReviews"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="identityProvider" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">The name of the authentication provider. On the same institution you can have more than one way to log on to the system. To make sure to identify the user correct both IdentityProvider, UserIdentifier and userIdentifierType will be the same.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="institutionId" type="xs:integer">
<xs:annotation>
<xs:documentation xml:lang="en">Identifier of the institution where the user is logged on.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="item">
<xs:annotation>
<xs:documentation xml:lang="en">The actual data the user had put into the system.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:rating" minOccurs="0"/>
<xs:element ref="voxb:tags" minOccurs="0"/>
<xs:element ref="voxb:review" minOccurs="0"/>
<xs:element ref="voxb:local" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="itemList">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:voxbIdentifier" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="local">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:localData"/>
<xs:element ref="voxb:localType"/>
<xs:element ref="voxb:localItemType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="localData" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">Local data. The data will be UTF-8 encoded.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="localItemType" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">Here the local site can state what kind of data localData is. e.g. "Quotation", "Plus-text", "Minus-text", "Emotion" ...</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="localType" type="voxb:localTypeType">
<xs:annotation>
<xs:documentation xml:lang="en">Data can be of the types TXT or HTML.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="moreSearch">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:booleanOperator"/>
<xs:element ref="voxb:searchString"/>
<xs:element ref="voxb:qualifier"/>
<xs:element ref="voxb:truncate" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="numberOfRaters" type="xs:integer">
<xs:annotation>
<xs:documentation xml:lang="en">The number of users who had made the current rating.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="object">
<xs:annotation>
<xs:documentation xml:lang="en">the objectIdentifier is the identifier of the object reviewed, tagged or rated by the current item. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:objectContributors" minOccurs="0"/>
<xs:element ref="voxb:objectIdentifierValue"/>
<xs:element ref="voxb:objectIdentifierType"/>
<xs:element ref="voxb:objectMaterialType" minOccurs="0"/>
<xs:element ref="voxb:objectPublicationYear" minOccurs="0"/>
<xs:element ref="voxb:objectTitle" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="objectContributors" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">Contributor:Writer, Editor, Illustrator etc. If more than one contributor they should be separated by ";"</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="objectIdentifierType" type="voxb:objectIdentifierTypeType">
<xs:annotation>
<xs:documentation xml:lang="en">if objectIdentifierType == 'LOCAL' it's assumed that the objectIdentifier is concatenated by the local id-number of the library-database + the library-number.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="objectIdentifierValue">
<xs:annotation>
<xs:documentation xml:lang="en">ISBN, ISSN and FAUST is without spaces and hyphens. </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="64"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="objectMaterialType" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">Material type of the object</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="objectPublicationYear" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">Year of publication of the object</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="objectTitle">
<xs:annotation>
<xs:documentation xml:lang="en">The title of the object.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="256"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="output">
<xs:annotation>
<xs:documentation xml:lang="en">Specification of the output expected in the fetchResponse call.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:contentType" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Which output do you want: review, tags, summaryTags, rating, totalRatings or local?</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="voxb:outputForm" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="outputForm" type="voxb:outputFormType">
<xs:annotation>
<xs:documentation xml:lang="en">edition: the data from the edition is retrieved. work: the data from the hole work is retrieved.
Only edition will be possible in the first version of VoxB.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="outputType" type="voxb:outputTypeType">
<xs:annotation>
<xs:documentation xml:lang="en">E.g. xml, json or php. If not present outputType is soap.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="profileLink" type="xs:anyURI">
<xs:annotation>
<xs:documentation xml:lang="en">The URL to profile information about the user.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="qualifier" type="voxb:qualifierType">
<xs:annotation>
<xs:documentation xml:lang="en">The type of search string in question.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="rating">
<xs:annotation>
<xs:documentation xml:lang="en">A rating is an integer between 0 and 100. If 0 or empty means no rating. From 1 to 100 is the actual rating</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="100"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ratingSummary">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:rating"/>
<xs:element ref="voxb:numberOfRaters"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="result">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:voxbIdentifier"/>
<xs:element ref="voxb:timestamp"/>
<xs:element ref="voxb:timestampModified"/>
<xs:element ref="voxb:item"/>
<xs:element ref="voxb:object"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="review">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:reviewTitle" minOccurs="0"/>
<xs:element ref="voxb:reviewData"/>
<xs:element ref="voxb:reviewType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="reviewData" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">The review the user had generated. The data will be UTF-8 encoded.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="reviewTitle">
<xs:annotation>
<xs:documentation xml:lang="en">The title of the review</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="64"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="reviewType" type="voxb:reviewTypeType">
<xs:annotation>
<xs:documentation xml:lang="en">In this version review data can only be of the type "TXT".
Is it the intention that it later on will be extended to HTML as well.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="searchString" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">The string is in UTF-8 encoding. When used for search it will be converted to all lowercase characters.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="summaryTags">
<xs:annotation>
<xs:documentation xml:lang="en">Summary of each tag and number of time it has been assigned</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:tag"/>
<xs:element ref="voxb:tagCount"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="tag">
<xs:annotation>
<xs:documentation xml:lang="en">tag can only be in txt format. Maxlength = 32</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="32"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="tagCount" type="xs:integer">
<xs:annotation>
<xs:documentation xml:lang="en">Number of times a given tag has been assigned</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="tags">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:tag" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="timestamp" type="xs:dateTime">
<xs:annotation>
<xs:documentation xml:lang="en">The timestamp from the VOXB database. In RFC-3339 (ex. 2009-09-09T09:09:09+00:01)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="timestampModified" type="xs:dateTime">
<xs:annotation>
<xs:documentation xml:lang="en">The time from the VOXB database that an item has last been modified. In RFC-3339 (ex. 2009-09-09T09:09:09+00:01)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="totalItemData">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:fetchData"/>
<xs:element ref="voxb:summaryTags" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="voxb:totalRatings" minOccurs="0"/>
<xs:element ref="voxb:userItems" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="voxb:object" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="totalNumberOfRaters" type="xs:integer">
<xs:annotation>
<xs:documentation xml:lang="en">The total numbers of ratings this object has.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="totalRatings">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:averageRating"/>
<xs:element ref="voxb:totalNumberOfRaters"/>
<xs:element ref="voxb:ratingSummary" maxOccurs="101"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="truncate" type="voxb:truncateType">
<xs:annotation>
<xs:documentation xml:lang="en">Whether the searchText is a truncated text. NONE or the absense of this element means none truncation.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="userAlias">
<xs:annotation>
<xs:documentation xml:lang="en">userAlias will be unique in VOXB. In some rare cases 2 users can have the same userAlias. Please see "Brugerbegrebet i BSD" for more information.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:aliasName"/>
<xs:element ref="voxb:profileLink" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="userAliasSuggestion" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="en">The aliasName that the system suggesting in case the userAlias is already taken. The userAliasSuggestion is available, no other user has taken this alias, at the time the response is given.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="userId" type="xs:integer">
<xs:annotation>
<xs:documentation xml:lang="en">The internal identification number for a user in the BSD database.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="userIdentifierValue">
<xs:annotation>
<xs:documentation xml:lang="en">Normally the borrower-code at the library (LogonSystem). </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="64"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="userIdentifierType" type="voxb:userIdentifierTypeType">
<xs:annotation>
<xs:documentation xml:lang="en">CPR or local. This can be used when matching logins from different identityProviders.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="userItems">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:userAlias"/>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:voxbIdentifier"/>
<xs:element ref="voxb:rating" minOccurs="0"/>
<xs:element ref="voxb:tags" minOccurs="0"/>
<xs:element ref="voxb:review" minOccurs="0"/>
<xs:element ref="voxb:local" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="voxb:timestamp"/>
<xs:element ref="voxb:timestampModified"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="userProfile">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:userAlias"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="users">
<xs:complexType>
<xs:sequence>
<xs:element ref="voxb:userId"/>
<xs:element ref="voxb:userAlias"/>
<xs:element ref="voxb:authenticationFingerprint"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="voxbIdentifier" type="xs:integer">
<xs:annotation>
<xs:documentation xml:lang="en">The VOXB database unique number for a voxb item.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="latestReviews">
<xs:annotation>
<xs:documentation xml:lang="en">Fetches a list of latest reviews sorted by date, the number sets the length of the list.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="100"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="highestRatedReviews">
<xs:annotation>
<xs:documentation xml:lang="en">Fetches a list of highest rated reviews, the number sets the length of the list.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="100"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:simpleType name="booleanOperatorType">
<xs:restriction base="xs:string">
<xs:enumeration value="AND"/>
<xs:enumeration value="OR"/>
<xs:enumeration value="NOT"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="contentTypeType">
<xs:restriction base="xs:string">
<xs:enumeration value="review"/>
<xs:enumeration value="tags"/>
<xs:enumeration value="summaryTags"/>
<xs:enumeration value="rating"/>
<xs:enumeration value="totalRatings"/>
<xs:enumeration value="local"/>
<xs:enumeration value="object"/>
<xs:enumeration value="all"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="errorType">
<xs:restriction base="xs:string">
<xs:enumeration value="alias_already_taken"/>
<xs:enumeration value="authentication_error"/>
<xs:enumeration value="contentTypes missing."/>
<xs:enumeration value="Could not create data, userID did not exist."/>
<xs:enumeration value="Could not find object. Orphaned items should be deleted."/>
<xs:enumeration value="Could not locate user with given fingerprint"/>
<xs:enumeration value="Empty qualifier."/>
<xs:enumeration value="Empty searchstring."/>
<xs:enumeration value="Fingerprint not valid"/>
<xs:enumeration value="Found no item from given voxbIdentifier"/>
<xs:enumeration value="Invalid voxbIdentifier"/>
<xs:enumeration value="Item already exists."/>
<xs:enumeration value="item could not be deleted due to database error."/>
<xs:enumeration value="Item could not be undeleted due to database error."/>
<xs:enumeration value="Item does not exist."/>
<xs:enumeration value="LOCAL_id_not_found"/>
<xs:enumeration value="No objects found having given id."/>
<xs:enumeration value="No data found for user"/>
<xs:enumeration value="No user found with given id."/>
<xs:enumeration value="No user with given userId found"/>
<xs:enumeration value="No items found."/>
<xs:enumeration value="No fields to update"/>
<xs:enumeration value="No item with given voxbIdentifier"/>
<xs:enumeration value="Missing userId"/>
<xs:enumeration value="Missing voxbIdentifier"/>
<xs:enumeration value="Unknown error in database insertion."/>
<xs:enumeration value="Unknown error in updating."/>
<xs:enumeration value="Unknown qualifier."/>
<xs:enumeration value="unknown_voxbIdentifier"/>
<xs:enumeration value="User could not be deleted due to database error."/>
<xs:enumeration value="userID invalid. Must be an integer."/>
<xs:enumeration value="voxbIdentifier invalid. Must be an integer."/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="localTypeType">
<xs:restriction base="xs:string">
<xs:enumeration value="TXT"/>
<xs:enumeration value="HTML"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="objectIdentifierTypeType">
<xs:restriction base="xs:string">
<xs:enumeration value="EAN"/>
<xs:enumeration value="ISSN"/>
<xs:enumeration value="ISBN"/>
<xs:enumeration value="FAUST"/>
<xs:enumeration value="LOCAL"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="outputFormType">
<xs:restriction base="xs:string">
<xs:enumeration value="edition"/>
<xs:enumeration value="work"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="outputTypeType">
<xs:annotation>
<xs:documentation xml:lang="en">The types of output that can be returned by the service.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="xml"/>
<xs:enumeration value="json"/>
<xs:enumeration value="php"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="qualifierType">
<xs:restriction base="xs:string">
<xs:enumeration value="VOXB"/>
<xs:enumeration value="LOCAL"/>
<xs:enumeration value="EAN"/>
<xs:enumeration value="ISBN"/>
<xs:enumeration value="ISSN"/>
<xs:enumeration value="TAG"/>
<xs:enumeration value="TITLE">
<xs:annotation>
<xs:documentation xml:lang="en">Default truncation is both right and left</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="CONTRIBUTOR">
<xs:annotation>
<xs:documentation xml:lang="en">Default truncation is both right and left</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="TIMESTAMPMIN"/>
<xs:enumeration value="TIMESTAMPMAX"/>
<xs:enumeration value="TIMESTAMPMODIFIEDMIN"/>
<xs:enumeration value="TIMESTAMPMODIFIEDMAX"/>
<xs:enumeration value="USERID"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="reviewTypeType">
<xs:restriction base="xs:string">
<xs:enumeration value="TXT"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="truncateType">
<xs:restriction base="xs:string">
<xs:enumeration value="RIGHT"/>
<xs:enumeration value="LEFT"/>
<xs:enumeration value="BOTH"/>
<xs:enumeration value="NONE"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="userIdentifierTypeType">
<xs:restriction base="xs:string">
<xs:enumeration value="CPR"/>
<xs:enumeration value="local"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>