XQDT - XQuery Getting Momentum in Eclipse

3,387 views

Published on

These slides were presented during the EclipseCon 2010 in Santa Clara, California.
They present the new XQuery Tools that are now incubating in the XML project in Eclipse.

  • Be the first to comment

  • Be the first to like this

XQDT - XQuery Getting Momentum in Eclipse

  1. 1. XQDTXQuery Getting Momentum in EclipseGabriel PetrovaySam Nethhttp://wiki.eclipse.org/XQDT<br />
  2. 2. <data> <user name="Gabriel" /> <user name="Sam" /> </data><br />XQuery?<br />2<br /><data><br /> <user name="Gabriel" /><br /> <user name="Sam" /><br /></data><br />
  3. 3. <data> <user name="Gabriel" /> <user name="Sam" /> </data> // user[1]<br />XQuery?<br />3<br /><user name="Gabriel" /><br />
  4. 4. let $u := <data> <user name="Gabriel" /> <user name="Sam" /> </data> // user[1]return $u<br />XQuery?<br />4<br /><user name="Gabriel" /><br />
  5. 5. declare $i := 0;<br /> while($i le 2) { set $i := $i + 1;<br /> let $u := <data> <user name="Gabriel" /> <user name="Sam" /> </data> // user[$i] return $u;};<br />XQuery?<br />5<br /><user name="Gabriel" /><br /><user name="Sam" /><br />
  6. 6. declare sequential function local:list-users() {<br /> declare $i := 0;<br /> while($i le 2) { set $i := $i + 1;<br /> let $u := <data> <user name="Gabriel" /> <user name="Sam" /> </data> // user[$i] return $u; };};<br />local:list-users()<br />XQuery?<br />6<br /><user name="Gabriel" /><br /><user name="Sam" /><br />
  7. 7. declare sequential function local:list-users() {<br /> declare $i := 0;<br /> while($i le 2) { set $i := $i + 1;<br /> let $u := <data> <user name="Gabriel" /> <user name="Sam" /> </data> // user[$i] return $u; };};<br />for $user inlocal:list-users()return $user/@name<br />XQuery?<br />7<br />Gabriel<br />Sam<br />
  8. 8. declare sequential function local:list-users() {<br /> declare $i := 0;<br /> while($i le 2) { set $i := $i + 1;<br /> let $u := <data> <user name="Gabriel" /> <user name="Sam" /> </data> // user[$i] return $u; };};<html><body>{<br /> for $user in local:list-users() return <div>{ $user/@name }</div><br />}</body></html><br />XQuery?<br />8<br />
  9. 9. XQuery?<br />9<br />Presentation<br />Application logic<br /><html> <body>{<br /> for $user in <data> <user name="Gabriel" /> <user name="Sam" /> </data> // user return <div>{ $user/@name }</div><br /> }</body></html><br />Data access<br />
  10. 10. pres:html-page( appl:users( db:users() ) )<br />XQuery?<br />10<br />
  11. 11. XQuery<br />the language to query XML data<br />XML end-to-end architectures<br />Motivation<br />11<br />Client<br />Application<br />XQuery<br />App Server<br />Database<br />Hardware<br />
  12. 12. Showcases<br />12<br />
  13. 13. Goals<br />an Eclipse-based XQuery IDE<br />smart editing<br />debugging support<br />etc.<br />leverage existing XML ecosystem<br />WTP: XML Schema, HTML, …<br />open to other XQuery implementers<br />… and of course, make XQuery successful<br />13<br />
  14. 14. WTP <br />(Web Tools Platform Project)<br /> Vendors<br />Sausalito<br />WebSphere<br />?<br />Mark Logic<br />Server<br />Zorba<br />Saxon<br />Architecture<br />14<br /> XQDT<br /> (XQuery Development Tools)<br /> DLTK<br /> (Dynamic Languages Toolkit)<br />
  15. 15. Demo<br />15<br />
  16. 16. Take Away…<br /> Hack! <br /> Contribute!<br />Install! <br /> Use!<br />16<br />
  17. 17. Thank you!<br />?<br />17<br />?<br />http://www.xqdt.org<br />http://wiki.eclipse.org/XQDT<br />

×