DataTutorial.xml 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <book lang="en_US" xml:base="../">
  5. <title>HPCC Data Tutorial</title>
  6. <bookinfo>
  7. <title>HPCC Data Tutorial</title>
  8. <mediaobject>
  9. <imageobject>
  10. <imagedata fileref="images/redswooshWithLogo3.jpg" />
  11. </imageobject>
  12. </mediaobject>
  13. <author>
  14. <surname>Boca Raton Documentation Team</surname>
  15. </author>
  16. <legalnotice>
  17. <para>We welcome your comments and feedback about this document via
  18. email to <email>docfeedback@hpccsystems.com</email></para>
  19. <para>Please include <emphasis role="bold">Documentation
  20. Feedback</emphasis> in the subject line and reference the document name,
  21. page numbers, and current Version Number in the text of the
  22. message.</para>
  23. <para>LexisNexis and the Knowledge Burst logo are registered trademarks
  24. of Reed Elsevier Properties Inc., used under license.</para>
  25. <para>HPCC Systems<superscript>®</superscript> is a registered trademark
  26. of LexisNexis Risk Data Management Inc.</para>
  27. <para>Other products and services may be trademarks or registered
  28. trademarks of their respective companies.</para>
  29. <para>All names and example data used in this manual are fictitious. Any
  30. similarity to actual persons, living or dead, is purely
  31. coincidental.</para>
  32. <para></para>
  33. </legalnotice>
  34. <xi:include href="common/Version.xml"
  35. xpointer="xpointer(//*[@id='FooterInfo'])"
  36. xmlns:xi="http://www.w3.org/2001/XInclude" />
  37. <!--Release Info makes a running page footer: now an include! -->
  38. <!--The following include statement pulls in the date_ver from version.xml-->
  39. <xi:include href="common/Version.xml"
  40. xpointer="xpointer(//*[@id='DateVer'])"
  41. xmlns:xi="http://www.w3.org/2001/XInclude" />
  42. <corpname>HPCC Systems<superscript>®</superscript></corpname>
  43. <!--corpname never prints-->
  44. <xi:include href="common/Version.xml"
  45. xpointer="xpointer(//*[@id='Copyright'])"
  46. xmlns:xi="http://www.w3.org/2001/XInclude" />
  47. <!--Copyright tag inserts the symbol automatically: Now an Include!-->
  48. <mediaobject role="logo">
  49. <imageobject>
  50. <imagedata fileref="images/LN_Rightjustified.jpg" />
  51. </imageobject>
  52. </mediaobject>
  53. </bookinfo>
  54. <chapter id="DataTutorialIntroduction">
  55. <title>Introduction</title>
  56. <sect1 id="Introduction_Case-Study-and-Tutorial" role="nobrk">
  57. <title>The ECL Development Process</title>
  58. <para>This tutorial provides a walk-through of the development process,
  59. from beginning to end, and is designed to be an introduction to working
  60. with data on any HPCCSystems HPCC<footnote>
  61. <para><emphasis role="bold">H</emphasis>igh <emphasis
  62. role="bold">P</emphasis>erformance <emphasis
  63. role="bold">C</emphasis>omputing <emphasis
  64. role="bold">C</emphasis>luster (HPCC) is a massively parallel
  65. processing computing platform that solves Big Data problems. See
  66. http://www.hpccsystems.com/Why-HPCC/How-it-works for more
  67. details.</para>
  68. </footnote>. We will write code in ECL<footnote>
  69. <para><emphasis role="bold">E</emphasis>nterprise <emphasis
  70. role="bold">C</emphasis>ontrol <emphasis
  71. role="bold">L</emphasis>anguage (ECL) is a declarative, data centric
  72. programming language used to manage all aspects of the massive data
  73. joins, sorts, and builds that truly differentiate HPCC (High
  74. Performance Computing Cluster) from other technologies in its
  75. ability to provide flexible data analysis on a massive scale.</para>
  76. </footnote>to process our data and query it.</para>
  77. <para>This tutorial assumes:</para>
  78. <itemizedlist>
  79. <listitem>
  80. <para>You have a running HPCC. This can be a VM Edition or a single
  81. or multinode HPCC platform</para>
  82. </listitem>
  83. </itemizedlist>
  84. <para>You have the ECL IDE<footnote>
  85. <para>The ECL IDE (Integrated Development Environment) is the tool
  86. used to create queries into your data and ECL files with which to
  87. build your queries.</para>
  88. </footnote> installed and configured</para>
  89. <para>In this tutorial, we will:</para>
  90. <itemizedlist mark="bullet">
  91. <listitem>
  92. <para>Download a raw data file</para>
  93. <para>There are links to data file available at <ulink
  94. url="https://hpccsystems.com/training/documentation/learning-ecl">https://hpccsystems.com/training/documentation/learning-ecl</ulink></para>
  95. <para>The download is approximately 30 MB (compressed) and is
  96. available in either ZIP or .tar.gz format. Choose the appropriate
  97. link.</para>
  98. </listitem>
  99. <listitem>
  100. <para>Spray the file to a Data Refinery cluster HPCC clusters
  101. "spray" data into file parts on each node.</para>
  102. <para>A <emphasis>spray</emphasis> or <emphasis>import</emphasis> is
  103. the relocation of a data file from one location to an HPCC cluster.
  104. The term spray was adopted due to the nature of the file movement --
  105. the file is partitioned across all nodes within a cluster.</para>
  106. </listitem>
  107. <listitem>
  108. <para>Examine the data and determine the pre-processing we need to
  109. perform</para>
  110. </listitem>
  111. <listitem>
  112. <para>Pre-process the data to produce a new data file</para>
  113. </listitem>
  114. <listitem>
  115. <para>Determine the types of queries we want</para>
  116. </listitem>
  117. <listitem>
  118. <para>Create the queries</para>
  119. </listitem>
  120. <listitem>
  121. <para>Test the queries</para>
  122. </listitem>
  123. <listitem>
  124. <para>Deploy them to a Rapid Data Delivery Engine (RDDE) cluster,
  125. also know as a Roxie cluster.</para>
  126. </listitem>
  127. </itemizedlist>
  128. </sect1>
  129. </chapter>
  130. <chapter id="Working_with_Data">
  131. <title>Working with Data</title>
  132. <sect1 id="The_Original_Data" role="nobrk">
  133. <title>The Original Data</title>
  134. <para>In this scenario, we receive a structured data file containing
  135. records with people's names and addresses. The HPCC also supports
  136. unstructured data, but this example is simpler. This file is documented
  137. in the following table:</para>
  138. <para></para>
  139. <para><informaltable colsep="1" frame="all" rowsep="1">
  140. <tgroup cols="3">
  141. <colspec colwidth="147.60pt" />
  142. <colspec colwidth="147.60pt" />
  143. <colspec colwidth="147.60pt" />
  144. <thead>
  145. <row>
  146. <entry align="left">Field Name</entry>
  147. <entry align="left">Type</entry>
  148. <entry align="left">Description</entry>
  149. </row>
  150. </thead>
  151. <tbody>
  152. <row>
  153. <entry>FirstName</entry>
  154. <entry>15 Character String</entry>
  155. <entry>First Name</entry>
  156. </row>
  157. <row>
  158. <entry>LastName</entry>
  159. <entry>25 Character String</entry>
  160. <entry>Last name</entry>
  161. </row>
  162. <row>
  163. <entry>MiddleName</entry>
  164. <entry>15 Character String</entry>
  165. <entry>Middle Name</entry>
  166. </row>
  167. <row>
  168. <entry>Zip</entry>
  169. <entry>5 Character String</entry>
  170. <entry>ZIP Code</entry>
  171. </row>
  172. <row>
  173. <entry>Street</entry>
  174. <entry>42 Character String</entry>
  175. <entry>Street Address</entry>
  176. </row>
  177. <row>
  178. <entry>City</entry>
  179. <entry>20 Character String</entry>
  180. <entry>City</entry>
  181. </row>
  182. <row>
  183. <entry>State</entry>
  184. <entry>2 Character String</entry>
  185. <entry>State</entry>
  186. </row>
  187. </tbody>
  188. </tgroup>
  189. </informaltable></para>
  190. <para>This gives us a record length of 124 (the total of all field
  191. lengths). You will need to know this length for the <emphasis
  192. role="bold">File Spray</emphasis> process.</para>
  193. <para></para>
  194. <sect2 id="Uploading_a_file">
  195. <title>Load the Incoming Data File to your Landing Zone</title>
  196. <para>A Landing Zone (or Drop Zone) is a physical storage location
  197. defined in your HPCC's environment. A daemon (DaFileSrv) must be
  198. running on that server to enable file sprays and desprays.</para>
  199. <para>For smaller data files, you can use the upload/download file
  200. utility in ECL Watch (a Web-based interface to your HPCC platform).
  201. The sample data file is ~100 mb.</para>
  202. <orderedlist>
  203. <listitem>
  204. <para>Download the sample data file from the HPCC
  205. Systems<superscript>®</superscript> portal.</para>
  206. <para>The data file is available from links found on <ulink
  207. url="http://hpccsystems.com/community/docs/data-tutorial-guide">http://hpccsystems.com/community/docs/data-tutorial-guide</ulink>.
  208. The download is approximately 30 MB (compressed) and is available
  209. in either ZIP or tar.gz format (<emphasis
  210. role="bold">OriginalPerson.tar.gz</emphasis> or <emphasis
  211. role="bold">OriginalPerson.zip</emphasis>)</para>
  212. </listitem>
  213. <listitem>
  214. <para>Extract it to a folder on your local machine.</para>
  215. </listitem>
  216. <listitem>
  217. <para>In your browser, go to the <emphasis role="bold">ECL
  218. Watch</emphasis> URL. For example, http://nnn.nnn.nnn.nnn:8010,
  219. where nnn.nnn.nnn.nnn is your ESP<footnote>
  220. <para>The ESP (Enterprise Services Platform) Server is the
  221. communication layer server in you HPCC environment.</para>
  222. </footnote> Server's IP address.</para>
  223. <para><informaltable colsep="1" frame="all" rowsep="1">
  224. <?dbfo keep-together="always"?>
  225. <tgroup cols="2">
  226. <colspec colwidth="49.50pt" />
  227. <colspec />
  228. <tbody>
  229. <row>
  230. <entry><inlinegraphic
  231. fileref="images/caution.png" /></entry>
  232. <entry>Your IP address could be different from the ones
  233. provided in the example images. Please use the IP
  234. address provided by <emphasis
  235. role="bold">your</emphasis> installation.</entry>
  236. </row>
  237. </tbody>
  238. </tgroup>
  239. </informaltable></para>
  240. </listitem>
  241. <listitem>
  242. <?dbfo keep-together="always"?>
  243. <para>From the ECL Watch home page, click on the <emphasis
  244. role="bold">Files</emphasis> icon, then click the <emphasis
  245. role="bold">Landing Zones</emphasis> link from the navigation
  246. sub-menu.</para>
  247. <para>Press on the <emphasis role="bold">Upload </emphasis>action
  248. button on the Landing Zones tab.</para>
  249. <para><figure>
  250. <title>Upload/download</title>
  251. <mediaobject>
  252. <imageobject>
  253. <imagedata fileref="images/LZimg03-1.jpg"
  254. vendor="eclwatchSS" />
  255. </imageobject>
  256. </mediaobject>
  257. </figure></para>
  258. <para>Once you press the Upload button, a dialog opens where you
  259. can choose a file to upload.</para>
  260. </listitem>
  261. <listitem>
  262. <para>Browse the files on your local machine, select the file to
  263. upload, and then press the <emphasis role="bold">Open</emphasis>
  264. button.</para>
  265. <para>The file you selected displays in the <emphasis
  266. role="bold">File Uploader</emphasis> dialog.</para>
  267. <para><figure>
  268. <title>File Uploader</title>
  269. <mediaobject>
  270. <imageobject>
  271. <imagedata fileref="images/LZimg04.jpg"
  272. vendor="eclwatchSS" />
  273. </imageobject>
  274. </mediaobject>
  275. </figure></para>
  276. </listitem>
  277. <listitem>
  278. <para>Press the <emphasis role="bold">Start</emphasis> button to
  279. complete the file upload.<figure>
  280. <title>Upload Progress</title>
  281. <mediaobject>
  282. <imageobject>
  283. <imagedata fileref="images/LZimg06.jpg"
  284. vendor="eclwatchSS" />
  285. </imageobject>
  286. </mediaobject>
  287. </figure></para>
  288. </listitem>
  289. </orderedlist>
  290. </sect2>
  291. <sect2 id="Spray_the_Data_File_to_your_DR-THOR_Cluster">
  292. <title>Spray the Data File to your Thor Cluster</title>
  293. <para>To use the data file in our HPCC cluster, we must first "spray"
  294. it to a Thor cluster. A <emphasis>spray</emphasis> or
  295. <emphasis>import</emphasis> is the relocation of a data file from one
  296. location to a Thor cluster. The term spray was adopted due to the
  297. nature of the file movement -- the file is partitioned across all
  298. nodes within a cluster.</para>
  299. <para>In this example, the file is on your Landing Zone and is named
  300. <emphasis role="bold">OriginalPerson.</emphasis></para>
  301. <para>We are going to spray it to our Thor cluster and give it a
  302. logical name of <emphasis role="bold">tutorial::</emphasis><emphasis
  303. role="bold">YN</emphasis><emphasis
  304. role="bold">::OriginalPerson</emphasis><emphasis role="bold">
  305. </emphasis>where <emphasis role="bold">YN</emphasis> are your
  306. initials. The Distributed File Utility maintains a list of logical
  307. files and their corresponding physical file locations.</para>
  308. <orderedlist>
  309. <listitem>
  310. <para>Open ECL Watch in your browser using the following
  311. URL:</para>
  312. <para><emphasis role="bold">http://nnn.nnn.nnn.nnn:pppp
  313. </emphasis><emphasis role="bold">(where nnn.nnn.nnn.nnn is your
  314. ESP Server's IP Address and pppp is the port. The default port is
  315. 8010)</emphasis></para>
  316. </listitem>
  317. <listitem>
  318. <?dbfo keep-together="always"?>
  319. <para>From the ECL Watch home page, click on the <emphasis
  320. role="bold">Files</emphasis> icon, then click the <emphasis
  321. role="bold">Landing Zones</emphasis> link from the navigation
  322. sub-menu.</para>
  323. <para>On the Landing Zones tab, click on the arrow next to your
  324. mydropzone container to expand the list of uploaded files. <figure>
  325. <title>mydropzone</title>
  326. <mediaobject>
  327. <imageobject>
  328. <imagedata fileref="images/LZimg000.jpg"
  329. vendor="eclwatchSS" />
  330. </imageobject>
  331. </mediaobject>
  332. </figure></para>
  333. <para>Find the file you want to spray in the list
  334. (OriginalPerson), check the box next to that file name to select
  335. that file.</para>
  336. <para>Once you select the file from the list, the <emphasis
  337. role="bold">Spray</emphasis> action buttons become enabled.</para>
  338. </listitem>
  339. <listitem>
  340. <para>Press the <emphasis role="bold">Fixed</emphasis> action
  341. button. This indicates that you are spraying a fixed width file.
  342. <figure>
  343. <title>Spray: Fixed action button</title>
  344. <mediaobject>
  345. <imageobject>
  346. <imagedata fileref="images/LZimg001.jpg"
  347. vendor="eclwatchSS" />
  348. </imageobject>
  349. </mediaobject>
  350. </figure></para>
  351. <para>The <emphasis role="bold">Spray Fixed</emphasis> dialog
  352. displays.</para>
  353. </listitem>
  354. <listitem>
  355. <para>The Target name field is automatically filled in with the
  356. selected file. <figure>
  357. <title>Spray Fixed dialog</title>
  358. <mediaobject>
  359. <imageobject>
  360. <imagedata fileref="images/LZimg002.jpg"
  361. vendor="eclwatchSS" />
  362. </imageobject>
  363. </mediaobject>
  364. </figure></para>
  365. </listitem>
  366. <listitem>
  367. <para>Choose the mythor cluster from the <emphasis
  368. role="bold">Group</emphasis> drop list.</para>
  369. </listitem>
  370. <listitem>
  371. <para>If there are multiple queues, select one from the
  372. list.</para>
  373. </listitem>
  374. <listitem>
  375. <para>Fill in the <emphasis role="bold">Record Length</emphasis>
  376. (124).</para>
  377. </listitem>
  378. <listitem>
  379. <para>Fill in the <emphasis role="bold">Target Scope</emphasis>
  380. using the naming convention described earlier: <emphasis
  381. role="bold">tutorial::</emphasis><emphasis
  382. role="bold">YN</emphasis> (remember, <emphasis
  383. role="bold">YN</emphasis> are your initials).</para>
  384. </listitem>
  385. <listitem>
  386. <?dbfo keep-together="always"?>
  387. <para>Make sure the <emphasis
  388. role="bold">Replicate</emphasis><emphasis role="bold">
  389. </emphasis>box is checked.</para>
  390. <para><emphasis role="bold">Note:</emphasis> This option is only
  391. available on systems where replication has been enabled.</para>
  392. </listitem>
  393. <listitem>
  394. <para>Press the <emphasis role="bold">Spray<emphasis role="bold">
  395. </emphasis></emphasis>button.</para>
  396. </listitem>
  397. <listitem>
  398. <?dbfo keep-together="always"?>
  399. <para>The workunit details page displays. You can view the
  400. progress of the spray.</para>
  401. <para><figure>
  402. <title>View Progress</title>
  403. <mediaobject>
  404. <imageobject>
  405. <imagedata fileref="images/DTimg02.jpg"
  406. vendor="eclwatchSS" />
  407. </imageobject>
  408. </mediaobject>
  409. </figure></para>
  410. <para>Once the spray is complete, we can proceed.</para>
  411. </listitem>
  412. </orderedlist>
  413. </sect2>
  414. </sect1>
  415. <sect1 id="Begin_Coding">
  416. <title>Begin Coding</title>
  417. <para>In this portion of the tutorial, we will write ECL code to define
  418. the data file and execute simple queries on it so we can evaluate it and
  419. determine any necessary pre-processing.</para>
  420. <orderedlist>
  421. <listitem>
  422. <para>Start the ECL IDE (Start &gt;&gt; All Programs &gt;&gt; HPCC
  423. Systems &gt;&gt; ECL IDE )</para>
  424. </listitem>
  425. <listitem>
  426. <para>Log in to your environment</para>
  427. </listitem>
  428. <listitem>
  429. <?dbfo keep-together="always"?>
  430. <para>Right-click on the <emphasis role="bold">My Files</emphasis>
  431. folder in the Repository window, and select <emphasis
  432. role="bold">Insert Folder</emphasis> from the pop-up menu.</para>
  433. <para><figure>
  434. <title>Insert Folder</title>
  435. <mediaobject>
  436. <imageobject>
  437. <imagedata fileref="images/DTimg04.jpg" />
  438. </imageobject>
  439. </mediaobject>
  440. </figure></para>
  441. <para>For purposes of this tutorial, let's create a folder called
  442. <emphasis role="bold">Tutorial</emphasis><emphasis
  443. role="bold">YourName</emphasis><emphasis> </emphasis>(where
  444. <emphasis>YourName</emphasis> is your name).</para>
  445. </listitem>
  446. <listitem>
  447. <?dbfo keep-together="always"?>
  448. <para>Enter <emphasis role="bold">Tutorial</emphasis><emphasis
  449. role="bold">YourName</emphasis>(where <emphasis>YourName</emphasis>
  450. is your name)<emphasis> </emphasis>for the label, then press the OK
  451. button.</para>
  452. <para><figure>
  453. <title>Enter Folder Label</title>
  454. <mediaobject>
  455. <imageobject>
  456. <imagedata fileref="images/DTimg05.jpg" />
  457. </imageobject>
  458. </mediaobject>
  459. </figure></para>
  460. </listitem>
  461. <listitem>
  462. <para>Right-click on the <emphasis
  463. role="bold">Tutorial</emphasis><emphasis
  464. role="bold">YourName</emphasis>Folder, and select <emphasis
  465. role="bold">Insert File</emphasis> from the pop-up menu.</para>
  466. </listitem>
  467. <listitem>
  468. <?dbfo keep-together="always"?>
  469. <para>Enter <emphasis role="bold">Layout_People</emphasis> for the
  470. label, then press the OK button.</para>
  471. <para><figure>
  472. <title>Insert File</title>
  473. <mediaobject>
  474. <imageobject>
  475. <imagedata fileref="images/DTimg06.jpg" />
  476. </imageobject>
  477. </mediaobject>
  478. </figure></para>
  479. <para>A Builder Window opens.</para>
  480. <para><figure>
  481. <title>Layout People in Builder</title>
  482. <mediaobject>
  483. <imageobject>
  484. <imagedata fileref="images/DTimg07.jpg" />
  485. </imageobject>
  486. </mediaobject>
  487. </figure></para>
  488. <para>Notice that some text has been written for you in the window.
  489. This helps you to remember that the name of the file (Layout_People)
  490. <emphasis>must always exactly match</emphasis> the name of the
  491. single EXPORT definition (Layout_People) contained in that file.
  492. This is a requirement -- one EXPORT definition per file, and its
  493. name must match the filename.</para>
  494. </listitem>
  495. <listitem>
  496. <?dbfo keep-together="always"?>
  497. <para>Write the following code in the Builder workspace:</para>
  498. <para><programlisting>EXPORT Layout_People := RECORD
  499. STRING15 FirstName;
  500. STRING25 LastName;
  501. STRING15 MiddleName;
  502. STRING5 Zip;
  503. STRING42 Street;
  504. STRING20 City;
  505. STRING2 State;
  506. END; </programlisting> <figure>
  507. <title>Code in Builder Window</title>
  508. <mediaobject>
  509. <imageobject>
  510. <imagedata fileref="images/DTimg08.jpg" />
  511. </imageobject>
  512. </mediaobject>
  513. </figure></para>
  514. </listitem>
  515. <listitem>
  516. <para>Press the syntax check button on the main toolbar (or press
  517. F7).</para>
  518. <para>It is always a good idea to check syntax before
  519. submitting.</para>
  520. <para><figure>
  521. <title>Check Syntax</title>
  522. <mediaobject>
  523. <imageobject>
  524. <imagedata fileref="images/DTimg23.jpg" />
  525. </imageobject>
  526. </mediaobject>
  527. </figure></para>
  528. <para>This file defines the record structure for the data file.
  529. Next, we will examine the data.</para>
  530. </listitem>
  531. </orderedlist>
  532. <sect2 id="Examine_the_Data" role="brk">
  533. <title>Examine the Data</title>
  534. <para>In this section, we will look at the data and determine if there
  535. is any pre-processing we want to perform on the data. This is the step
  536. in the development process where we convert the raw data into a form
  537. we can use.</para>
  538. <orderedlist>
  539. <listitem>
  540. <para>Right-click on the <emphasis
  541. role="bold">Tutorial</emphasis><emphasis role="bold">YourName
  542. </emphasis>Folder, and select <emphasis role="bold">Insert
  543. File</emphasis> from the pop-up menu.</para>
  544. </listitem>
  545. <listitem>
  546. <para>Enter <emphasis role="bold">File_OriginalPerson</emphasis>
  547. for the label, then press the OK button.</para>
  548. <para><figure>
  549. <title>Insert File</title>
  550. <mediaobject>
  551. <imageobject>
  552. <imagedata fileref="images/DTimg09.jpg" />
  553. </imageobject>
  554. </mediaobject>
  555. </figure>A Builder Window opens.</para>
  556. </listitem>
  557. <listitem>
  558. <para>Write the following code (remember to replace
  559. <emphasis>YN</emphasis> with your initials):</para>
  560. <para><programlisting>IMPORT TutorialYourName;
  561. EXPORT File_OriginalPerson :=
  562. DATASET('~tutorial::YN::OriginalPerson',TutorialYourName.Layout_People,THOR);
  563. </programlisting></para>
  564. <para><figure>
  565. <title>File_OriginalPerson.ecl</title>
  566. <mediaobject>
  567. <imageobject>
  568. <imagedata fileref="images/DTimg10.jpg" />
  569. </imageobject>
  570. </mediaobject>
  571. </figure></para>
  572. </listitem>
  573. <listitem>
  574. <para>Press the syntax check button on the main toolbar (or press
  575. F7) to check the syntax.</para>
  576. <para>This defines the Dataset. Next, we will examine the
  577. data.</para>
  578. </listitem>
  579. <listitem>
  580. <para>Open a new Builder Window (CTRL+N) and write the following
  581. code (remember to replace <emphasis>YourName </emphasis>with your
  582. name):</para>
  583. <programlisting>IMPORT TutorialYourName;
  584. COUNT(TutorialYourName.File_OriginalPerson);
  585. </programlisting>
  586. </listitem>
  587. <listitem>
  588. <para>Press the syntax check button on the main toolbar (or press
  589. F7) to check the syntax.</para>
  590. </listitem>
  591. <listitem>
  592. <?dbfo keep-together="always"?>
  593. <para>Make sure the selected cluster is your Thor cluster, then
  594. press the <emphasis role="bold">Submit</emphasis> button. Note
  595. that your target cluster might have a different name.</para>
  596. <para><figure>
  597. <title>Target Thor</title>
  598. <mediaobject>
  599. <imageobject>
  600. <imagedata fileref="images/DTimg11.jpg" />
  601. </imageobject>
  602. </mediaobject>
  603. </figure></para>
  604. </listitem>
  605. <listitem>
  606. <para>When the Workunit completes, it displays a green checkmark
  607. <inlinegraphic fileref="images/DT173-15.jpg" />.</para>
  608. </listitem>
  609. <listitem>
  610. <para>Select the Workunit tab (the one with the number next to the
  611. checkmark) and select the <emphasis role="bold">Result
  612. 1</emphasis> tab (it may already be selected).</para>
  613. <para><figure>
  614. <title>Result tab</title>
  615. <mediaobject>
  616. <imageobject>
  617. <imagedata fileref="images/DT173-16.png" />
  618. </imageobject>
  619. </mediaobject>
  620. </figure>This shows us that there are 841,400 records in the
  621. data file.</para>
  622. </listitem>
  623. <listitem>
  624. <para>Select the Builder tab and change COUNT to OUTPUT, as shown
  625. below:</para>
  626. <para><programlisting>IMPORT TutorialYourName;
  627. <emphasis role="bold">OUTPUT</emphasis>(TutorialYourName.File_OriginalPerson);</programlisting></para>
  628. <para><emphasis role="bold">Note: </emphasis>The modified portion
  629. is shown in <emphasis role="bold">bold</emphasis>.</para>
  630. <para></para>
  631. </listitem>
  632. <listitem>
  633. <para>Check the syntax, if no errors, press the <emphasis
  634. role="bold">Submit</emphasis> button.</para>
  635. </listitem>
  636. <listitem>
  637. <?dbfo keep-together="always"?>
  638. <para>When it completes, select the Workunit tab, then select the
  639. <emphasis role="bold">Result 1</emphasis> tab.</para>
  640. <para><figure>
  641. <title>Output Results</title>
  642. <mediaobject>
  643. <imageobject>
  644. <imagedata fileref="images/DT173-17.png" />
  645. </imageobject>
  646. </mediaobject>
  647. </figure></para>
  648. <para>Notice the names are in mixed case.</para>
  649. <para>For our purposes, it will be easier to have all the names in
  650. all uppercase. This demonstrates one of the steps in the basic
  651. process of preparing data (Extract, Transform, and Load--ETL)
  652. using ECL.</para>
  653. </listitem>
  654. <listitem>
  655. <para>Close the Builder Window.</para>
  656. </listitem>
  657. </orderedlist>
  658. </sect2>
  659. <sect2 id="Process_the_Data" role="brk">
  660. <title>Process the Data</title>
  661. <para>In this section, we will write code to convert the original data
  662. so that all names are in uppercase. We will then write this new file
  663. to our Thor cluster.</para>
  664. <orderedlist>
  665. <listitem>
  666. <para>Right-click on the <emphasis
  667. role="bold">Tutorial</emphasis><emphasis role="bold">YourName
  668. </emphasis>Folder, and select Insert File from the pop-up
  669. menu.</para>
  670. </listitem>
  671. <listitem>
  672. <para>Name this one <emphasis
  673. role="bold">BWR_ProcessRawData</emphasis> and write the following
  674. code (changing YN and YourName as before):</para>
  675. <para><programlisting>IMPORT TutorialYourName, Std;
  676. TutorialYourName.Layout_People toUpperPlease(TutorialYourName.Layout_People pInput)
  677. := TRANSFORM
  678. SELF.FirstName := Std.Str.ToUpperCase(pInput.FirstName);
  679. SELF.LastName := Std.Str.ToUpperCase(pInput.LastName);
  680. SELF.MiddleName := Std.Str.ToUpperCase(pInput.MiddleName);
  681. SELF.Zip := pInput.Zip;
  682. SELF.Street := pInput.Street;
  683. SELF.City := pInput.City;
  684. SELF.State := pInput.State;
  685. END ;
  686. OrigDataset := TutorialYourName.File_OriginalPerson;
  687. UpperedDataset := PROJECT(OrigDataset,toUpperPlease(LEFT));
  688. OUTPUT(UpperedDataset,,'~tutorial::YN::TutorialPerson',OVERWRITE);
  689. </programlisting></para>
  690. </listitem>
  691. <listitem>
  692. <para>Check the syntax, if no errors press the <emphasis
  693. role="bold">Submit</emphasis> button.</para>
  694. </listitem>
  695. <listitem>
  696. <para>When it completes, select the Workunit tab, then select the
  697. Result 1 tab.</para>
  698. <para><figure>
  699. <title>Process Result</title>
  700. <mediaobject>
  701. <imageobject>
  702. <imagedata fileref="images/DT173-18.jpg" />
  703. </imageobject>
  704. </mediaobject>
  705. </figure></para>
  706. <para>The results show that the process has successfully converted
  707. the name fields to uppercase.</para>
  708. </listitem>
  709. <listitem>
  710. <para>After you examine the results, close the Builder
  711. window.</para>
  712. </listitem>
  713. </orderedlist>
  714. </sect2>
  715. <sect2 id="Using_our_Data">
  716. <title>Using our New Data</title>
  717. <para></para>
  718. <para>Now that we have our data in a useful format and the file is in
  719. place, we can write more code to use the new data file. We will
  720. determine the indexes we will need and create them. For this tutorial,
  721. let's assume the field we need to index is the Zip code field.</para>
  722. <para></para>
  723. <para>In the DATASET definition, we will add a virtual field to the
  724. RECORD structure for the fileposition. This is required for
  725. indexes.</para>
  726. <para></para>
  727. <orderedlist>
  728. <listitem>
  729. <para>Insert a File into the <emphasis
  730. role="bold">Tutorial</emphasis><emphasis
  731. role="bold">YourName</emphasis><emphasis role="bold">
  732. </emphasis>Folder. Name it <emphasis role="bold">
  733. File_TutorialPerson </emphasis>and write this code (changing
  734. <emphasis>YN </emphasis>to your initials):</para>
  735. <para></para>
  736. <para><programlisting>IMPORT TutorialYourName;
  737. EXPORT File_TutorialPerson :=
  738. DATASET('~tutorial::YN::TutorialPerson',
  739. {TutorialYourName.Layout_People,
  740. UNSIGNED8 fpos {virtual(fileposition)}},THOR);
  741. </programlisting></para>
  742. </listitem>
  743. <listitem>
  744. <para>Check the syntax, if no errors press the <emphasis
  745. role="bold">Submit</emphasis> button.</para>
  746. </listitem>
  747. <listitem>
  748. <para>When it completes, it displays a green checkmark
  749. <inlinegraphic fileref="images/DT173-15.jpg" />.</para>
  750. </listitem>
  751. </orderedlist>
  752. </sect2>
  753. <sect2 id="Index_the_Data">
  754. <title>Index the Data</title>
  755. <para>Next, we will define the INDEX.</para>
  756. <orderedlist>
  757. <listitem>
  758. <para>Insert a File into your Tutorial Folder. Name it <emphasis
  759. role="bold">IDX_PeopleByZip</emphasis><emphasis role="bold">
  760. </emphasis>and write this code (changing <emphasis>YN</emphasis>
  761. and <emphasis>YourName</emphasis> as before):</para>
  762. <para><programlisting>IMPORT TutorialYourName;
  763. EXPORT IDX_PeopleByZIP :=
  764. INDEX(TutorialYourName.File_TutorialPerson,{zip,fpos},'~tutorial::YN::PeopleByZipINDEX');
  765. </programlisting></para>
  766. </listitem>
  767. <listitem>
  768. <para>Check the syntax.</para>
  769. <para>Next, we will build the index file.</para>
  770. </listitem>
  771. <listitem>
  772. <para>Insert a File into the <emphasis
  773. role="bold">Tutorial</emphasis><emphasis
  774. role="bold">YourName</emphasis><emphasis role="bold">
  775. </emphasis>Folder and name it <emphasis
  776. role="bold">BWR_BuildPeopleByZip </emphasis>and write this code
  777. (replacing <emphasis>YourName</emphasis> with your name):</para>
  778. <para><programlisting>IMPORT TutorialYourName;
  779. BUILDINDEX(TutorialYourName.IDX_PeopleByZIP,OVERWRITE);
  780. </programlisting></para>
  781. </listitem>
  782. <listitem>
  783. <para>Check the syntax and if there are no errors, press the
  784. <emphasis role="bold">Submit</emphasis> button.</para>
  785. </listitem>
  786. <listitem>
  787. <para>Wait for the Workunit to complete, then close the Builder
  788. Window.</para>
  789. </listitem>
  790. </orderedlist>
  791. </sect2>
  792. <sect2 id="Query_the_Data">
  793. <title>Build a Query</title>
  794. <para>Now that we have an index file, we will write a query that uses
  795. it.</para>
  796. <orderedlist>
  797. <listitem>
  798. <para>Insert a File into your Tutorial Folder. Name it <emphasis
  799. role="bold">BWR_FetchPeopleByZip </emphasis>and write this code
  800. (changing <emphasis>YourName</emphasis> as before):</para>
  801. <para><programlisting>IMPORT TutorialYourName;
  802. ZipFilter :='33024';
  803. FetchPeopleByZip :=
  804. FETCH(TutorialYourName.File_TutorialPerson,
  805. TutorialYourName.IDX_PeopleByZIP(zip=ZipFilter),
  806. RIGHT.fpos);
  807. OUTPUT(FetchPeopleByZip);
  808. </programlisting></para>
  809. </listitem>
  810. <listitem>
  811. <para>Check the syntax and if there are no errors, press the
  812. <emphasis role="bold">Submit</emphasis> button.</para>
  813. </listitem>
  814. <listitem>
  815. <para>When it completes, select the Workunit<emphasis role="bold">
  816. </emphasis>tab, then select the <emphasis
  817. role="bold">Result</emphasis> tab.</para>
  818. </listitem>
  819. <listitem>
  820. <para>Examine the result, then close the Builder window and
  821. resubmit the code.</para>
  822. <para><emphasis role="bold">Note</emphasis>: You can change the
  823. value of the <emphasis role="bold">ZipValue</emphasis> field to
  824. get results from different Zip codes.</para>
  825. </listitem>
  826. </orderedlist>
  827. </sect2>
  828. </sect1>
  829. <sect1 id="Publishing_your_Query">
  830. <title>Publishing your Thor Query</title>
  831. <para>Now that we have created an indexed query, the next step is to
  832. enable access to it through a Web interface.</para>
  833. <para>Our STORED variables provide a means to pass values as query
  834. parameters. In this example, the user can supply the ZIP code so the
  835. results are people from that ZIP code.</para>
  836. <orderedlist>
  837. <listitem>
  838. <para>Insert a File into the <emphasis role="bold">TutorialYourName
  839. </emphasis>Folder and name it <emphasis
  840. role="bold">FetchPeopleByZipService</emphasis></para>
  841. </listitem>
  842. <listitem>
  843. <para>Write this code (changing <emphasis>YourName</emphasis> as
  844. before):</para>
  845. <para><programlisting>IMPORT TutorialYourName;
  846. STRING10 ZipFilter := '' :STORED('ZIPValue');
  847. resultSet :=
  848. FETCH(TutorialYourName.File_TutorialPerson,
  849. TutorialYourName.IDX_PeopleByZIP(zip=ZipFilter),
  850. RIGHT.fpos);
  851. OUTPUT(resultset);
  852. </programlisting></para>
  853. </listitem>
  854. <listitem>
  855. <para>Check the syntax, and save the file.</para>
  856. </listitem>
  857. <listitem>
  858. <para>Press the <emphasis role="bold">Submit</emphasis><emphasis
  859. role="bold"> </emphasis>button.</para>
  860. </listitem>
  861. <listitem>
  862. <para>When the workunit completes, select the Workunit<emphasis
  863. role="bold"> </emphasis>tab, then select the ECL Watch tab.</para>
  864. </listitem>
  865. <listitem>
  866. <para>Press the <emphasis role="bold">Publish</emphasis> button, on
  867. the ECL Watch tab.</para>
  868. <para><figure>
  869. <title>Publish Workunit</title>
  870. <mediaobject>
  871. <imageobject>
  872. <imagedata fileref="images/DTimg12.jpg" />
  873. </imageobject>
  874. </mediaobject>
  875. </figure></para>
  876. <para>The Publish dialog displays, with the Job Name field
  877. automatically filled in. You can add a comment in the Comment field
  878. if you wish, then press Submit. <figure>
  879. <title>Publish Dialog</title>
  880. <mediaobject>
  881. <imageobject>
  882. <imagedata fileref="images/DTimg12b.jpg" />
  883. </imageobject>
  884. </mediaobject>
  885. </figure></para>
  886. </listitem>
  887. <listitem>
  888. <para>If there are no error messages, the workunit is published.
  889. Leave the builder window open, you will need it again later.</para>
  890. </listitem>
  891. </orderedlist>
  892. <sect2 id="Execute-using-the-Data-Delivery-Engine">
  893. <title>Execute using WsECL</title>
  894. <para>Now that the query is published, we can run it using the WsECL
  895. Web service. WsECL provides a Web-based interface to your published
  896. query. It also automatically creates an entry form to execute the
  897. query.</para>
  898. <para>Using the following URL:</para>
  899. <para><emphasis role="bold">http://nnn.nnn.nnn.nnn:pppp (where
  900. nnn.nnn.nnn.nnn is your ESP Server's IP address and pppp is the port.
  901. Default port is 8002)</emphasis></para>
  902. <para><figure>
  903. <title>WsECL</title>
  904. <mediaobject>
  905. <imageobject>
  906. <imagedata fileref="images/DTimg13.jpg" />
  907. </imageobject>
  908. </mediaobject>
  909. </figure></para>
  910. <para></para>
  911. <orderedlist>
  912. <listitem>
  913. <para>Click on the + sign next to <emphasis
  914. role="bold">thor</emphasis> to expand the tree.</para>
  915. </listitem>
  916. <listitem>
  917. <?dbfo keep-together="always"?>
  918. <para>Click on the <emphasis
  919. role="bold">fetchpeoplebyzipservice</emphasis> hyperlink.</para>
  920. <para>The form for the service displays.</para>
  921. <para><figure>
  922. <title>Service Form</title>
  923. <mediaobject>
  924. <imageobject>
  925. <imagedata fileref="images/DTimg14a.jpg" />
  926. </imageobject>
  927. </mediaobject>
  928. </figure></para>
  929. </listitem>
  930. <listitem>
  931. <para>Provide a zip code (e.g., 33024) in the <emphasis
  932. role="bold">zipvalue</emphasis> field. Select <emphasis
  933. role="bold">Output Tables</emphasis> from the drop list, then
  934. press the <emphasis role="bold">Submit</emphasis> button.</para>
  935. <para>The results display.</para>
  936. <para><figure>
  937. <title>Results</title>
  938. <mediaobject>
  939. <imageobject>
  940. <imagedata fileref="images/DTimg15a.jpg" />
  941. </imageobject>
  942. </mediaobject>
  943. </figure></para>
  944. </listitem>
  945. </orderedlist>
  946. </sect2>
  947. </sect1>
  948. <sect1 id="Deploy_the_Roxie_Query">
  949. <title>Compile and Publish the Roxie Query</title>
  950. <para>The final step in this process is to publish the indexed query to
  951. a Rapid Data Delivery Engine (Roxie) Cluster.</para>
  952. <para>We will recompile the code with Roxie as the target cluster, then
  953. publish it to a Roxie cluster. <orderedlist>
  954. <listitem>
  955. <para>In the ECL IDE, select the Builder tab on the
  956. FetchPeopleByZipService file builder window.</para>
  957. </listitem>
  958. <listitem>
  959. <para>Using the <emphasis role="bold">Target</emphasis> drop list,
  960. select Roxie as the Target cluster.</para>
  961. <para><figure>
  962. <title>Target Roxie</title>
  963. <mediaobject>
  964. <imageobject>
  965. <imagedata fileref="images/DTimg16.jpg" />
  966. </imageobject>
  967. </mediaobject>
  968. </figure></para>
  969. </listitem>
  970. <listitem>
  971. <para>In the Builder window, in the upper left corner the
  972. <emphasis role="bold">Submit</emphasis> button has a drop down
  973. arrow next to it. Select the arrow to expose the <emphasis
  974. role="bold">Compile</emphasis> option.</para>
  975. <figure>
  976. <title>Compile</title>
  977. <mediaobject>
  978. <imageobject>
  979. <imagedata fileref="images/DTimg17.jpg" />
  980. </imageobject>
  981. </mediaobject>
  982. </figure>
  983. </listitem>
  984. <listitem>
  985. <para>Select <emphasis role="bold">Compile</emphasis></para>
  986. </listitem>
  987. <listitem>
  988. <?dbfo keep-together="always"?>
  989. <para>When the workunit finishes, it will display a green circle
  990. indicating it has compiled.</para>
  991. <para><figure>
  992. <title>Compiled</title>
  993. <mediaobject>
  994. <imageobject>
  995. <imagedata fileref="images/DTimg18.jpg" />
  996. </imageobject>
  997. </mediaobject>
  998. </figure></para>
  999. </listitem>
  1000. </orderedlist></para>
  1001. <sect2 id="Deploy_the_Query_to_Roxie">
  1002. <title>Publish the Roxie query</title>
  1003. <para>Next we will publish the query to a Roxie Cluster.</para>
  1004. <orderedlist>
  1005. <listitem>
  1006. <para>Select the workunit tab for the FetchPeopleByZipService that
  1007. you just compiled.</para>
  1008. <para>This opens the workunit in an ECL Watch tab.</para>
  1009. </listitem>
  1010. <listitem>
  1011. <?dbfo keep-together="always"?>
  1012. <para>Press the <emphasis role="bold">Publish</emphasis> action
  1013. button, then verify the information in the dialog and press
  1014. <emphasis role="bold">Submit</emphasis>.</para>
  1015. <para><figure>
  1016. <title>Publish Query</title>
  1017. <mediaobject>
  1018. <imageobject>
  1019. <imagedata fileref="images/DTimg19.jpg" />
  1020. </imageobject>
  1021. </mediaobject>
  1022. </figure>This publishes the query.</para>
  1023. </listitem>
  1024. </orderedlist>
  1025. </sect2>
  1026. <sect2 id="Run_the_Roxie_Query" role="brk">
  1027. <title>Run the Roxie Query in WsECL</title>
  1028. <para>Now that the query is deployed to a Roxie cluster, we can run it
  1029. using the WS-ECL service Using the following URL:</para>
  1030. <para><emphasis role="bold">http://nnn.nnn.nnn.nnn:pppp (where
  1031. nnn.nnn.nnn.nnn is your ESP Server's IP address and pppp is the port.
  1032. The default port is 8002)</emphasis></para>
  1033. <orderedlist>
  1034. <listitem>
  1035. <para>Click on the + sign next to <emphasis
  1036. role="bold">myroxie</emphasis> to expand the tree.</para>
  1037. </listitem>
  1038. <listitem>
  1039. <?dbfo keep-together="always"?>
  1040. <para>Click on the <emphasis
  1041. role="bold">fetchpeoplebyzipservice</emphasis> hyperlink.</para>
  1042. <para>The form for the service displays.</para>
  1043. <para><figure>
  1044. <title>RoxieECL</title>
  1045. <mediaobject>
  1046. <imageobject>
  1047. <imagedata fileref="images/DTimg21.jpg" />
  1048. </imageobject>
  1049. </mediaobject>
  1050. </figure></para>
  1051. </listitem>
  1052. <listitem>
  1053. <?dbfo keep-together="always"?>
  1054. <para>Provide a zip code (e.g., 33024), select <emphasis
  1055. role="bold">Output Tables</emphasis> from the drop list, and press
  1056. the Submit button.</para>
  1057. <para>The results display.</para>
  1058. <para><figure>
  1059. <title>RoxieResults</title>
  1060. <mediaobject>
  1061. <imageobject>
  1062. <imagedata fileref="images/DTimg22.jpg" />
  1063. </imageobject>
  1064. </mediaobject>
  1065. </figure></para>
  1066. </listitem>
  1067. </orderedlist>
  1068. </sect2>
  1069. </sect1>
  1070. </chapter>
  1071. <chapter id="Summary">
  1072. <title>Summary</title>
  1073. <para>Now that you have successfully processed raw data, sprayed it onto a
  1074. cluster, and deployed it to a RDDE cluster, what's next?</para>
  1075. <!-- -->
  1076. <para>Here is a short list of suggestions on the path you might take from
  1077. here:</para>
  1078. <itemizedlist mark="bullet">
  1079. <listitem>
  1080. <para>Create indexes on other fields and create queries using
  1081. them.</para>
  1082. </listitem>
  1083. </itemizedlist>
  1084. <itemizedlist mark="bullet">
  1085. <listitem>
  1086. <para>Write client applications to access your queries using JSON or
  1087. SOAP interfaces.</para>
  1088. </listitem>
  1089. </itemizedlist>
  1090. <itemizedlist mark="bullet">
  1091. <listitem>
  1092. <para>Looks at the resources available on the Links tab</para>
  1093. <para><figure>
  1094. <title>Links</title>
  1095. <mediaobject>
  1096. <imageobject>
  1097. <imagedata fileref="images/DTimg24.jpg" />
  1098. </imageobject>
  1099. </mediaobject>
  1100. </figure>The Links tab provides easy access to a form, a Sample
  1101. Request, a Sample Response, the WSDL, the XML Schema (XSD) and
  1102. more...</para>
  1103. </listitem>
  1104. </itemizedlist>
  1105. <itemizedlist mark="bullet">
  1106. <listitem>
  1107. <para>Follow the procedures in this tutorial using your own
  1108. data!</para>
  1109. </listitem>
  1110. </itemizedlist>
  1111. </chapter>
  1112. </book>