| 1 |
<schema targetNamespace="http://www.openarchives.org/OAI/2.0/" |
| 2 |
xmlns="http://www.w3.org/2001/XMLSchema" |
| 3 |
xmlns:oai="http://www.openarchives.org/OAI/2.0/" |
| 4 |
elementFormDefault="qualified" |
| 5 |
attributeFormDefault="unqualified"> |
| 6 |
|
| 7 |
<annotation> |
| 8 |
<documentation> |
| 9 |
XML Schema which can be used to validate replies to all OAI-PMH |
| 10 |
v2.0 requests. Herbert Van de Sompel, 2002-05-13. |
| 11 |
Validated with XML Spy v.4.3 on 2002-05-13. |
| 12 |
Validated with XSV 1.203.2.45/1.106.2.22 on 2002-05-13. |
| 13 |
Added definition of protocolVersionType instead of using anonymous |
| 14 |
type. No change of function. Simeon Warner, 2004-03-29. |
| 15 |
Tightened definition of UTCdatetimeType to enforce the restriction |
| 16 |
to UTC Z notation. Simeon Warner, 2004-09-14. |
| 17 |
Corrected pattern matches for setSpecType and metedataPrefixType |
| 18 |
to agree with protocol specification. Simeon Warner, 2004-10-12. |
| 19 |
$Date: 2004/10/12 15:20:29 $ |
| 20 |
</documentation> |
| 21 |
</annotation> |
| 22 |
|
| 23 |
<element name="OAI-PMH" type="oai:OAI-PMHtype"/> |
| 24 |
|
| 25 |
<complexType name="OAI-PMHtype"> |
| 26 |
<sequence> |
| 27 |
<element name="responseDate" type="dateTime"/> |
| 28 |
<element name="request" type="oai:requestType"/> |
| 29 |
<choice> |
| 30 |
<element name="error" type="oai:OAI-PMHerrorType" maxOccurs="unbounded"/> |
| 31 |
<element name="Identify" type="oai:IdentifyType"/> |
| 32 |
<element name="ListMetadataFormats" type="oai:ListMetadataFormatsType"/> |
| 33 |
<element name="ListSets" type="oai:ListSetsType"/> |
| 34 |
<element name="GetRecord" type="oai:GetRecordType"/> |
| 35 |
<element name="ListIdentifiers" type="oai:ListIdentifiersType"/> |
| 36 |
<element name="ListRecords" type="oai:ListRecordsType"/> |
| 37 |
</choice> |
| 38 |
</sequence> |
| 39 |
</complexType> |
| 40 |
|
| 41 |
<complexType name="requestType"> |
| 42 |
<annotation> |
| 43 |
<documentation>Define requestType, indicating the protocol request that |
| 44 |
led to the response. Element content is BASE-URL, attributes are arguments |
| 45 |
of protocol request, attribute-values are values of arguments of protocol |
| 46 |
request</documentation> |
| 47 |
</annotation> |
| 48 |
<simpleContent> |
| 49 |
<extension base="anyURI"> |
| 50 |
<attribute name="verb" type="oai:verbType" use="optional"/> |
| 51 |
<attribute name="identifier" type="oai:identifierType" use="optional"/> |
| 52 |
<attribute name="metadataPrefix" type="oai:metadataPrefixType" use="optional"/> |
| 53 |
<attribute name="from" type="oai:UTCdatetimeType" use="optional"/> |
| 54 |
<attribute name="until" type="oai:UTCdatetimeType" use="optional"/> |
| 55 |
<attribute name="set" type="oai:setSpecType" use="optional"/> |
| 56 |
<attribute name="resumptionToken" type="string" use="optional"/> |
| 57 |
</extension> |
| 58 |
</simpleContent> |
| 59 |
</complexType> |
| 60 |
|
| 61 |
<simpleType name="verbType"> |
| 62 |
<restriction base="string"> |
| 63 |
<enumeration value="Identify"/> |
| 64 |
<enumeration value="ListMetadataFormats"/> |
| 65 |
<enumeration value="ListSets"/> |
| 66 |
<enumeration value="GetRecord"/> |
| 67 |
<enumeration value="ListIdentifiers"/> |
| 68 |
<enumeration value="ListRecords"/> |
| 69 |
</restriction> |
| 70 |
</simpleType> |
| 71 |
|
| 72 |
<!-- define OAI-PMH error conditions --> |
| 73 |
<!-- =============================== --> |
| 74 |
|
| 75 |
<complexType name="OAI-PMHerrorType"> |
| 76 |
<simpleContent> |
| 77 |
<extension base="string"> |
| 78 |
<attribute name="code" type="oai:OAI-PMHerrorcodeType" use="required"/> |
| 79 |
</extension> |
| 80 |
</simpleContent> |
| 81 |
</complexType> |
| 82 |
|
| 83 |
<simpleType name="OAI-PMHerrorcodeType"> |
| 84 |
<restriction base="string"> |
| 85 |
<enumeration value="cannotDisseminateFormat"/> |
| 86 |
<enumeration value="idDoesNotExist"/> |
| 87 |
<enumeration value="badArgument"/> |
| 88 |
<enumeration value="badVerb"/> |
| 89 |
<enumeration value="noMetadataFormats"/> |
| 90 |
<enumeration value="noRecordsMatch"/> |
| 91 |
<enumeration value="badResumptionToken"/> |
| 92 |
<enumeration value="noSetHierarchy"/> |
| 93 |
</restriction> |
| 94 |
</simpleType> |
| 95 |
|
| 96 |
<!-- define OAI-PMH verb containers --> |
| 97 |
<!-- ============================== --> |
| 98 |
|
| 99 |
<complexType name="IdentifyType"> |
| 100 |
<sequence> |
| 101 |
<element name="repositoryName" type="string"/> |
| 102 |
<element name="baseURL" type="anyURI"/> |
| 103 |
<element name="protocolVersion" type="oai:protocolVersionType"/> |
| 104 |
<element name="adminEmail" type="oai:emailType" maxOccurs="unbounded"/> |
| 105 |
<element name="earliestDatestamp" type="oai:UTCdatetimeType"/> |
| 106 |
<element name="deletedRecord" type="oai:deletedRecordType"/> |
| 107 |
<element name="granularity" type="oai:granularityType"/> |
| 108 |
<element name="compression" type="string" minOccurs="0" maxOccurs="unbounded"/> |
| 109 |
<element name="description" type="oai:descriptionType" |
| 110 |
minOccurs="0" maxOccurs="unbounded"/> |
| 111 |
</sequence> |
| 112 |
</complexType> |
| 113 |
|
| 114 |
<complexType name="ListMetadataFormatsType"> |
| 115 |
<sequence> |
| 116 |
<element name="metadataFormat" type="oai:metadataFormatType" maxOccurs="unbounded"/> |
| 117 |
</sequence> |
| 118 |
</complexType> |
| 119 |
|
| 120 |
<complexType name="ListSetsType"> |
| 121 |
<sequence> |
| 122 |
<element name="set" type="oai:setType" maxOccurs="unbounded"/> |
| 123 |
<element name="resumptionToken" type="oai:resumptionTokenType" minOccurs="0"/> |
| 124 |
</sequence> |
| 125 |
</complexType> |
| 126 |
|
| 127 |
<complexType name="GetRecordType"> |
| 128 |
<sequence> |
| 129 |
<element name="record" type="oai:recordType"/> |
| 130 |
</sequence> |
| 131 |
</complexType> |
| 132 |
|
| 133 |
<complexType name="ListRecordsType"> |
| 134 |
<sequence> |
| 135 |
<element name="record" type="oai:recordType" maxOccurs="unbounded"/> |
| 136 |
<element name="resumptionToken" type="oai:resumptionTokenType" minOccurs="0"/> |
| 137 |
</sequence> |
| 138 |
</complexType> |
| 139 |
|
| 140 |
<complexType name="ListIdentifiersType"> |
| 141 |
<sequence> |
| 142 |
<element name="header" type="oai:headerType" maxOccurs="unbounded"/> |
| 143 |
<element name="resumptionToken" type="oai:resumptionTokenType" minOccurs="0"/> |
| 144 |
</sequence> |
| 145 |
</complexType> |
| 146 |
|
| 147 |
<!-- define basic types used in replies to |
| 148 |
GetRecord, ListRecords, ListIdentifiers --> |
| 149 |
<!-- ======================================= --> |
| 150 |
|
| 151 |
<complexType name="recordType"> |
| 152 |
<annotation> |
| 153 |
<documentation>A record has a header, a metadata part, and |
| 154 |
an optional about container</documentation> |
| 155 |
</annotation> |
| 156 |
<sequence> |
| 157 |
<element name="header" type="oai:headerType"/> |
| 158 |
<element name="metadata" type="oai:metadataType" minOccurs="0"/> |
| 159 |
<element name="about" type="oai:aboutType" minOccurs="0" maxOccurs="unbounded"/> |
| 160 |
</sequence> |
| 161 |
</complexType> |
| 162 |
|
| 163 |
<complexType name="headerType"> |
| 164 |
<annotation> |
| 165 |
<documentation>A header has a unique identifier, a datestamp, |
| 166 |
and setSpec(s) in case the item from which |
| 167 |
the record is disseminated belongs to set(s). |
| 168 |
the header can carry a deleted status indicating |
| 169 |
that the record is deleted.</documentation> |
| 170 |
</annotation> |
| 171 |
<sequence> |
| 172 |
<element name="identifier" type="oai:identifierType"/> |
| 173 |
<element name="datestamp" type="oai:UTCdatetimeType"/> |
| 174 |
<element name="setSpec" type="oai:setSpecType" minOccurs="0" maxOccurs="unbounded"/> |
| 175 |
</sequence> |
| 176 |
<attribute name="status" type="oai:statusType" use="optional"/> |
| 177 |
</complexType> |
| 178 |
|
| 179 |
<simpleType name="identifierType"> |
| 180 |
<restriction base="anyURI"/> |
| 181 |
</simpleType> |
| 182 |
|
| 183 |
<simpleType name="statusType"> |
| 184 |
<restriction base="string"> |
| 185 |
<enumeration value="deleted"/> |
| 186 |
</restriction> |
| 187 |
</simpleType> |
| 188 |
|
| 189 |
<complexType name="metadataType"> |
| 190 |
<annotation> |
| 191 |
<documentation>Metadata must be expressed in XML that complies |
| 192 |
with another XML Schema (namespace=#other). Metadata must be |
| 193 |
explicitly qualified in the response.</documentation> |
| 194 |
</annotation> |
| 195 |
<sequence> |
| 196 |
<any namespace="##other" processContents="strict"/> |
| 197 |
</sequence> |
| 198 |
</complexType> |
| 199 |
|
| 200 |
<complexType name="aboutType"> |
| 201 |
<annotation> |
| 202 |
<documentation>Data "about" the record must be expressed in XML |
| 203 |
that is compliant with an XML Schema defined by a community.</documentation> |
| 204 |
</annotation> |
| 205 |
<sequence> |
| 206 |
<any namespace="##other" processContents="strict"/> |
| 207 |
</sequence> |
| 208 |
</complexType> |
| 209 |
|
| 210 |
<complexType name="resumptionTokenType"> |
| 211 |
<annotation> |
| 212 |
<documentation>A resumptionToken may have 3 optional attributes |
| 213 |
and can be used in ListSets, ListIdentifiers, ListRecords |
| 214 |
responses.</documentation> |
| 215 |
</annotation> |
| 216 |
<simpleContent> |
| 217 |
<extension base="string"> |
| 218 |
<attribute name="expirationDate" type="dateTime" use="optional"/> |
| 219 |
<attribute name="completeListSize" type="positiveInteger" use="optional"/> |
| 220 |
<attribute name="cursor" type="nonNegativeInteger" use="optional"/> |
| 221 |
</extension> |
| 222 |
</simpleContent> |
| 223 |
</complexType> |
| 224 |
|
| 225 |
<complexType name="descriptionType"> |
| 226 |
<annotation> |
| 227 |
<documentation>The descriptionType is used for the description |
| 228 |
element in Identify and for setDescription element in ListSets. |
| 229 |
Content must be compliant with an XML Schema defined by a |
| 230 |
community.</documentation> |
| 231 |
</annotation> |
| 232 |
<sequence> |
| 233 |
<any namespace="##other" processContents="strict"/> |
| 234 |
</sequence> |
| 235 |
</complexType> |
| 236 |
|
| 237 |
<simpleType name="UTCdatetimeType"> |
| 238 |
<annotation> |
| 239 |
<documentation>Datestamps are to either day (type date) |
| 240 |
or to seconds granularity (type oai:UTCdateTimeZType)</documentation> |
| 241 |
</annotation> |
| 242 |
<union memberTypes="date oai:UTCdateTimeZType"/> |
| 243 |
</simpleType> |
| 244 |
|
| 245 |
<simpleType name="UTCdateTimeZType"> |
| 246 |
<restriction base="dateTime"> |
| 247 |
<pattern value=".*Z"/> |
| 248 |
</restriction> |
| 249 |
</simpleType> |
| 250 |
|
| 251 |
<!-- define types used for Identify verb only --> |
| 252 |
<!-- ======================================== --> |
| 253 |
|
| 254 |
<simpleType name="protocolVersionType"> |
| 255 |
<restriction base="string"> |
| 256 |
<enumeration value="2.0"/> |
| 257 |
</restriction> |
| 258 |
</simpleType> |
| 259 |
|
| 260 |
<simpleType name="emailType"> |
| 261 |
<restriction base="string"> |
| 262 |
<pattern value="\S+@(\S+\.)+\S+"/> |
| 263 |
</restriction> |
| 264 |
</simpleType> |
| 265 |
|
| 266 |
<simpleType name="deletedRecordType"> |
| 267 |
<restriction base="string"> |
| 268 |
<enumeration value="no"/> |
| 269 |
<enumeration value="persistent"/> |
| 270 |
<enumeration value="transient"/> |
| 271 |
</restriction> |
| 272 |
</simpleType> |
| 273 |
|
| 274 |
<simpleType name="granularityType"> |
| 275 |
<restriction base="string"> |
| 276 |
<enumeration value="YYYY-MM-DD"/> |
| 277 |
<enumeration value="YYYY-MM-DDThh:mm:ssZ"/> |
| 278 |
</restriction> |
| 279 |
</simpleType> |
| 280 |
|
| 281 |
<!-- define types used for ListMetadataFormats verb only --> |
| 282 |
<!-- =================================================== --> |
| 283 |
|
| 284 |
<complexType name="metadataFormatType"> |
| 285 |
<sequence> |
| 286 |
<element name="metadataPrefix" type="oai:metadataPrefixType"/> |
| 287 |
<element name="schema" type="anyURI"/> |
| 288 |
<element name="metadataNamespace" type="anyURI"/> |
| 289 |
</sequence> |
| 290 |
</complexType> |
| 291 |
|
| 292 |
<simpleType name="metadataPrefixType"> |
| 293 |
<restriction base="string"> |
| 294 |
<pattern value="[A-Za-z0-9\-_\.!~\*'\(\)]+"/> |
| 295 |
</restriction> |
| 296 |
</simpleType> |
| 297 |
|
| 298 |
<!-- define types used for ListSets verb --> |
| 299 |
<!-- =================================== --> |
| 300 |
|
| 301 |
<complexType name="setType"> |
| 302 |
<sequence> |
| 303 |
<element name="setSpec" type="oai:setSpecType"/> |
| 304 |
<element name="setName" type="string"/> |
| 305 |
<element name="setDescription" type="oai:descriptionType" |
| 306 |
minOccurs="0" maxOccurs="unbounded"/> |
| 307 |
</sequence> |
| 308 |
</complexType> |
| 309 |
|
| 310 |
<simpleType name="setSpecType"> |
| 311 |
<restriction base="string"> |
| 312 |
<pattern value="([A-Za-z0-9\-_\.!~\*'\(\)])+(:[A-Za-z0-9\-_\.!~\*'\(\)]+)*"/> |
| 313 |
</restriction> |
| 314 |
</simpleType> |
| 315 |
|
| 316 |
</schema> |