-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddradio_yellow-pages_v1.xsd
217 lines (188 loc) · 7.94 KB
/
addradio_yellow-pages_v1.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
<?xml version="1.0" encoding="utf-8"?>
<xs:schema
attributeFormDefault="unqualified"
elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:yp="https://addradio.net/services/yellow-pages/v1"
targetNamespace="https://addradio.net/services/yellow-pages/v1"
>
<xs:element name="yellow-page">
<xs:complexType>
<xs:sequence>
<xs:element name="broadcaster" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="stations" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="station" type="yp:stationType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="yp:idType" use="optional"/>
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="aggregator-id" type="yp:aggregatorIdType" use="optional">
<xs:annotation><xs:documentation>AddRadio internal ID</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:complexType name="stationType">
<xs:sequence>
<xs:element name="website" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:attribute name="url" type="xs:anyURI" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="logos" minOccurs="1" maxOccurs="1">
<xs:annotation><xs:documentation>multiple qualities/formats possible</xs:documentation></xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="logo" type="yp:imageType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="contact" type="yp:contactType" minOccurs="0" maxOccurs="1"/>
<xs:element name="claim" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation><xs:documentation>cdata block formatted with linebreaks</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="location" type="yp:locationType" minOccurs="0" maxOccurs="1"/>
<xs:element name="channels" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="channel" type="yp:channelType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="yp:idType" use="optional"/>
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="contactType">
<xs:sequence>
<xs:element name="address" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation><xs:documentation>cdata block formatted with linebreaks</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="email" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="phone" type="xs:string" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="channelType">
<xs:sequence>
<xs:element name="website" minOccurs="0" maxOccurs="1">
<xs:annotation><xs:documentation>optional: take from station if not supplied here </xs:documentation></xs:annotation>
<xs:complexType>
<xs:attribute name="url" type="xs:anyURI" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="location" type="yp:locationType" minOccurs="0" maxOccurs="1">
<xs:annotation><xs:documentation>optional: take from station if not supplied here </xs:documentation></xs:annotation>
</xs:element>
<xs:element name="categories" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="category" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="streams" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="stream" type="yp:streamType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" type="yp:idType" use="optional"/>
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:complexType>
<xs:complexType name="locationType">
<xs:sequence>
<xs:element name="coordinate" type="yp:coordinateType" minOccurs="0" maxOccurs="1"/>
<xs:element name="city" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="state" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="country" type="xs:string" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="streamType">
<xs:attribute name="id" type="yp:idType" use="optional"/>
<xs:attribute name="url" type="xs:anyURI" use="required"/>
<xs:attribute name="format" type="yp:streamFormatType" use="required"/>
<xs:attribute name="quality" type="yp:streamQualityType" use="required"/>
</xs:complexType>
<xs:simpleType name="aggregatorIdType">
<xs:restriction base="xs:string">
<xs:annotation><xs:documentation>AddRadio internal ID</xs:documentation></xs:annotation>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="idType">
<xs:restriction base="xs:string">
<xs:annotation><xs:documentation>AddRadio internal ID</xs:documentation></xs:annotation>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="coordinateType">
<xs:sequence>
<xs:element name="latitude" minOccurs="1" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:minInclusive value="-90.0"/>
<xs:maxInclusive value="90.0"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="longitude" minOccurs="1" maxOccurs="1">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:minInclusive value="-180.0"/>
<xs:maxInclusive value="180.0"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="imageType">
<xs:attribute name="url" type="xs:anyURI" use="required"/>
<xs:attribute name="mimetype" type="yp:mimetypeType" use="required"/>
<xs:attribute name="width" type="xs:integer" use="required"/>
<xs:attribute name="height" type="xs:integer" use="required"/>
</xs:complexType>
<xs:simpleType name="mimetypeType">
<xs:restriction base="xs:string">
<xs:enumeration value="image/png"/>
<xs:enumeration value="image/jpeg"/>
<xs:enumeration value="image/svg+xml"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="streamFormatType">
<xs:restriction base="xs:string">
<xs:enumeration value="mp3"/>
<xs:enumeration value="aac"/>
<xs:enumeration value="ogg/vorbis"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="streamQualityType">
<xs:restriction base="xs:integer">
<xs:enumeration value="8"/>
<xs:enumeration value="16"/>
<xs:enumeration value="24"/>
<xs:enumeration value="32"/>
<xs:enumeration value="40"/>
<xs:enumeration value="48"/>
<xs:enumeration value="56"/>
<xs:enumeration value="64"/>
<xs:enumeration value="80"/>
<xs:enumeration value="96"/>
<xs:enumeration value="112"/>
<xs:enumeration value="128"/>
<xs:enumeration value="160"/>
<xs:enumeration value="192"/>
<xs:enumeration value="224"/>
<xs:enumeration value="256"/>
<xs:enumeration value="320"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>