iris1.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <?xml version="1.0"?>
  2. <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:iris="urn:ietf:params:xml:ns:iris1" targetNamespace="urn:ietf:params:xml:ns:iris1" elementFormDefault="qualified">
  3. <annotation>
  4. <documentation>
  5. Internet Registry Information Service (IRIS) Schema v1
  6. </documentation>
  7. </annotation>
  8. <!-- ========================================= -->
  9. <!-- -->
  10. <!-- The Transactions -->
  11. <!-- -->
  12. <!-- ========================================= -->
  13. <element name="request">
  14. <complexType>
  15. <sequence>
  16. <element name="control" type="iris:controlType" minOccurs="0" maxOccurs="1"/>
  17. <element name="searchSet" type="iris:searchSetType" minOccurs="1" maxOccurs="unbounded"/>
  18. </sequence>
  19. </complexType>
  20. </element>
  21. <element name="response">
  22. <complexType>
  23. <sequence>
  24. <element name="reaction" type="iris:reactionType" minOccurs="0" maxOccurs="1"/>
  25. <element name="resultSet" type="iris:resultSetType" minOccurs="1" maxOccurs="unbounded"/>
  26. <element name="bags" type="iris:bagsType" minOccurs="0" maxOccurs="1"/>
  27. </sequence>
  28. </complexType>
  29. </element>
  30. <!-- ========================================= -->
  31. <!-- -->
  32. <!-- Search Sets and Result Sets -->
  33. <!-- -->
  34. <!-- ========================================= -->
  35. <complexType name="searchSetType">
  36. <sequence>
  37. <element name="bag" type="iris:bagType" minOccurs="0" maxOccurs="1"/>
  38. <choice>
  39. <element name="lookupEntity" type="iris:lookupEntityType"/>
  40. <element ref="iris:query"/>
  41. </choice>
  42. </sequence>
  43. </complexType>
  44. <complexType name="resultSetType">
  45. <sequence>
  46. <element name="answer" minOccurs="1" maxOccurs="1">
  47. <complexType>
  48. <sequence>
  49. <element ref="iris:result" minOccurs="0" maxOccurs="unbounded"/>
  50. <element ref="iris:entity" minOccurs="0" maxOccurs="unbounded"/>
  51. <element ref="iris:searchContinuation" minOccurs="0" maxOccurs="unbounded"/>
  52. </sequence>
  53. </complexType>
  54. </element>
  55. <element name="additional" minOccurs="0" maxOccurs="1">
  56. <complexType>
  57. <sequence>
  58. <element ref="iris:result" minOccurs="1" maxOccurs="unbounded"/>
  59. </sequence>
  60. </complexType>
  61. </element>
  62. <choice minOccurs="0" maxOccurs="1">
  63. <element name="insufficientResources" type="iris:codeType"/>
  64. <element name="invalidName" type="iris:codeType"/>
  65. <element name="invalidSearch" type="iris:codeType"/>
  66. <element name="queryNotSupported" type="iris:codeType"/>
  67. <element name="limitExceeded" type="iris:codeType"/>
  68. <element name="nameNotFound" type="iris:codeType"/>
  69. <element name="permissionDenied" type="iris:codeType"/>
  70. <element name="bagUnrecognized" type="iris:codeType"/>
  71. <element name="bagUnacceptable" type="iris:codeType"/>
  72. <element name="bagRefused" type="iris:codeType"/>
  73. <element ref="iris:genericCode"/>
  74. </choice>
  75. </sequence>
  76. </complexType>
  77. <!-- ========================================= -->
  78. <!-- -->
  79. <!-- Controls and Reactions -->
  80. <!-- -->
  81. <!-- ========================================= -->
  82. <complexType name="controlType">
  83. <sequence>
  84. <any namespace="##any" processContents="skip" minOccurs="1" maxOccurs="1"/>
  85. </sequence>
  86. </complexType>
  87. <complexType name="reactionType">
  88. <sequence>
  89. <any namespace="##any" processContents="skip" minOccurs="1" maxOccurs="1"/>
  90. </sequence>
  91. </complexType>
  92. <!-- ========================================= -->
  93. <!-- -->
  94. <!-- Queries and Lookups -->
  95. <!-- -->
  96. <!-- ========================================= -->
  97. <complexType name="queryType"/>
  98. <element name="query" type="iris:queryType" abstract="true"/>
  99. <complexType name="lookupEntityType">
  100. <attribute name="registryType" type="anyURI" use="required"/>
  101. <attribute name="entityClass" type="token" use="required"/>
  102. <attribute name="entityName" type="token" use="required"/>
  103. </complexType>
  104. <!-- ========================================= -->
  105. <!-- -->
  106. <!-- Results -->
  107. <!-- -->
  108. <!-- ========================================= -->
  109. <complexType name="resultType">
  110. <attribute name="authority" use="required" type="token"/>
  111. <attribute name="resolution" type="token"/>
  112. <attribute name="registryType" use="required" type="anyURI"/>
  113. <attribute name="entityClass" use="required" type="token"/>
  114. <attribute name="entityName" use="required" type="token"/>
  115. <attribute name="temporaryReference" default="false" type="boolean"/>
  116. </complexType>
  117. <element name="result" type="iris:resultType" abstract="true"/>
  118. <!-- ========================================= -->
  119. <!-- -->
  120. <!-- Errors -->
  121. <!-- -->
  122. <!-- ========================================= -->
  123. <complexType name="codeType">
  124. <sequence minOccurs="0" maxOccurs="unbounded">
  125. <element name="explanation">
  126. <complexType>
  127. <simpleContent>
  128. <extension base="string">
  129. <attribute use="required" name="language" type="language"/>
  130. </extension>
  131. </simpleContent>
  132. </complexType>
  133. </element>
  134. </sequence>
  135. </complexType>
  136. <element name="genericCode" type="iris:codeType" abstract="true"/>
  137. <!-- ========================================= -->
  138. <!-- -->
  139. <!-- Entity References and -->
  140. <!-- Search Continuations -->
  141. <!-- -->
  142. <!-- ========================================= -->
  143. <complexType name="entityType">
  144. <sequence>
  145. <element name="displayName" minOccurs="0" maxOccurs="unbounded">
  146. <complexType>
  147. <simpleContent>
  148. <extension base="string">
  149. <attribute name="language" use="required" type="language"/>
  150. </extension>
  151. </simpleContent>
  152. </complexType>
  153. </element>
  154. </sequence>
  155. <attribute name="authority" use="required" type="token"/>
  156. <attribute name="resolution" type="token"/>
  157. <attribute name="registryType" use="required" type="anyURI"/>
  158. <attribute name="entityClass" use="required" type="token"/>
  159. <attribute name="entityName" use="required" type="token"/>
  160. <attribute name="referentType" use="required" form="qualified" type="iris:referentTypeType"/>
  161. <attribute name="temporaryReference" default="false" type="boolean"/>
  162. <attribute name="bagRef" type="IDREF"/>
  163. </complexType>
  164. <element name="entity" type="iris:entityType"/>
  165. <simpleType name="referentTypeType">
  166. <union memberTypes="QName iris:anyLiteralType"/>
  167. </simpleType>
  168. <simpleType name="anyLiteralType">
  169. <restriction base="string">
  170. <enumeration value="ANY"/>
  171. </restriction>
  172. </simpleType>
  173. <complexType name="searchContinuationType">
  174. <sequence>
  175. <element ref="iris:query"/>
  176. </sequence>
  177. <attribute name="bagRef" type="IDREF"/>
  178. <attribute name="authority" type="token" use="required"/>
  179. <attribute name="resolution" type="token"/>
  180. </complexType>
  181. <element name="searchContinuation" type="iris:searchContinuationType"/>
  182. <!-- ========================================= -->
  183. <!-- -->
  184. <!-- Bags -->
  185. <!-- -->
  186. <!-- ========================================= -->
  187. <complexType name="bagsType">
  188. <sequence>
  189. <element name="bag" minOccurs="1" maxOccurs="unbounded">
  190. <complexType>
  191. <complexContent>
  192. <extension base="iris:bagType">
  193. <attribute use="required" name="id" type="ID"/>
  194. </extension>
  195. </complexContent>
  196. </complexType>
  197. </element>
  198. </sequence>
  199. </complexType>
  200. <complexType name="bagType">
  201. <sequence>
  202. <any namespace="##any" processContents="skip" minOccurs="1" maxOccurs="1"/>
  203. </sequence>
  204. </complexType>
  205. <!-- ========================================= -->
  206. <!-- -->
  207. <!-- Derived Results for use with all -->
  208. <!-- registry types. -->
  209. <!-- -->
  210. <!-- ========================================= -->
  211. <!-- -->
  212. <!-- See Also -->
  213. <!-- -->
  214. <element name="seeAlso" type="iris:entityType"/>
  215. <!-- -->
  216. <!-- Service Identification -->
  217. <!-- -->
  218. <complexType name="serviceIdentificationType">
  219. <complexContent>
  220. <extension base="iris:resultType">
  221. <sequence>
  222. <element name="authorities" minOccurs="1" maxOccurs="1">
  223. <complexType>
  224. <sequence>
  225. <element name="authority" type="token" minOccurs="1" maxOccurs="unbounded"/>
  226. </sequence>
  227. </complexType>
  228. </element>
  229. <element name="operatorName" type="string" minOccurs="0" maxOccurs="1"/>
  230. <element name="eMail" type="string" minOccurs="0" maxOccurs="unbounded"/>
  231. <element name="phone" type="string" minOccurs="0" maxOccurs="unbounded"/>
  232. <element ref="iris:seeAlso" minOccurs="0" maxOccurs="unbounded"/>
  233. </sequence>
  234. </extension>
  235. </complexContent>
  236. </complexType>
  237. <element name="serviceIdentification" type="iris:serviceIdentificationType" substitutionGroup="iris:result"/>
  238. <!-- -->
  239. <!-- Limits -->
  240. <!-- -->
  241. <complexType name="limitsType">
  242. <complexContent>
  243. <extension base="iris:resultType">
  244. <sequence>
  245. <element name="totalQueries" minOccurs="0" maxOccurs="1">
  246. <complexType>
  247. <group ref="iris:timeLimitsGroup" minOccurs="1" maxOccurs="4"/>
  248. </complexType>
  249. </element>
  250. <element name="totalResults" minOccurs="0" maxOccurs="1">
  251. <complexType>
  252. <group ref="iris:timeLimitsGroup" minOccurs="1" maxOccurs="4"/>
  253. </complexType>
  254. </element>
  255. <element name="totalSessions" minOccurs="0" maxOccurs="1">
  256. <complexType>
  257. <group ref="iris:timeLimitsGroup" minOccurs="1" maxOccurs="4"/>
  258. </complexType>
  259. </element>
  260. <element name="otherRestrictions" minOccurs="0" maxOccurs="1">
  261. <complexType>
  262. <sequence>
  263. <element name="description" minOccurs="0" maxOccurs="unbounded">
  264. <complexType>
  265. <simpleContent>
  266. <extension base="string">
  267. <attribute name="language" type="language" use="required"/>
  268. </extension>
  269. </simpleContent>
  270. </complexType>
  271. </element>
  272. </sequence>
  273. </complexType>
  274. </element>
  275. <element ref="iris:seeAlso" minOccurs="0" maxOccurs="unbounded"/>
  276. </sequence>
  277. </extension>
  278. </complexContent>
  279. </complexType>
  280. <element name="limits" type="iris:limitsType" substitutionGroup="iris:result"/>
  281. <group name="timeLimitsGroup">
  282. <choice>
  283. <element name="perSecond" type="nonNegativeInteger"/>
  284. <element name="perMinute" type="nonNegativeInteger"/>
  285. <element name="perHour" type="nonNegativeInteger"/>
  286. <element name="perDay" type="nonNegativeInteger"/>
  287. </choice>
  288. </group>
  289. <!-- -->
  290. <!-- Simple Entity -->
  291. <!-- -->
  292. <complexType name="simpleEntityType">
  293. <complexContent>
  294. <extension base="iris:resultType">
  295. <sequence>
  296. <element name="property" minOccurs="1" maxOccurs="unbounded">
  297. <complexType>
  298. <simpleContent>
  299. <extension base="string">
  300. <attribute name="name" type="string" use="required"/>
  301. <attribute name="language" type="language" use="required"/>
  302. <attribute name="uri" type="anyURI"/>
  303. </extension>
  304. </simpleContent>
  305. </complexType>
  306. </element>
  307. </sequence>
  308. </extension>
  309. </complexContent>
  310. </complexType>
  311. <element name="simpleEntity" type="iris:simpleEntityType" substitutionGroup="iris:result"/>
  312. <!-- ========================================= -->
  313. <!-- -->
  314. <!-- Derived Controls and Reactions -->
  315. <!-- -->
  316. <!-- ========================================= -->
  317. <!-- -->
  318. <!-- Only Check Permissions -->
  319. <!-- -->
  320. <element name="onlyCheckPermissions">
  321. <complexType/>
  322. </element>
  323. <!-- -->
  324. <!-- Standard Reaction -->
  325. <!-- -->
  326. <element name="standardReaction">
  327. <complexType>
  328. <choice>
  329. <element name="controlAccepted">
  330. <complexType/>
  331. </element>
  332. <element name="controlDenied">
  333. <complexType/>
  334. </element>
  335. <element name="controlDisabled">
  336. <complexType/>
  337. </element>
  338. <element name="controlUnrecognized">
  339. <complexType/>
  340. </element>
  341. </choice>
  342. </complexType>
  343. </element>
  344. <!-- ========================================= -->
  345. <!-- -->
  346. <!-- Serialization -->
  347. <!-- -->
  348. <!-- ========================================= -->
  349. <complexType name="serializedReferralType">
  350. <sequence>
  351. <element name="source">
  352. <complexType>
  353. <attribute name="authority" use="required" type="token"/>
  354. <attribute name="resolution" type="token"/>
  355. <attribute name="registryType" type="anyURI" use="required"/>
  356. <attribute name="entityClass" type="token" use="required"/>
  357. <attribute name="entityName" type="token" use="required"/>
  358. </complexType>
  359. </element>
  360. <choice>
  361. <element ref="iris:searchContinuation"/>
  362. <element ref="iris:entity"/>
  363. </choice>
  364. </sequence>
  365. </complexType>
  366. <element name="serialization">
  367. <complexType>
  368. <choice minOccurs="1" maxOccurs="unbounded">
  369. <element ref="iris:result"/>
  370. <element name="serializedReferral" type="iris:serializedReferralType"/>
  371. </choice>
  372. </complexType>
  373. </element>
  374. </schema>