relmdMetadataBrowse.xsd 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- edited with XMLSpy v2010 rel. 3 sp1 (http://www.altova.com) by Biraj Saha (IBM SWG CANADA) -->
  3. <!--
  4. Licensed Materials - Property of IBM
  5. IBM Cognos Products: relmd
  6. (C) Copyright IBM Corp. 2008, 2015
  7. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  8. -->
  9. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:relmd="http://www.ibm.com/xmlns/prod/cognos/relmd/1/0" targetNamespace="http://www.ibm.com/xmlns/prod/cognos/relmd/1/0" elementFormDefault="qualified" attributeFormDefault="qualified">
  10. <xs:include schemaLocation="relmdMetadataBrowseRules.xsd"/>
  11. <xs:include schemaLocation="../source/relmdMetadataSource.xsd"/>
  12. <!---->
  13. <!--Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.-->
  14. <!--Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).-->
  15. <xs:attributeGroup name="schemaParentPath">
  16. <xs:attribute name="parentCatalog" type="xs:string" use="optional"/>
  17. </xs:attributeGroup>
  18. <xs:attributeGroup name="parentSchemaPath">
  19. <xs:attributeGroup ref="relmd:schemaParentPath"/>
  20. <xs:attribute name="parentSchema" type="xs:string" use="required"/>
  21. </xs:attributeGroup>
  22. <xs:attributeGroup name="parentColumnContainerPath">
  23. <xs:attributeGroup ref="relmd:parentSchemaPath"/>
  24. <xs:attribute name="parentObject" type="xs:string" use="required"/>
  25. </xs:attributeGroup>
  26. <xs:element name="browseMetadataRequest">
  27. <xs:complexType>
  28. <xs:sequence>
  29. <xs:element ref="relmd:contentStoreDatabaseConnection"/>
  30. <xs:group ref="relmd:browseFunction"/>
  31. </xs:sequence>
  32. </xs:complexType>
  33. </xs:element>
  34. <xs:element name="browseMetadataResult">
  35. <xs:complexType>
  36. <xs:choice>
  37. <xs:element name="browsedObject" minOccurs="0" maxOccurs="unbounded">
  38. <xs:complexType>
  39. <xs:attribute name="name" type="xs:string" use="required"/>
  40. <xs:attribute name="description" type="xs:short"/>
  41. </xs:complexType>
  42. </xs:element>
  43. <xs:group ref="relmd:cmDataSourceConnectionFaults"/>
  44. </xs:choice>
  45. </xs:complexType>
  46. </xs:element>
  47. <xs:group name="browseFunction">
  48. <xs:choice>
  49. <xs:element name="catalogsBrowse">
  50. <xs:complexType>
  51. <xs:attributeGroup ref="relmd:browseOptions"/>
  52. </xs:complexType>
  53. </xs:element>
  54. <xs:element name="schemasBrowse">
  55. <xs:complexType>
  56. <xs:attributeGroup ref="relmd:schemaParentPath"/>
  57. <xs:attributeGroup ref="relmd:browseOptions"/>
  58. </xs:complexType>
  59. </xs:element>
  60. <xs:element name="tablesBrowse">
  61. <xs:complexType>
  62. <xs:attributeGroup ref="relmd:parentSchemaPath"/>
  63. <xs:attributeGroup ref="relmd:browseOptions"/>
  64. </xs:complexType>
  65. </xs:element>
  66. <xs:element name="viewsBrowse">
  67. <xs:complexType>
  68. <xs:attributeGroup ref="relmd:parentSchemaPath"/>
  69. <xs:attributeGroup ref="relmd:browseOptions"/>
  70. </xs:complexType>
  71. </xs:element>
  72. <xs:element name="columnsBrowse">
  73. <xs:complexType>
  74. <xs:attributeGroup ref="relmd:parentColumnContainerPath"/>
  75. </xs:complexType>
  76. </xs:element>
  77. <xs:element name="synonymsBrowse">
  78. <xs:complexType>
  79. <xs:attributeGroup ref="relmd:parentSchemaPath"/>
  80. <xs:attributeGroup ref="relmd:browseOptions"/>
  81. </xs:complexType>
  82. </xs:element>
  83. <xs:element name="proceduresBrowse">
  84. <xs:complexType>
  85. <xs:attributeGroup ref="relmd:parentSchemaPath"/>
  86. <xs:attributeGroup ref="relmd:browseOptions"/>
  87. </xs:complexType>
  88. </xs:element>
  89. <xs:element name="functionsBrowse">
  90. <xs:complexType>
  91. <xs:attributeGroup ref="relmd:parentSchemaPath"/>
  92. <xs:attributeGroup ref="relmd:browseOptions"/>
  93. </xs:complexType>
  94. </xs:element>
  95. </xs:choice>
  96. </xs:group>
  97. <xs:attributeGroup name="browseOptions">
  98. <xs:attribute name="browseQueryType" use="optional" default="regular">
  99. <xs:simpleType>
  100. <xs:restriction base="xs:NMTOKEN">
  101. <xs:enumeration value="regular"/>
  102. <xs:enumeration value="systemObjects"/>
  103. </xs:restriction>
  104. </xs:simpleType>
  105. </xs:attribute>
  106. </xs:attributeGroup>
  107. </xs:schema>