MAQuery.xsd 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: mqp
  5. (C) Copyright IBM Corp. 2003, 2010
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
  9. <!-- XML XSD must be imported to define xml:space and xml:lang attributes -->
  10. <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
  11. <xs:complexType name="FunctionsConstraintType">
  12. <xs:annotation>
  13. <xs:documentation>
  14. Constraints are used to reduce the amount of function information returned to the client. The MA interface supports filtering different function contexts (relational, tabular, CRX) and type(“aggregate”, “operator”, etc.). The Constraint element of the function request has the Condition attribute that is a restricted XPath expression e.g. Condition="FDS[@context='tabular'].
  15. </xs:documentation>
  16. </xs:annotation>
  17. <xs:attribute name="Condition" type="xs:string" use="required"/>
  18. </xs:complexType>
  19. <xs:complexType name="ActionsConstraintType">
  20. <xs:annotation>
  21. <xs:documentation>
  22. Constraints are used to limit the scope of the actions to be retrieved. The MA interface supports the following constraints for actions : @contextType, @Coordinate, @DimensionLine.
  23. </xs:documentation>
  24. </xs:annotation>
  25. <xs:attribute name="Condition" type="xs:string" use="required"/>
  26. </xs:complexType>
  27. <xs:complexType name="FunctionsConstraintsType">
  28. <xs:annotation>
  29. <xs:documentation>
  30. The collection of contraints that can be applied for Function information retrieval.
  31. </xs:documentation>
  32. </xs:annotation>
  33. <xs:sequence maxOccurs="unbounded">
  34. <xs:element name="Constraint" type="FunctionsConstraintType">
  35. <xs:annotation>
  36. <xs:documentation>
  37. Constraints are used to limit the amount of function information returned to the client.
  38. </xs:documentation>
  39. </xs:annotation>
  40. </xs:element>
  41. </xs:sequence>
  42. </xs:complexType>
  43. <xs:complexType name="ActionsConstraintsType">
  44. <xs:annotation>
  45. <xs:documentation>
  46. The collection of contraints for an action defines the filter that can be applied for Function information retrieval.
  47. </xs:documentation>
  48. </xs:annotation>
  49. <xs:sequence maxOccurs="unbounded">
  50. <xs:element name="Constraint" type="ActionsConstraintType">
  51. <xs:annotation>
  52. <xs:documentation>
  53. Constraints are used to limit the actions to be retrieved. The MA interface supports the following constraints for actions : @contextType, @Coordinate, @DimensionLine.
  54. </xs:documentation>
  55. </xs:annotation>
  56. </xs:element>
  57. </xs:sequence>
  58. </xs:complexType>
  59. <xs:complexType name="FunctionsType">
  60. <xs:annotation>
  61. <xs:documentation>
  62. Supported only for Function information retrieval.
  63. </xs:documentation>
  64. </xs:annotation>
  65. <xs:sequence>
  66. <xs:element name="Properties" type="PropertiesType"/>
  67. <xs:element name="Constraints" type="FunctionsConstraintsType" minOccurs="0"/>
  68. </xs:sequence>
  69. <xs:attribute ref="xml:lang"/>
  70. <xs:attribute name="start_at" type="xs:string" use="required"/>
  71. <xs:attribute name="authoringLocale" type="xs:string"/>
  72. <xs:attribute name="Depth" type="xs:integer" use="optional" default="0"/>
  73. </xs:complexType>
  74. <xs:complexType name="MetadataType">
  75. <xs:annotation>
  76. <xs:documentation>
  77. Supported only for Metadata retrieval. Specify either start_atPath (for tree type navigation) or start_atRef (for lookup). The following attributes are deprecated : start_at, _enumLabels, xml:Lang, no_collections.
  78. </xs:documentation>
  79. </xs:annotation>
  80. <xs:sequence>
  81. <xs:element name="Start_at" type="MetadataPath" minOccurs="0"/>
  82. <xs:element name="Properties" type="PropertiesType"/>
  83. <xs:element name="Constraints" minOccurs="0">
  84. <xs:annotation>
  85. <xs:documentation>
  86. Note : Constraints are used to limit the metadata returned to the client.
  87. </xs:documentation>
  88. </xs:annotation>
  89. <xs:complexType>
  90. <xs:choice maxOccurs="unbounded">
  91. <xs:element name="Constraint" type="MetadataConstraintType"/>
  92. <xs:element name="BlockConstraint" type="MetadataConstraintsType"/>
  93. </xs:choice>
  94. </xs:complexType>
  95. </xs:element>
  96. </xs:sequence>
  97. <xs:attribute name="authoringLocale" type="xs:language" use="required">
  98. <xs:annotation>
  99. <xs:documentation>
  100. The "authoringLocale" attribute is a runtime locale that is supplied to MA when the connection is open that the end user wants to see the report data in. At runtime it is replaced by effective locale after applying model defaulting rules. Default is a default model locale.
  101. </xs:documentation>
  102. </xs:annotation>
  103. </xs:attribute>
  104. <xs:attribute ref="xml:lang" use="optional">
  105. <xs:annotation>
  106. <xs:documentation>
  107. The "xml:lang" attribute is the same attribute as "authoringLocale". It is deprecated, but is still supported because it is sometimes used in Query Studio queries.
  108. </xs:documentation>
  109. </xs:annotation>
  110. </xs:attribute>
  111. <xs:attribute name="Depth" type="xs:nonNegativeInteger" use="optional" default="0">
  112. <xs:annotation>
  113. <xs:documentation>
  114. The "Depth" attribute defines the depth of the sub_tree returned as a result of the Metadata or Function request. If this attribute is not specified, the whole tree will be returned as a result of the Metadata or Function request. Default is 0.Valid values are:0...n Only Depth =2 is used now by the reporting tools for retrieving the item's children.
  115. </xs:documentation>
  116. </xs:annotation>
  117. </xs:attribute>
  118. <xs:attribute name="start_atPath" type="xs:string" use="optional"/>
  119. <xs:attribute name="start_atRef" type="xs:string" use="optional"/>
  120. <xs:attribute name="_enumLabels" type="xs:nonNegativeInteger" use="optional" default="1">
  121. <xs:annotation>
  122. <xs:documentation>
  123. The "_enumLabels" attribute’s value serves as a flag to switch to return enumeration Labels instead of numeric values for properties such as type, usage…, value “1”- enum Labels in output. This will be deprecated when use enum Labels are in use. Default is 1- enum Labels in output.
  124. </xs:documentation>
  125. </xs:annotation>
  126. </xs:attribute>
  127. <xs:attribute name="no_collections" type="xs:nonNegativeInteger" use="optional" default="1">
  128. <xs:annotation>
  129. <xs:documentation>
  130. The "no_collections"attribute’s value serves as a flag to switch to no collection in the output. This will be deprecated when the trailing " _Collection" can be stripped from a request. Default value “1” - no collection in the output.
  131. </xs:documentation>
  132. </xs:annotation>
  133. </xs:attribute>
  134. <xs:attribute name="start_at" type="xs:string" use="optional"/>
  135. <xs:attribute name="ResultStart" type="xs:nonNegativeInteger" use="optional">
  136. <xs:annotation>
  137. <xs:documentation>
  138. The "ResultStart" attribute supports chunk retrieval, sets the starting point.
  139. </xs:documentation>
  140. </xs:annotation>
  141. </xs:attribute>
  142. <xs:attribute name="ResultCount" type="xs:nonNegativeInteger" use="optional">
  143. <xs:annotation>
  144. <xs:documentation >
  145. The "ResultCount"attribute supports chunk retrieval, limits the number of return entities.
  146. </xs:documentation>
  147. </xs:annotation>
  148. </xs:attribute>
  149. <xs:attribute name="OutputXML" type="xs:boolean" use="optional" default="true"/>
  150. </xs:complexType>
  151. <xs:complexType name="PropertiesType">
  152. <xs:annotation>
  153. <xs:documentation>
  154. The collection of properties that relate to metadata or function information retrieval.
  155. </xs:documentation>
  156. </xs:annotation>
  157. <xs:sequence maxOccurs="unbounded">
  158. <xs:element name="Property">
  159. <xs:annotation>
  160. <xs:documentation>
  161. Supported for both Metadata and Function information retrieval. Propery could be represented by @ followed by its name, i.e '@usage', '/' is the element separator, i.e. queryItem/@name, '*' is the wildcard, i.e.'queryItem/@* is the set of all attributes for the element,'.' is the current context, i.e. './folder' means all the folders under the model root.See patterns:./className, */className,className/classname, className/@name, */@name,./@name, /@name.
  162. </xs:documentation>
  163. </xs:annotation>
  164. <xs:complexType>
  165. <xs:attribute name="name" use="required">
  166. <xs:simpleType>
  167. <xs:restriction base="xs:string">
  168. <xs:enumeration value="*/@_path"/>
  169. <xs:enumeration value="*/@_ref"/>
  170. <xs:enumeration value="*/@name"/>
  171. <xs:enumeration value="*/@screenTip"/>
  172. <xs:enumeration value="*/@dimType"/>
  173. <xs:enumeration value="*/@caption"/>
  174. <xs:enumeration value="./calculation"/>
  175. <xs:enumeration value="./filter"/>
  176. <xs:enumeration value="./folder"/>
  177. <xs:enumeration value="./queryItem"/>
  178. <xs:enumeration value="./queryItemFolder"/>
  179. <xs:enumeration value="./querySubject"/>
  180. <xs:enumeration value="./member"/>
  181. <xs:enumeration value="*/@memberUniqueName"/>
  182. <xs:enumeration value="*/@memberCaption"/>
  183. <xs:enumeration value="*/@levelUniqueName"/>
  184. <xs:enumeration value="*/@levelNumber"/>
  185. <xs:enumeration value="*/@levelLabel"/>
  186. <xs:enumeration value="*/@parentUniqueName"/>
  187. <xs:enumeration value="*/@dimensionUniqueName "/>
  188. <xs:enumeration value="*/@hierarchyUniqueName"/>
  189. <xs:enumeration value="./dimension"/>
  190. <xs:enumeration value="./hierarchy"/>
  191. <xs:enumeration value="./levelRfe"/>
  192. <xs:enumeration value="./level"/>
  193. <xs:enumeration value="*/@datatype"/>
  194. <xs:enumeration value="*/@displayType"/>
  195. <xs:enumeration value="*/@promptCascadeOn"/>
  196. <xs:enumeration value="*/@promptDisplayItems"/>
  197. <xs:enumeration value="*/@promptFilterItems"/>
  198. <xs:enumeration value="*/@promptType"/>
  199. <xs:enumeration value="*/@regularAggregate"/>
  200. <xs:enumeration value="*/@usage"/>
  201. <xs:enumeration value="*/@sortOnRef"/>
  202. <xs:enumeration value="*/@promptCascadeOnRef"/>
  203. <xs:enumeration value="*/@decimalSeparator"/>
  204. <xs:enumeration value="*/@listSeparator"/>
  205. <xs:enumeration value="*/@modelSearchPath"/>
  206. </xs:restriction>
  207. </xs:simpleType>
  208. </xs:attribute>
  209. </xs:complexType>
  210. </xs:element>
  211. </xs:sequence>
  212. </xs:complexType>
  213. <xs:complexType name="ActionsPropertiesType">
  214. <xs:annotation>
  215. <xs:documentation>
  216. The collection of properties that relate to metadata or function information retrieval.
  217. </xs:documentation>
  218. </xs:annotation>
  219. <xs:sequence maxOccurs="unbounded">
  220. <xs:element name="Property">
  221. <xs:annotation>
  222. <xs:documentation>
  223. The possible list of action properties :Name, Description, CommandType, Command, CoordinateType, CoordinateValue.
  224. </xs:documentation>
  225. </xs:annotation>
  226. <xs:complexType>
  227. <xs:attribute name="name" use="required">
  228. <xs:simpleType>
  229. <xs:restriction base="xs:string">
  230. <xs:enumeration value="*/@Name"/>
  231. <xs:enumeration value="*/@CoordinateValue"/>
  232. <xs:enumeration value="./@CoordinateType"/>
  233. <xs:enumeration value="./@Command"/>
  234. <xs:enumeration value="./@CommandType"/>
  235. <xs:enumeration value="./@Description"/>
  236. </xs:restriction>
  237. </xs:simpleType>
  238. </xs:attribute>
  239. </xs:complexType>
  240. </xs:element>
  241. </xs:sequence>
  242. </xs:complexType>
  243. <xs:element name="request">
  244. <xs:annotation>
  245. <xs:documentation>
  246. Top level request element to make it a valid document. It may be followed by other elements. Only the first Metadata or Functions element will be processed.
  247. </xs:documentation>
  248. </xs:annotation>
  249. <xs:complexType>
  250. <xs:choice>
  251. <xs:element name="Functions" type="FunctionsType"/>
  252. <xs:element name="Metadata">
  253. <xs:complexType>
  254. <xs:complexContent>
  255. <xs:extension base="MetadataType"/>
  256. </xs:complexContent>
  257. </xs:complexType>
  258. </xs:element>
  259. <xs:element name="Actions" type="ActionsType"/>
  260. </xs:choice>
  261. </xs:complexType>
  262. </xs:element>
  263. <xs:complexType name="MetadataConstraintType">
  264. <xs:annotation>
  265. <xs:documentation>
  266. Note : The supported constraints are : Starts with ..., Ends with ..., Equal... , Not Equal ..., Contains .... The syntax is based on the xpath expressions, for example : contains('XML','X') ,starts-with('XML','X'), ends-with('XML','L'), price=9.80 , price!=9.80.
  267. </xs:documentation>
  268. </xs:annotation>
  269. <xs:attribute name="Condition" use="required">
  270. <xs:annotation>
  271. <xs:documentation>
  272. The "Condition" attribute is defined as the XPath expression.
  273. </xs:documentation>
  274. </xs:annotation>
  275. <xs:simpleType>
  276. <xs:restriction base="xs:string">
  277. <xs:pattern value="contains* "/>
  278. <xs:pattern value="starts-with* "/>
  279. <xs:pattern value="ends-with* "/>
  280. <xs:pattern value="="/>
  281. <xs:pattern value="!="/>
  282. </xs:restriction>
  283. </xs:simpleType>
  284. </xs:attribute>
  285. <xs:attribute name="CaseSensitive" type="xs:boolean" use="optional" default="true"/>
  286. </xs:complexType>
  287. <xs:complexType name="MetadataConstraintsType">
  288. <xs:sequence>
  289. <xs:choice minOccurs="2" maxOccurs="unbounded">
  290. <xs:element name="Constraint" type="MetadataConstraintType"/>
  291. <xs:element name="BlockConstraint">
  292. <xs:complexType>
  293. <xs:complexContent>
  294. <xs:extension base="MetadataConstraintsType"/>
  295. </xs:complexContent>
  296. </xs:complexType>
  297. </xs:element>
  298. </xs:choice>
  299. </xs:sequence>
  300. <xs:attribute name="Operation" type="xs:string" use="optional" default="AND"/>
  301. <xs:attribute name="Name" type="xs:string" use="optional"/>
  302. <xs:attribute name="Type" use="optional" default="Block">
  303. <xs:simpleType>
  304. <xs:restriction base="xs:string">
  305. <xs:enumeration value="Block"/>
  306. <xs:enumeration value="Set"/>
  307. </xs:restriction>
  308. </xs:simpleType>
  309. </xs:attribute>
  310. </xs:complexType>
  311. <xs:complexType name="MetadataPath">
  312. <xs:sequence>
  313. <xs:element name="Path" type="xs:string" maxOccurs="unbounded"/>
  314. </xs:sequence>
  315. </xs:complexType>
  316. <xs:complexType name="ActionsType">
  317. <xs:sequence>
  318. <xs:element name="Properties" type="ActionsPropertiesType"/>
  319. <xs:element name="Constraints" type="ActionsConstraintsType"/>
  320. </xs:sequence>
  321. <xs:attribute name="authoringLocale" type="xs:language" use="required">
  322. <xs:annotation>
  323. <xs:documentation>
  324. The "authoringLocale" attribute is a runtime locale that is supplied to MA when the connection is open that the end user wants to see the report data in. At runtime it is replaced by effective locale after applying model defaulting rules. Default is a default model locale.
  325. </xs:documentation>
  326. </xs:annotation>
  327. </xs:attribute>
  328. <xs:attribute ref="xml:lang" use="optional">
  329. <xs:annotation>
  330. <xs:documentation>
  331. The "xml:lang" attribute is the same attribute as authoringLocale. It is deprecated, but is still supported because it is sometimes used in Query Studio queries.
  332. </xs:documentation>
  333. </xs:annotation>
  334. </xs:attribute>
  335. </xs:complexType>
  336. </xs:schema>