module.xsd 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: moser
  5. (C) Copyright IBM Corp. 2015, 2021
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="7.4">
  9. <xsd:include schemaLocation="metadata.xsd"/>
  10. <xsd:include schemaLocation="physical.xsd"/>
  11. <xsd:include schemaLocation="business.xsd"/>
  12. <xsd:include schemaLocation="view.xsd"/>
  13. <xsd:include schemaLocation="resource.xsd"/>
  14. <xsd:include schemaLocation="prompt.xsd"/>
  15. <xsd:element name="module">
  16. <xsd:annotation>
  17. <xsd:documentation>The Titan module.</xsd:documentation>
  18. </xsd:annotation>
  19. <xsd:complexType>
  20. <xsd:complexContent>
  21. <xsd:extension base="objectType">
  22. <xsd:sequence>
  23. <!--
  24. History:
  25. 3.0 : Helios R6
  26. 4.0 : Helios R7
  27. 5.0 : Helios R8+
  28. 6.0 : Endor R1
  29. 7.0 : Endor R3
  30. 8.0 : Endor R4
  31. 9.0 : Endor R5
  32. 10.0 : Endor R6
  33. 11.0 : Endor R7
  34. -->
  35. <xsd:element name="version" type="xsd:string" default="11.1">
  36. <xsd:annotation>
  37. <xsd:documentation>An explicit modeling version number, to detect modified definition or software. Note that the directory should change for major version changes, i.e. once per release.</xsd:documentation>
  38. </xsd:annotation>
  39. </xsd:element>
  40. <xsd:element name="container" type="xsd:string">
  41. <xsd:annotation>
  42. <xsd:documentation>Specifies the location where the module resides.</xsd:documentation>
  43. </xsd:annotation>
  44. </xsd:element>
  45. <xsd:sequence>
  46. <xsd:element name="use" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
  47. <xsd:annotation>
  48. <xsd:documentation>Specifies the imported module. The implementation should be able to resolve macros containing session parameters. This will give the ability to dynamically load the resource modules based on the current runLocal session parameter.</xsd:documentation>
  49. </xsd:annotation>
  50. </xsd:element>
  51. </xsd:sequence>
  52. <xsd:sequence>
  53. <xsd:element name="useSpec" minOccurs="0" maxOccurs="unbounded">
  54. <xsd:annotation>
  55. <xsd:documentation>This is the replacement for the use elements that were defined in earlier versions.</xsd:documentation>
  56. </xsd:annotation>
  57. <xsd:complexType>
  58. <xsd:sequence>
  59. <xsd:element name="identifier" type="xsd:string">
  60. <xsd:annotation>
  61. <xsd:documentation>The identifier/alias to use in multi-part identifiers. (LETTER | "_") (LETTER | DIGIT | "_")* </xsd:documentation>
  62. </xsd:annotation>
  63. </xsd:element>
  64. <xsd:element name="type" type="useSpecType" minOccurs="0"/>
  65. <xsd:element name="storeID" type="xsd:string" minOccurs="0"/>
  66. <xsd:element name="searchPath" type="xsd:string" minOccurs="0"/>
  67. <xsd:element name="imports" type="xsd:string" minOccurs="0"/>
  68. <xsd:element name="ancestors" minOccurs="0" maxOccurs="unbounded">
  69. <xsd:annotation>
  70. <xsd:documentation>All ancestors of the useSpec element, ordered from the top most ancestor to the parent. This field is not intended to be persisted.</xsd:documentation>
  71. </xsd:annotation>
  72. <xsd:complexType>
  73. <xsd:sequence>
  74. <xsd:element name="defaultName" type="xsd:string" minOccurs="0">
  75. <xsd:annotation>
  76. <xsd:documentation>The localized name of the ancestor.</xsd:documentation>
  77. </xsd:annotation>
  78. </xsd:element>
  79. <xsd:element name="storeID" type="xsd:string" minOccurs="0">
  80. <xsd:annotation>
  81. <xsd:documentation>The storeId of the ancestor.</xsd:documentation>
  82. </xsd:annotation>
  83. </xsd:element>
  84. </xsd:sequence>
  85. </xsd:complexType>
  86. </xsd:element>
  87. <xsd:element name="dataCacheExpiry" type="xsd:string" minOccurs="0">
  88. <xsd:annotation>
  89. <xsd:documentation>Specifies the data cache expiration time in seconds. A value of 0 signifies a data cache will not be used. The value can also be a macro expression. If the property is missing then automatic is assumed (i.e. computed from other settings)</xsd:documentation>
  90. </xsd:annotation>
  91. </xsd:element>
  92. <xsd:element name="property" type="propertyType" minOccurs="0" maxOccurs="unbounded">
  93. <xsd:annotation>
  94. <xsd:documentation>Generic property container.</xsd:documentation>
  95. </xsd:annotation>
  96. </xsd:element>
  97. </xsd:sequence>
  98. </xsd:complexType>
  99. </xsd:element>
  100. </xsd:sequence>
  101. <xsd:element name="expressionLocale" type="xsd:language" minOccurs="0">
  102. <xsd:annotation>
  103. <xsd:documentation>Specifies the expression locale for the module.</xsd:documentation>
  104. </xsd:annotation>
  105. </xsd:element>
  106. <xsd:element name="fmModel" type="xsd:string" minOccurs="0">
  107. <xsd:annotation>
  108. <xsd:documentation>Specifies the FM modelPath to use when querying this module in a V5 Query.</xsd:documentation>
  109. </xsd:annotation>
  110. </xsd:element>
  111. <xsd:choice>
  112. <xsd:annotation>
  113. <xsd:documentation>
  114. Please note minOccurs="0" maxOccurs="unbounded" is defined on each element, not on "choice".
  115. This ensures the generated JAXB class can marshal / unmarshal the module in XML/JSON format correctly.
  116. </xsd:documentation>
  117. </xsd:annotation>
  118. <!-- physical object -->
  119. <xsd:element ref="dataSource" minOccurs="0" maxOccurs="unbounded"/>
  120. <!-- business objects -->
  121. <xsd:element ref="querySubject" minOccurs="0" maxOccurs="unbounded"/>
  122. <xsd:element ref="filter" minOccurs="0" maxOccurs="unbounded"/>
  123. <xsd:element ref="calculation" minOccurs="0" maxOccurs="unbounded"/>
  124. <xsd:element ref="relationship" minOccurs="0" maxOccurs="unbounded"/>
  125. <xsd:element ref="parameterMap" minOccurs="0" maxOccurs="unbounded"/>
  126. <!-- view objects -->
  127. <xsd:element name="metadataTreeView" type="folderType" minOccurs="0" maxOccurs="unbounded"/>
  128. <xsd:element name="metadataTreeViewFocus" type="focus" minOccurs="0"/>
  129. <!-- text resource objects -->
  130. <xsd:element name="textResource" type="textResource" minOccurs="0" maxOccurs="unbounded"/>
  131. <xsd:element ref="drillGroup" minOccurs="0" maxOccurs="unbounded">
  132. <xsd:annotation>
  133. <xsd:documentation>drill Information.</xsd:documentation>
  134. </xsd:annotation>
  135. </xsd:element>
  136. <xsd:element ref="namedSet" minOccurs="0" maxOccurs="unbounded"/>
  137. <xsd:element ref="parameterValueSet" minOccurs="0" maxOccurs="unbounded"/>
  138. <xsd:element ref="prompt" minOccurs="0" maxOccurs="unbounded"/>
  139. </xsd:choice>
  140. <!-- Snapshot feature was deprecated as of 11.0.4 (Helios R4) -->
  141. <xsd:element name="dataRetrievalMode" default="liveConnection" minOccurs="0">
  142. <xsd:simpleType>
  143. <xsd:restriction base="xsd:NMTOKEN">
  144. <xsd:enumeration value="liveConnection"/>
  145. <xsd:enumeration value="snapShot"/>
  146. </xsd:restriction>
  147. </xsd:simpleType>
  148. </xsd:element>
  149. <xsd:element name="refActiveParameterValueSet" type="xsd:string" minOccurs="0">
  150. <xsd:annotation>
  151. <xsd:documentation>The identifer of the parameterSet that is designated as active. It will be used as a last resort to find a parameter values.
  152. Priority of finding parameters: request, global parameter, active parameter set.
  153. </xsd:documentation>
  154. </xsd:annotation>
  155. </xsd:element>
  156. </xsd:sequence>
  157. </xsd:extension>
  158. </xsd:complexContent>
  159. </xsd:complexType>
  160. </xsd:element>
  161. <xsd:simpleType name="useSpecType">
  162. <xsd:restriction base="xsd:string">
  163. <xsd:enumeration value="database"/>
  164. <xsd:enumeration value="file"/>
  165. <xsd:enumeration value="module"/>
  166. <xsd:enumeration value="dataset"/>
  167. <xsd:enumeration value="package"/>
  168. <xsd:enumeration value="wa_data_asset"/>
  169. <xsd:enumeration value="lwOLAP"/>
  170. <xsd:enumeration value="url"/>
  171. <xsd:enumeration value="report"/>
  172. </xsd:restriction>
  173. </xsd:simpleType>
  174. </xsd:schema>