-
Notifications
You must be signed in to change notification settings - Fork 4
/
tva_mpeg7.xsd
1701 lines (1694 loc) · 61.7 KB
/
tva_mpeg7.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
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
<?xml version="1.0" encoding="UTF-8"?>
<!-- ********************************************************************************
This XML document was originally developed in the course of development of the ISO/IEC
15938 standard (MPEG-7). This XML document contains either a part of the MPEG-7 schema
implementation for one or more MPEG-7 tools as specified by the MPEG-7 Requirements or
MPEG-7 description examples conformant to the MPEG-7 schema.
ISO/IEC gives users of MPEG-7 free license to this XML document or modifications thereof
for use in hardware or software products claiming conformance to MPEG-7.
Those intending to use this XML document in hardware or software products are advised that
its use may infringe existing patents. The original developers of this XML document and his/her
company, the subsequent editors and their companies, and ISO/IEC have no liability for use of
this XML document or modifications thereof in an implementation.
Copyright is not released for non MPEG-7 conforming products. The organizations who
contributed to this XML document retain the full right to use the code for their own purpose,
assign or donate their contribution to a third party and inhibit third parties from using their
contribution for non MPEG-7 conforming products.
Copyright (c) 1999-2002 ISO/IEC.
This XML document is provided for informative purposes only. If any parts of this XML
document contradict the normative part of the corresponding standard document then the
normative part should be used as the definitive specification.
This notice must be included in all copies or derivative works.
************************************************************************************* -->
<schema targetNamespace="urn:tva:mpeg7:2008" xmlns:mpeg7="urn:tva:mpeg7:2008"
xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<annotation>
<documentation> This schema is composed of description tools in the MPEG-7 User Description
(UD) Profile that are used by ETSI TS 102 822-3-1 and ETSI TS 102 822-3-3 Metadata
Schemas. Constraints on these tools called for by the UD profile have been implemented
by removal of restricted elements and attributes. The UserActionType has been extended
in the ETSI TS 102 822-3-1 metadata schema. Constraints are indicated by embedded
comments. The schema is divided into three modules: Module 1 contains schema components
used both for content description and user description; Module 2 contains schema
components used for content description only; Module 3 contains schema components for
user description only and Module 4 contains datatypes only used by the ETSI TS 102
822-3-3 extended Metadata Schema. </documentation>
</annotation>
<import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="./xml.xsd"/>
<!-- #################################################################### -->
<annotation>
<documentation> MODULE 1. MPEG-7 SCHEMA COMPONENTS USED BY TVA BOTH FOR CONTENT DESCRIPTION
AND FOR USER DESCRIPTION </documentation>
</annotation>
<!-- #################################################################### -->
<annotation>
<documentation> 1A. GLOBAL ATTRIBUTE GROUPS USED BY TVA BOTH FOR CONTENT DESCRIPTION AND FOR
USER DESCRIPTION </documentation>
</annotation>
<!-- mediaTimePropertyGrp attribute group removed -->
<!-- Definition of referenceGrp attribute group (ISO/IEC 15938-5: 6.2.1) -->
<attributeGroup name="referenceGrp">
<attribute name="idref" type="IDREF" use="optional"/>
<!-- xpath attribute removed -->
<attribute name="href" type="anyURI" use="optional"/>
</attributeGroup>
<!-- Definition of timePropertyGrp attribute group (ISO/IEC 15938-5: 6.4.8) -->
<attributeGroup name="timePropertyGrp">
<attribute name="timeBase" type="mpeg7:xPathRefType" use="optional"/>
<attribute name="timeUnit" type="mpeg7:durationType" use="optional"/>
</attributeGroup>
<!-- #################################################################### -->
<annotation>
<documentation> 1B. SIMPLE TYPES USED BY TVA BOTH FOR CONTENT DESCRIPTION AND FOR USER
DESCRIPTION </documentation>
</annotation>
<!-- definition of basicDuration datatype (ISO/IEC 15938-2) -->
<simpleType name="basicDurationType">
<restriction base="string">
<pattern
value="\-?P(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?(\d+N)?(\d{2}f)?)?(\d+F)?((\-|\+)\d{2}:\d{2}Z)?"
/>
</restriction>
</simpleType>
<!-- definition of basicTimePoint datatype (ISO/IEC 15938-2) -->
<simpleType name="basicTimePointType">
<restriction base="string">
<pattern
value="\-?(\d+(\-\d{2}(\-\d{2})?)?)?(T\d{2}(:\d{2}(:\d{2}(:\d+(\.\d{2})?)?)?)?)?(F\d+)?((\-|\+)\d{2}:\d{2})?"
/>
</restriction>
</simpleType>
<!-- Definition of countryCode datatype (ISO/IEC 15938-5: 5.6.3) -->
<simpleType name="countryCode">
<restriction base="string">
<whiteSpace value="collapse"/>
<pattern value="[a-zA-Z]{2}"/>
</restriction>
</simpleType>
<!-- Definition of duration datatype (ISO/IEC 15938-5: 6.4.4) -->
<simpleType name="durationType">
<restriction base="mpeg7:basicDurationType">
<pattern
value="\-?P(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?(\d+N)?)?(\d+F)?((\-|\+)\d{2}:\d{2}Z)?"/>
</restriction>
</simpleType>
<!-- Definition of mediaDuration datatype (ISO/IEC 15938-5: 6.4.12) -->
<simpleType name="mediaDurationType">
<restriction base="mpeg7:basicDurationType">
<pattern value="\-?P(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?(\d+N)?)?(\d+F)?"/>
</restriction>
</simpleType>
<!-- Definition of mediaTimeOffset datatype (ISO/IEC 15938-5: 6.4.14) -->
<simpleType name="mediaTimeOffsetType">
<restriction base="mpeg7:basicDurationType">
<pattern value="\-?P(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?(\d+N)?)?(\d+F)?"/>
</restriction>
</simpleType>
<!-- Definition of mediaTimePoint datatype (ISO/IEC 15938-5: 6.4.11) -->
<simpleType name="mediaTimePointType">
<restriction base="mpeg7:basicTimePointType">
<pattern value="(\-?\d+(\-\d{2}(\-\d{2})?)?)?(T\d{2}(:\d{2}(:\d{2}(:\d+)?)?)?)?(F\d+)?"
/>
</restriction>
</simpleType>
<!-- Definition of mimeType datatype (ISO/IEC 15938-5: 5.6.2) -->
<simpleType name="mimeType">
<restriction base="string">
<whiteSpace value="collapse"/>
<pattern
value="[!--[\(\)<>@,;:\\"/\[\]\?=]]+/[!--[\(\)<>@,;:\\"/\[\]\?=]]+"
/>
</restriction>
</simpleType>
<!-- Definition of regionCode datatype (ISO/IEC 15938-5: 5.6.4) -->
<simpleType name="regionCode">
<restriction base="string">
<whiteSpace value="collapse"/>
<pattern value="[a-zA-Z]{2}(-[a-zA-Z0-9]{1,3})?"/>
</restriction>
</simpleType>
<!-- Definition of termReference datatype (ISO/IEC 15938-5: 7.3.6) -->
<simpleType name="termReferenceType">
<union>
<simpleType>
<restriction base="NMTOKEN">
<whiteSpace value="collapse"/>
<pattern value=":[^:]+:[^:]+"/>
</restriction>
</simpleType>
<simpleType>
<restriction base="anyURI"/>
</simpleType>
</union>
</simpleType>
<!-- Definition of termRelationQualifier datatype (ISO/IEC 15938-5) -->
<simpleType name="termRelationQualifierType">
<union>
<simpleType>
<restriction base="NMTOKEN">
<enumeration value="NT"/>
<enumeration value="BT"/>
<enumeration value="RT"/>
<enumeration value="US"/>
<enumeration value="UF"/>
</restriction>
</simpleType>
<simpleType>
<restriction base="mpeg7:termReferenceType"/>
</simpleType>
</union>
</simpleType>
<!-- Definition of timeOffsetType datatype (ISO/IEC 15938-5: 6.4.6) -->
<simpleType name="timeOffsetType">
<restriction base="mpeg7:basicDurationType">
<pattern
value="\-?P(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?(\d+N)?)?(\d+F)?((\-|\+)\d{2}:\d{2}Z)?"/>
</restriction>
</simpleType>
<!-- Definition of timePoint datatype (ISO/IEC 15938-5: 6.4.3) -->
<simpleType name="timePointType">
<restriction base="mpeg7:basicTimePointType">
<pattern
value="(\-?\d+(\-\d{2}(\-\d{2})?)?)?(T\d{2}(:\d{2}(:\d{2}(:\d+)?)?)?)?(F\d+)?((\-|\+)\d{2}:\d{2})?"
/>
</restriction>
</simpleType>
<!-- Definition of xPathAbsoluteSelector datatype (ISO/IEC 15938-5: 6.2.2) -->
<simpleType name="xPathAbsoluteSelectorType">
<restriction base="mpeg7:xPathSelectorType">
<pattern
value="(/|((//|/)(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*)(\|(/|((//|/)(((child::)?((\i\c*:)?(\i\c*|\*)))|\.))*))*"
/>
</restriction>
</simpleType>
<!-- Definition of xPathRef datatype (ISO/IEC 15938-5: 6.2.2) -->
<simpleType name="xPathRefType">
<restriction base="mpeg7:xPathType">
<pattern
value="/?((((child::)?((\i\c*:)?(\i\c*)(\[\d+\])?))|\.|(\.\.))/)*((((child::)?((\i\c*:)?(\i\c*)(\[\d+\])?))|\.)|((attribute::|@)((\i\c*:)?(\i\c*|\*))))"
/>
</restriction>
</simpleType>
<!-- Definition of xPathSelector datatype (ISO/IEC 15938-5: 6.2.2) -->
<simpleType name="xPathSelectorType">
<restriction base="mpeg7:xPathType">
<pattern
value="(/|((//|/)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.|\.\.)((//|/)(((child::)?((\i\c*:)?(\i\c*|\*)))|\.|\.\.))*))(\|/|((//|/)?(((child::)?((\i\c*:)?(\i\c*|\*)))|\.|\.\.)((//|/)(((child::)?((\i\c*:)?(\i\c*|\*)))|\.|\.\.))*))*"
/>
</restriction>
</simpleType>
<!-- Definition of xPath datatype (ISO/IEC 15938-5: 6.2.2) -->
<simpleType name="xPathType">
<restriction base="token"/>
</simpleType>
<!-- #################################################################### -->
<annotation>
<documentation> 1C. COMPLEX TYPES USED BY TVA BOTH FOR CONTENT DESCRIPTION AND FOR USER
DESCRIPTION </documentation>
</annotation>
<!-- Definition of ClassificationSchemeAlias datatype (ISO/IEC 15938-5: 7.3.7) -->
<complexType name="ClassificationSchemeAliasType">
<complexContent>
<extension base="mpeg7:HeaderType">
<attribute name="alias" type="NMTOKEN" use="required"/>
<attribute name="href" type="anyURI" use="required"/>
</extension>
</complexContent>
</complexType>
<!-- Definition of ClassificationSchemeBase DS (ISO/IEC 15938-5: 7.3.2) -->
<complexType name="ClassificationSchemeBaseType" abstract="true">
<complexContent>
<extension base="mpeg7:DSType">
<sequence>
<element name="Import" type="mpeg7:ReferenceType" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
<attribute name="uri" type="anyURI" use="required"/>
<attribute name="domain" use="optional">
<simpleType>
<list itemType="mpeg7:xPathAbsoluteSelectorType"/>
</simpleType>
</attribute>
</extension>
</complexContent>
</complexType>
<!-- Definition of ClassificationScheme DS (ISO/IEC 15938-5: 7.3.2) -->
<complexType name="ClassificationSchemeType">
<complexContent>
<extension base="mpeg7:ClassificationSchemeBaseType">
<sequence>
<element name="Term" type="mpeg7:TermDefinitionType" maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
<!-- Definition of ControlledTermUse datatype (ISO/IEC 15938-5: 7.3.5) -->
<complexType name="ControlledTermUseType">
<complexContent>
<extension base="mpeg7:InlineTermDefinitionType">
<attribute name="href" type="mpeg7:termReferenceType" use="required"/>
</extension>
</complexContent>
</complexType>
<!-- Definition of generic DS(ISO/IEC 15938-5) -->
<complexType name="DSType" abstract="true">
<complexContent>
<extension base="mpeg7:Mpeg7BaseType">
<sequence>
<!-- Header element removed -->
</sequence>
<attribute name="id" type="ID" use="optional"/>
<!-- timePropertyGrp attribute group removed -->
<attributeGroup ref="mpeg7:timePropertyGrp"/>
<!-- mediaTimePropertyGrp attribute group removed -->
</extension>
</complexContent>
</complexType>
<!-- Definition of generic D (ISO/IEC 15938-5) -->
<complexType name="DType" abstract="true">
<complexContent>
<extension base="mpeg7:Mpeg7BaseType"/>
</complexContent>
</complexType>
<!-- Definition of ExtendedLanguage datatype (ISO/IEC 15938-5) -->
<complexType name="ExtendedLanguageType">
<simpleContent>
<extension base="language">
<attribute name="type" use="optional" default="original">
<simpleType>
<restriction base="NMTOKEN">
<enumeration value="original"/>
<enumeration value="dubbed"/>
<enumeration value="background"/>
</restriction>
</simpleType>
</attribute>
<attribute name="supplemental" type="boolean" use="optional" default="false"/>
</extension>
</simpleContent>
</complexType>
<!-- Definition of Header datatype (ISO/IEC 15938-5: 4.2) -->
<complexType name="HeaderType" abstract="true">
<complexContent>
<extension base="mpeg7:Mpeg7BaseType">
<!-- id attribute removed -->
</extension>
</complexContent>
</complexType>
<!-- Definition of ImageLocator datatype (ISO/IEC 15938-5: 6.5.5) -->
<complexType name="ImageLocatorType">
<complexContent>
<extension base="mpeg7:MediaLocatorType">
<choice minOccurs="0">
<element name="MediaTimePoint" type="mpeg7:mediaTimePointType"/>
<!-- MediaRelTimePoint and MediaRelIncrTimePoint elements removed -->
<element name="BytePosition">
<complexType>
<attribute name="offset" type="nonNegativeInteger" use="required"/>
<attribute name="length" type="positiveInteger" use="optional"/>
</complexType>
</element>
</choice>
</extension>
</complexContent>
</complexType>
<!-- Definition of IncrDuration datatype (ISO/IEC 15938-5: 6.4.5) -->
<complexType name="IncrDurationType">
<simpleContent>
<extension base="integer">
<attribute name="timeUnit" type="mpeg7:durationType" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- Definition of InlineMedia datatype (ISO/IEC 15938-5: 6.5.3) -->
<complexType name="InlineMediaType">
<choice>
<element name="MediaData16" type="hexBinary"/>
<element name="MediaData64" type="base64Binary"/>
</choice>
<attribute name="type" type="mpeg7:mimeType" use="required"/>
</complexType>
<!-- Definition of InlineTermDefinition datatype (ISO/IEC 15938-5: 7.3.4) -->
<complexType name="InlineTermDefinitionType" abstract="true">
<sequence>
<element name="Name" minOccurs="0" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="mpeg7:TextualType">
<attribute name="preferred" type="boolean" use="optional"/>
</extension>
</simpleContent>
</complexType>
</element>
<element name="Definition" type="mpeg7:TextualType" minOccurs="0" maxOccurs="unbounded"/>
<!-- Term element removed -->
</sequence>
</complexType>
<!-- Definition of MediaIncrDuration datatype (ISO/IEC 15938-5: 6.4.13) -->
<complexType name="MediaIncrDurationType">
<simpleContent>
<extension base="integer">
<attribute name="mediaTimeUnit" type="mpeg7:mediaDurationType" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- Definition of MediaLocator datatype (ISO/IEC 15938-5: 6.5.2) -->
<complexType name="MediaLocatorType">
<sequence>
<choice minOccurs="0">
<element name="MediaUri" type="anyURI"/>
<element name="InlineMedia" type="mpeg7:InlineMediaType"/>
</choice>
<element name="StreamID" type="nonNegativeInteger" minOccurs="0"/>
</sequence>
</complexType>
<!-- Definition of MediaRelIncrTimePoint datatype (ISO/IEC 15938-5: 6.4.15) -->
<complexType name="MediaRelIncrTimePointType">
<simpleContent>
<extension base="integer">
<attribute name="mediaTimeUnit" type="mpeg7:mediaDurationType" use="optional"/>
<!-- mediaTimeBase attribute removed -->
</extension>
</simpleContent>
</complexType>
<!-- Definition of MediaRelTimePoint datatype (ISO/IEC 15938-5: 6.4.13) -->
<complexType name="MediaRelTimePointType">
<simpleContent>
<extension base="mpeg7:mediaTimeOffsetType">
<!-- mediaTimeBase attribute removed -->
</extension>
</simpleContent>
</complexType>
<!-- Definition of MediaTime datatype (ISO/IEC 15938-5: 6.4.10) -->
<complexType name="MediaTimeType">
<sequence>
<choice>
<element name="MediaTimePoint" type="mpeg7:mediaTimePointType"/>
<!-- MediaRelTimePoint and MediaRelIncrTimePoint elements removed -->
</choice>
<choice minOccurs="0">
<element name="MediaDuration" type="mpeg7:mediaDurationType"/>
<element name="MediaIncrDuration" type="mpeg7:MediaIncrDurationType"/>
</choice>
</sequence>
</complexType>
<!-- Definition of MPEG-7 base type (ISO/IEC 15938-5: 4.2) -->
<complexType name="Mpeg7BaseType" abstract="true">
<complexContent>
<restriction base="anyType"/>
</complexContent>
</complexType>
<!-- Definition of NameComponent datatype (ISO/IEC 15938-5: 7.4.6) -->
<complexType name="NameComponentType">
<simpleContent>
<extension base="mpeg7:TextualBaseType">
<attribute name="initial" type="string" use="optional"/>
<attribute name="abbrev" type="string" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- Definition of ParentalGuidance datatype (ISO/IEC 15938-5) -->
<complexType name="ParentalGuidanceType">
<sequence>
<choice>
<element name="ParentalRating" type="mpeg7:ControlledTermUseType"/>
<element name="MinimumAge" type="nonNegativeInteger"/>
</choice>
<element name="Region" type="mpeg7:regionCode" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
<!-- ########################################### -->
<!-- Definition of PersonName datatype (7.5.6) -->
<!-- ########################################### -->
<!-- Definition of PersonName datatype (AMD/2)-->
<complexType name="PersonNameType">
<sequence>
<choice maxOccurs="unbounded">
<element name="GivenName" type="mpeg7:NameComponentType"/>
<element name="LinkingName" type="mpeg7:NameComponentType" minOccurs="0"/>
<element name="FamilyName" type="mpeg7:NameComponentType" minOccurs="0"/>
<element name="Title" type="mpeg7:NameComponentType" minOccurs="0"/>
<element name="Salutation" type="mpeg7:NameComponentType" minOccurs="0"/>
<element name="Numeration" type="string" minOccurs="0"/>
</choice>
</sequence>
<attribute name="dateFrom" type="mpeg7:timePointType" use="optional"/>
<attribute name="dateTo" type="mpeg7:timePointType" use="optional"/>
<attribute name="type" use="optional">
<simpleType>
<restriction base="NMTOKEN">
<enumeration value="former"/>
<enumeration value="variant"/>
<enumeration value="main"/>
</restriction>
</simpleType>
</attribute>
<attribute ref="xml:lang" use="optional"/>
</complexType>
<!-- Definition of Place DS (ISO/IEC 15938-5: 7.5.2) -->
<complexType name="PlaceType">
<complexContent>
<extension base="mpeg7:DSType">
<sequence>
<element name="Name" type="mpeg7:TextualType" minOccurs="0"
maxOccurs="unbounded"/>
<element name="NameTerm" type="mpeg7:ControlledTermUseType" minOccurs="0"
maxOccurs="unbounded"/>
<element name="Role" type="mpeg7:TermUseType" minOccurs="0"/>
<element name="GeographicPosition" minOccurs="0">
<complexType>
<sequence>
<element name="Point" type="mpeg7:GeographicPointType"/>
</sequence>
<attribute name="datum" type="string" use="optional"/>
</complexType>
</element>
<!-- AstronomicalBody" element removed -->
<element name="Region" type="mpeg7:regionCode" minOccurs="0"
maxOccurs="unbounded"/>
<element name="AdministrativeUnit" minOccurs="0" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="string">
<attribute name="type" type="string" use="optional"/>
</extension>
</simpleContent>
</complexType>
</element>
<element name="PostalAddress" minOccurs="0">
<complexType>
<sequence>
<element name="AddressLine" type="mpeg7:TextualType"
maxOccurs="unbounded"/>
<element name="PostingIdentifier" type="mpeg7:TextualType"
minOccurs="0"/>
</sequence>
<attribute ref="xml:lang" use="optional"/>
</complexType>
</element>
<element name="InternalCoordinates" type="string" minOccurs="0"/>
</sequence>
<attribute ref="xml:lang" use="optional"/>
</extension>
</complexContent>
</complexType>
<!-- Definition of Rating datatype (ISO/IEC 15938-5) -->
<complexType name="RatingType">
<sequence>
<element name="RatingValue" type="float"/>
<element name="RatingScheme">
<complexType>
<complexContent>
<extension base="mpeg7:TermUseType">
<attribute name="best" type="float" use="optional"/>
<attribute name="worst" type="float" use="optional"/>
<attribute name="style" use="required">
<simpleType>
<restriction base="NMTOKEN">
<enumeration value="higherBetter"/>
<enumeration value="lowerBetter"/>
</restriction>
</simpleType>
</attribute>
</extension>
</complexContent>
</complexType>
</element>
</sequence>
</complexType>
<!-- Definition of Reference datatype (ISO/IEC 15938-5: 6.2.10) -->
<complexType name="ReferenceType">
<attributeGroup ref="mpeg7:referenceGrp"/>
</complexType>
<!-- Definition of RelIncrTimePointType datatype (ISO/IEC 15938-5: 6.4.7) -->
<complexType name="RelIncrTimePointType">
<simpleContent>
<extension base="integer">
<attribute name="timeUnit" type="mpeg7:durationType" use="optional"/>
<attribute name="timeBase" type="mpeg7:xPathRefType" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- Definition of RelTimePointType datatype (ISO/IEC 15938-5) -->
<complexType name="RelTimePointType">
<simpleContent>
<extension base="mpeg7:timeOffsetType">
<attribute name="timeBase" type="mpeg7:xPathRefType" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- Definition of TemporalSegmentLocator datatype (ISO/IEC 15938-5: 6.5.4) -->
<complexType name="TemporalSegmentLocatorType">
<complexContent>
<extension base="mpeg7:MediaLocatorType">
<choice minOccurs="0">
<element name="MediaTime" type="mpeg7:MediaTimeType"/>
<element name="BytePosition">
<complexType>
<attribute name="offset" type="nonNegativeInteger" use="required"/>
<attribute name="length" type="positiveInteger" use="optional"/>
</complexType>
</element>
</choice>
</extension>
</complexContent>
</complexType>
<!-- Definition of TermDefinitionBase DS (ISO/IEC 15938-5: 7.3.3) -->
<complexType name="TermDefinitionBaseType" abstract="true">
<complexContent>
<extension base="mpeg7:DSType">
<sequence>
<element name="Name" minOccurs="0" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="mpeg7:TextualType">
<attribute name="preferred" type="boolean" use="optional"/>
</extension>
</simpleContent>
</complexType>
</element>
<element name="Definition" type="mpeg7:TextualType" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
<attribute name="termID" type="NMTOKEN"/>
</extension>
</complexContent>
</complexType>
<!-- Definition of TermDefinition DS (ISO/IEC 15938-5: 7.3.3) -->
<complexType name="TermDefinitionType">
<complexContent>
<extension base="mpeg7:TermDefinitionBaseType">
<sequence>
<element name="Term" minOccurs="0" maxOccurs="unbounded">
<complexType>
<complexContent>
<extension base="mpeg7:TermDefinitionType">
<attribute name="relation"
type="mpeg7:termRelationQualifierType" use="optional"
default="NT"/>
</extension>
</complexContent>
</complexType>
</element>
</sequence>
</extension>
</complexContent>
</complexType>
<!-- Definition of TermUse datatype (ISO/IEC 15938-5: 7.3.3) -->
<complexType name="TermUseType">
<complexContent>
<extension base="mpeg7:InlineTermDefinitionType">
<attribute name="href" type="mpeg7:termReferenceType" use="optional"/>
</extension>
</complexContent>
</complexType>
<!-- Definition of TextualBase datatype (ISO/IEC 15938-5: 7.2.2) -->
<complexType name="TextualBaseType" abstract="true">
<simpleContent>
<extension base="string">
<attribute ref="xml:lang" use="optional"/>
</extension>
</simpleContent>
</complexType>
<!-- Definition of Textual datatype (ISO/IEC 15938-5: 7.2.2) -->
<complexType name="TextualType">
<simpleContent>
<extension base="mpeg7:TextualBaseType"/>
</simpleContent>
</complexType>
<!-- Definition of Time datatype (ISO/IEC 15938-5: 6.4.2) -->
<complexType name="TimeType">
<sequence>
<choice>
<element name="TimePoint" type="mpeg7:timePointType"/>
<element name="RelTimePoint" type="mpeg7:RelTimePointType"/>
<element name="RelIncrTimePoint" type="mpeg7:RelIncrTimePointType"/>
</choice>
<choice minOccurs="0">
<element name="Duration" type="mpeg7:durationType"/>
<element name="IncrDuration" type="mpeg7:IncrDurationType"/>
</choice>
</sequence>
</complexType>
<!-- Definition of Title datatype (ISO/IEC 15938-5) -->
<complexType name="TitleType">
<simpleContent>
<extension base="mpeg7:TextualBaseType">
<attribute name="type" use="optional" default="main">
<simpleType>
<union>
<simpleType>
<restriction base="NMTOKEN">
<enumeration value="main"/>
<enumeration value="secondary"/>
<enumeration value="alternative"/>
<enumeration value="original"/>
<enumeration value="popular"/>
<enumeration value="opusNumber"/>
<enumeration value="songTitle"/>
<enumeration value="albumTitle"/>
<enumeration value="seriesTitle"/>
<enumeration value="episodeTitle"/>
</restriction>
</simpleType>
<simpleType>
<restriction base="mpeg7:termReferenceType"/>
</simpleType>
</union>
</simpleType>
</attribute>
</extension>
</simpleContent>
</complexType>
<!-- Definition of UniqueID datatype (ISO/IEC 15938-5: 6.3.1) -->
<complexType name="UniqueIDType">
<simpleContent>
<extension base="string">
<attribute name="type" type="NMTOKEN" use="optional" default="URI"/>
<attribute name="organization" type="NMTOKEN" use="optional"/>
<attribute name="authority" type="NMTOKEN" use="optional"/>
<attribute name="encoding" use="optional" default="text">
<simpleType>
<restriction base="string">
<enumeration value="text"/>
<enumeration value="base16"/>
<enumeration value="base64"/>
</restriction>
</simpleType>
</attribute>
</extension>
</simpleContent>
</complexType>
<!-- #################################################################### -->
<annotation>
<documentation> MODULE 2. MPEG-7 SCHEMA COMPONENTS USED BY TVA FOR CONTENT DESCRIPTION ONLY
</documentation>
</annotation>
<!-- #################################################################### -->
<!-- Definition of TitleMedia datatype (ISO/IEC 15938-5) -->
<complexType name="TitleMediaType">
<sequence>
<element name="TitleImage" type="mpeg7:ImageLocatorType" minOccurs="0"/>
<element name="TitleVideo" type="mpeg7:TemporalSegmentLocatorType" minOccurs="0"/>
<element name="TitleAudio" type="mpeg7:TemporalSegmentLocatorType" minOccurs="0"/>
</sequence>
</complexType>
<!-- #################################################################### -->
<annotation>
<documentation> MODULE 3. MPEG-7 SCHEMA COMPONENTS USED BY TVA FOR USER DESCRIPTION ONLY
</documentation>
</annotation>
<!-- #################################################################### -->
<annotation>
<documentation> 3A. SIMPLE DATATYPES USED BY TVA FOR USER DESCRIPTION ONLY </documentation>
</annotation>
<!-- Definition of auxiliaryLanguage datatype (ISO/IEC 15938-5) -->
<simpleType name="auxiliaryLanguageType">
<union>
<simpleType>
<restriction base="NMTOKEN">
<enumeration value="dubbed"/>
<enumeration value="closedCaptions"/>
<enumeration value="subTitles"/>
<enumeration value="signLanguage"/>
<enumeration value="audioDescription"/>
</restriction>
</simpleType>
<simpleType>
<restriction base="mpeg7:termReferenceType"/>
</simpleType>
</union>
</simpleType>
<!-- Definition of nonNegativeReal datatype (ISO/IEC 15938-5: 5.3.4) -->
<simpleType name="nonNegativeReal">
<restriction base="double">
<minInclusive value="0.0"/>
</restriction>
</simpleType>
<!-- Definition of preferenceValue datatype (ISO/IEC 15938-5) -->
<simpleType name="preferenceValueType">
<restriction base="integer">
<minInclusive value="-100"/>
<maxInclusive value="100"/>
</restriction>
</simpleType>
<!-- Definition of summaryComponent datatype (ISO/IEC 15938-5) -->
<simpleType name="summaryComponentType">
<union>
<simpleType>
<restriction base="NMTOKEN">
<enumeration value="audio"/>
<enumeration value="visual"/>
<enumeration value="audioVisual"/>
<enumeration value="textual"/>
<enumeration value="keyAudioClips"/>
<enumeration value="keyVideoClips"/>
<enumeration value="keyAudioVisualClips"/>
<enumeration value="keyFrames"/>
<enumeration value="keySounds"/>
<enumeration value="keyThemes"/>
</restriction>
</simpleType>
<simpleType>
<restriction base="mpeg7:termReferenceType"/>
</simpleType>
</union>
</simpleType>
<!-- Definition of userChoice datatype (ISO/IEC 15938-5) -->
<simpleType name="userChoiceType">
<restriction base="NMTOKEN">
<enumeration value="true"/>
<enumeration value="false"/>
<enumeration value="user"/>
</restriction>
</simpleType>
<!-- #################################################################### -->
<annotation>
<documentation> 3B. COMPLEX DATATYPES USED BY TVA FOR USER DESCRIPTION ONLY </documentation>
</annotation>
<!-- Definition of Agent DS (ISO/IEC 15938-5: 7.4.2) -->
<complexType name="AgentType" abstract="true">
<complexContent>
<extension base="mpeg7:DSType">
<sequence>
<element name="Icon" type="mpeg7:MediaLocatorType" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</extension>
</complexContent>
</complexType>
<!-- Definition of BrowsingPreferences DS (ISO/IEC 15938-5: 15.2.9) -->
<complexType name="BrowsingPreferencesType">
<complexContent>
<extension base="mpeg7:DSType">
<sequence>
<element name="SummaryPreferences" type="mpeg7:SummaryPreferencesType"
minOccurs="0" maxOccurs="unbounded"/>
<element name="PreferenceCondition" minOccurs="0" maxOccurs="unbounded">
<complexType>
<complexContent>
<extension base="mpeg7:PreferenceConditionType">
<sequence>
<element name="Genre" type="mpeg7:TermUseType" minOccurs="0"
/>
</sequence>
</extension>
</complexContent>
</complexType>
</element>
</sequence>
<attribute name="protected" type="mpeg7:userChoiceType" use="optional"
default="true"/>
<attribute name="preferenceValue" type="mpeg7:preferenceValueType" use="optional"
default="10"/>
</extension>
</complexContent>
</complexType>
<!-- Definition of ClassificationPreferences DS (ISO/IEC 15938-5: 15.2.7) -->
<complexType name="ClassificationPreferencesType">
<complexContent>
<extension base="mpeg7:DSType">
<sequence>
<element name="Country" minOccurs="0" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="mpeg7:countryCode">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</simpleContent>
</complexType>
</element>
<element name="DatePeriod" minOccurs="0" maxOccurs="unbounded">
<complexType>
<complexContent>
<extension base="mpeg7:TimeType">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</complexContent>
</complexType>
</element>
<element name="LanguageFormat" minOccurs="0" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="mpeg7:auxiliaryLanguageType">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</simpleContent>
</complexType>
</element>
<element name="Language" minOccurs="0" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="mpeg7:ExtendedLanguageType">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</simpleContent>
</complexType>
</element>
<element name="CaptionLanguage" minOccurs="0" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="language">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</simpleContent>
</complexType>
</element>
<element name="Form" minOccurs="0" maxOccurs="unbounded">
<complexType>
<complexContent>
<extension base="mpeg7:TermUseType">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</complexContent>
</complexType>
</element>
<element name="Genre" minOccurs="0" maxOccurs="unbounded">
<complexType>
<complexContent>
<extension base="mpeg7:TermUseType">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</complexContent>
</complexType>
</element>
<element name="Subject" minOccurs="0" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="mpeg7:TextualType">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</simpleContent>
</complexType>
</element>
<element name="Review" minOccurs="0" maxOccurs="unbounded">
<complexType>
<sequence>
<element name="Rating" type="mpeg7:RatingType" minOccurs="0"/>
<element name="Reviewer" type="mpeg7:AgentType" minOccurs="0"/>
</sequence>
<attribute name="preferenceValue" type="mpeg7:preferenceValueType"
use="optional" default="10"/>
</complexType>
</element>
<element name="ParentalGuidance" minOccurs="0" maxOccurs="unbounded">
<complexType>
<complexContent>
<extension base="mpeg7:ParentalGuidanceType">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</complexContent>
</complexType>
</element>
</sequence>
<attribute name="preferenceValue" type="mpeg7:preferenceValueType" use="optional"
default="10"/>
</extension>
</complexContent>
</complexType>
<!-- Definition of CreationPreferences DS (ISO/IEC 15938-5: 15.2.6) -->
<complexType name="CreationPreferencesType">
<complexContent>
<extension base="mpeg7:DSType">
<sequence>
<element name="Title" minOccurs="0" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="mpeg7:TitleType">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</simpleContent>
</complexType>
</element>
<element name="Creator" minOccurs="0" maxOccurs="unbounded">
<complexType>
<complexContent>
<extension base="mpeg7:CreatorType">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</complexContent>
</complexType>
</element>
<element name="Keyword" minOccurs="0" maxOccurs="unbounded">
<complexType>
<simpleContent>
<extension base="mpeg7:TextualType">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</simpleContent>
</complexType>
</element>
<element name="Location" minOccurs="0" maxOccurs="unbounded">
<complexType>
<complexContent>
<extension base="mpeg7:PlaceType">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</complexContent>
</complexType>
</element>
<element name="DatePeriod" minOccurs="0" maxOccurs="unbounded">
<complexType>
<complexContent>
<extension base="mpeg7:TimeType">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"
/>
</extension>
</complexContent>
</complexType>
</element>
<element name="Tool" minOccurs="0" maxOccurs="unbounded">
<complexType>
<complexContent>
<extension base="mpeg7:TermUseType">
<attribute name="preferenceValue"
type="mpeg7:preferenceValueType" use="optional" default="10"