Initial version of mdx-tools.pl
[mdx-tools.git] / metadata.xml
blob46d153df14a725dce7b1e0edb527cd74f3d7e263
1 <?xml version="1.0" encoding="UTF-8"?>
2 <metadata>
3     <database>
4         <engine>mysql</engine>
6         <host>localhost</host>
7         <port>3306</port>
9         <name>odwa</name>
10     </database>
12     <measures>
13         <measure>
14             <uid>M1</uid>
16             <name>Order Quantity</name>
17             <desc>Order Quantity measure</desc>
19             <table>factinternetsales</table>
20             <field>OrderQuantity</field>
22             <format>%d</format>
23             <function>sum</function>
24         </measure>
26         <measure>
27             <uid>M2</uid>
29             <name>Sales Amount</name>
30             <desc>Sales Amount measure</desc>
32             <table>factinternetsales</table>
33             <field>SalesAmount</field>
35             <format>%d</format>
36             <function>sum</function>
37         </measure>
39         <measure>
40             <uid>M3</uid>
42             <name>Freight</name>
43             <desc>Freight measure</desc>
45             <table>factinternetsales</table>
46             <field>Freight</field>
48             <format>%.2f</format>
49             <function>sum</function>
50         </measure>
51     </measures>
53     <dimensions>
54         <dimension>
55             <uid>D1</uid>
57             <name>Order Date</name>
58             <desc>Order Date dimension</desc>
60             <table>dimtime</table>
62             <primary>TimeKey</primary>
63             <foreign>OrderDateKey</foreign>
65             <default>D1H1</default>
67             <hierarchies>
68                 <hierarchy>
69                     <uid>D1H1</uid>
71                     <name>Calendar</name>
72                     <desc>Calendar hierarchy</desc>
74                     <default>D1H1L1</default>
76                     <levels>
77                         <level>
78                             <uid>D1H1L1</uid>
80                             <name>Year</name>
81                             <desc>Year (calendar)</desc>
83                             <field>CalendarYear</field>
84                             <dtype>char(4)</dtype>
86                             <default>D1H1L1M1</default>
88                             <members>
89                                 <member>
90                                     <uid>D1H1L1M1</uid>
92                                     <name>2001</name>
93                                     <item>2001</item>
95                                     <children>
96                                         <child>
97                                             <uid>D1H1L1M1C1</uid>
98                                             <ref>D1H1L2M1</ref>
99                                         </child>
101                                         <child>
102                                             <uid>D1H1L1M1C2</uid>
103                                             <ref>D1H1L2M2</ref>
104                                         </child>
105                                     </children>
106                                 </member>
108                                 <member>
109                                     <uid>D1H1L1M2</uid>
111                                     <name>2002</name>
112                                     <item>2002</item>
114                                     <children>
115                                         <child>
116                                             <uid>D1H1L1M2C1</uid>
117                                             <ref>D1H1L2M1</ref>
118                                         </child>
120                                         <child>
121                                             <uid>D1H1L1M2C2</uid>
122                                             <ref>D1H1L2M2</ref>
123                                         </child>
124                                     </children>
125                                 </member>
127                                 <member>
128                                     <uid>D1H1L1M3</uid>
130                                     <name>2003</name>
131                                     <item>2003</item>
133                                     <children>
134                                         <child>
135                                             <uid>D1H1L1M3C1</uid>
136                                             <ref>D1H1L2M1</ref>
137                                         </child>
139                                         <child>
140                                             <uid>D1H1L1M3C2</uid>
141                                             <ref>D1H1L2M2</ref>
142                                         </child>
143                                     </children>
144                                 </member>
146                                 <member>
147                                     <uid>D1H1L1M4</uid>
149                                     <name>2004</name>
150                                     <item>2004</item>
152                                     <children>
153                                         <child>
154                                             <uid>D1H1L1M4C1</uid>
155                                             <ref>D1H1L2M1</ref>
156                                         </child>
158                                         <child>
159                                             <uid>D1H1L1M4C2</uid>
160                                             <ref>D1H1L2M2</ref>
161                                         </child>
162                                     </children>
163                                 </member>
164                             </members>
165                         </level>
167                         <level>
168                             <uid>D1H1L2</uid>
170                             <name>Semester</name>
171                             <desc>Semester (calendar)</desc>
173                             <field>CalendarSemester</field>
174                             <dtype>tinyint(4)</dtype>
176                             <default>D1H1L2M1</default>
178                             <members>
179                                 <member>
180                                     <uid>D1H1L2M1</uid>
182                                     <name>S1</name>
183                                     <item>1</item>
185                                     <children>
186                                         <child>
187                                             <uid>D1H1L2M1C1</uid>
188                                             <ref>D1H1L3M1</ref>
189                                         </child>
191                                         <child>
192                                             <uid>D1H1L2M1C2</uid>
193                                             <ref>D1H1L3M2</ref>
194                                         </child>
195                                     </children>
196                                 </member>
198                                 <member>
199                                     <uid>D1H1L2M2</uid>
201                                     <name>S2</name>
202                                     <item>2</item>
204                                     <children>
205                                         <child>
206                                             <uid>D1H1L2M2C1</uid>
207                                             <ref>D1H1L3M3</ref>
208                                         </child>
210                                         <child>
211                                             <uid>D1H1L2M2C2</uid>
212                                             <ref>D1H1L3M4</ref>
213                                         </child>
214                                     </children>
215                                 </member>
216                             </members>
217                         </level>
219                         <level>
220                             <uid>D1H1L3</uid>
222                             <name>Quarter</name>
223                             <desc>Quarter (calendar)</desc>
225                             <field>CalendarQuarter</field>
226                             <dtype>tinyint(4)</dtype>
228                             <default>D1H1L3M1</default>
230                             <members>
231                                 <member>
232                                     <uid>D1H1L3M1</uid>
234                                     <name>Q1</name>
235                                     <item>1</item>
237                                     <children>
238                                         <child>
239                                             <uid>D1H1L3M1C1</uid>
240                                             <ref>D1H1L4M1</ref>
241                                         </child>
243                                         <child>
244                                             <uid>D1H1L3M1C2</uid>
245                                             <ref>D1H1L4M2</ref>
246                                         </child>
248                                         <child>
249                                             <uid>D1H1L3M1C3</uid>
250                                             <ref>D1H1L4M3</ref>
251                                         </child>
252                                     </children>
253                                 </member>
255                                 <member>
256                                     <uid>D1H1L3M2</uid>
258                                     <name>Q2</name>
259                                     <item>2</item>
261                                     <children>
262                                         <child>
263                                             <uid>D1H1L3M2C1</uid>
264                                             <ref>D1H1L4M4</ref>
265                                         </child>
267                                         <child>
268                                             <uid>D1H1L3M2C2</uid>
269                                             <ref>D1H1L4M5</ref>
270                                         </child>
272                                         <child>
273                                             <uid>D1H1L3M2C3</uid>
274                                             <ref>D1H1L4M6</ref>
275                                         </child>
276                                     </children>
277                                 </member>
279                                 <member>
280                                     <uid>D1H1L3M3</uid>
282                                     <name>Q3</name>
283                                     <item>3</item>
285                                     <children>
286                                         <child>
287                                             <uid>D1H1L3M3C1</uid>
288                                             <ref>D1H1L4M7</ref>
289                                         </child>
291                                         <child>
292                                             <uid>D1H1L3M3C2</uid>
293                                             <ref>D1H1L4M8</ref>
294                                         </child>
296                                         <child>
297                                             <uid>D1H1L3M3C3</uid>
298                                             <ref>D1H1L4M9</ref>
299                                         </child>
300                                     </children>
301                                 </member>
303                                 <member>
304                                     <uid>D1H1L3M4</uid>
306                                     <name>Q4</name>
307                                     <item>4</item>
309                                     <children>
310                                         <child>
311                                             <uid>D1H1L3M4C1</uid>
312                                             <ref>D1H1L4M10</ref>
313                                         </child>
315                                         <child>
316                                             <uid>D1H1L3M4C2</uid>
317                                             <ref>D1H1L4M11</ref>
318                                         </child>
320                                         <child>
321                                             <uid>D1H1L3M4C3</uid>
322                                             <ref>D1H1L4M12</ref>
323                                         </child>
324                                     </children>
325                                 </member>
326                             </members>
327                         </level>
329                         <level>
330                             <uid>D1H1L4</uid>
332                             <name>Month</name>
333                             <desc>Month (calendar)</desc>
335                             <field>MonthNumberOfYear</field>
336                             <dtype>tinyint(4)</dtype>
338                             <default>D1H1L3M1</default>
340                             <members>
341                                 <member>
342                                     <uid>D1H1L3M1</uid>
344                                     <name>January</name>
345                                     <item>1</item>
346                                 </member>
348                                 <member>
349                                     <uid>D1H1L3M2</uid>
351                                     <name>February</name>
352                                     <item>2</item>
353                                 </member>
355                                 <member>
356                                     <uid>D1H1L3M3</uid>
358                                     <name>March</name>
359                                     <item>3</item>
360                                 </member>
362                                 <member>
363                                     <uid>D1H1L3M4</uid>
365                                     <name>April</name>
366                                     <item>4</item>
367                                 </member>
369                                 <member>
370                                     <uid>D1H1L3M5</uid>
372                                     <name>May</name>
373                                     <item>5</item>
374                                 </member>
376                                 <member>
377                                     <uid>D1H1L3M6</uid>
379                                     <name>June</name>
380                                     <item>6</item>
381                                 </member>
383                                 <member>
384                                     <uid>D1H1L3M7</uid>
386                                     <name>July</name>
387                                     <item>7</item>
388                                 </member>
390                                 <member>
391                                     <uid>D1H1L3M8</uid>
393                                     <name>August</name>
394                                     <item>8</item>
395                                 </member>
397                                 <member>
398                                     <uid>D1H1L3M9</uid>
400                                     <name>September</name>
401                                     <item>9</item>
402                                 </member>
404                                 <member>
405                                     <uid>D1H1L3M10</uid>
407                                     <name>Ocober</name>
408                                     <item>10</item>
409                                 </member>
411                                 <member>
412                                     <uid>D1H1L3M11</uid>
414                                     <name>November</name>
415                                     <item>11</item>
416                                 </member>
418                                 <member>
419                                     <uid>D1H1L3M12</uid>
421                                     <name>December</name>
422                                     <item>12</item>
423                                 </member>
424                             </members>
425                         </level>
426                     </levels>
427                 </hierarchy>
428             </hierarchies>
429         </dimension>
431         <dimension>
432             <uid>D2</uid>
434             <name>Customer</name>
435             <desc>Customer dimension</desc>
437             <table>dimcustomer</table>
439             <primary>CustomerKey</primary>
440             <foreign>CustomerKey</foreign>
442             <default>D2H1</default>
444             <hierarchies>
445                 <hierarchy>
446                     <uid>D2H1</uid>
448                     <name>Gender</name>
449                     <desc>Gender hierarchy</desc>
451                     <default>D2H1L1</default>
453                     <levels>
454                         <level>
455                             <uid>D2H1L1</uid>
457                             <name>Gender</name>
458                             <desc>Gender level</desc>
460                             <field>Gender</field>
461                             <dtype>varchar(1)</dtype>
463                             <default>D2H1L1M1</default>
465                             <members>
466                                 <member>
467                                     <uid>D2H1L1M1</uid>
469                                     <name>Female</name>
470                                     <item>F</item>
471                                 </member>
472                                 <member>
473                                     <uid>D2H1L1M2</uid>
475                                     <name>Male</name>
476                                     <item>M</item>
477                                 </member>
478                             </members>
479                         </level>
480                     </levels>
481                 </hierarchy>
482             </hierarchies>
483         </dimension>
485         <dimension>
486             <uid>D3</uid>
488             <name>Product</name>
489             <desc>Product dimension</desc>
491             <table>dimproduct</table>
493             <primary>ProductKey</primary>
494             <foreign>ProductKey</foreign>
496             <default>D3H1</default>
498             <hierarchies>
499                 <hierarchy>
500                     <uid>D3H1</uid>
502                     <name>Color</name>
503                     <desc>Color hierarchy</desc>
505                     <default>D3H1L1</default>
507                     <levels>
508                         <level>
509                             <uid>D3H1L1</uid>
511                             <name>Color</name>
512                             <desc>Color level</desc>
514                             <field>Color</field>
515                             <dtype>varchar(15)</dtype>
517                             <default>D3H1L1M1</default>
519                             <members>
520                                 <member>
521                                     <uid>D3H1L1M1</uid>
523                                     <name>Unknown</name>
524                                     <item>NA</item>
525                                 </member>
526                                 <member>
527                                     <uid>D3H1L1M2</uid>
529                                     <name>Black</name>
530                                     <item>Black</item>
531                                 </member>
532                                 <member>
533                                     <uid>D3H1L1M3</uid>
535                                     <name>Silver</name>
536                                     <item>Silver</item>
537                                 </member>
538                                 <member>
539                                     <uid>D3H1L1M4</uid>
541                                     <name>Red</name>
542                                     <item>Red</item>
543                                 </member>
544                                 <member>
545                                     <uid>D3H1L1M5</uid>
547                                     <name>White</name>
548                                     <item>White</item>
549                                 </member>
550                                 <member>
551                                     <uid>D3H1L1M6</uid>
553                                     <name>Blue</name>
554                                     <item>Blue</item>
555                                 </member>
556                                 <member>
557                                     <uid>D3H1L1M7</uid>
559                                     <name>Multi</name>
560                                     <item>Multi</item>
561                                 </member>
562                                 <member>
563                                     <uid>D3H1L1M8</uid>
565                                     <name>Yellow</name>
566                                     <item>Yellow</item>
567                                 </member>
568                                 <member>
569                                     <uid>D3H1L1M9</uid>
571                                     <name>Grey</name>
572                                     <item>Grey</item>
573                                 </member>
574                                 <member>
575                                     <uid>D3H1L1M10</uid>
577                                     <name>Silver/Black</name>
578                                     <item>Silver/Black</item>
579                                 </member>
580                             </members>
581                         </level>
582                     </levels>
583                 </hierarchy>
584             </hierarchies>
585         </dimension>
586     </dimensions>
587 </metadata>