OREChem Services and Workflows

908 views
822 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
908
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
15
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

OREChem Services and Workflows

  1. 1. Integrating Chemistry Scholarship with Web Architectures, Grid Computing and Semantic Web<br />SashiKiranChalla, Marlon Pierce, Suresh Marru<br />Indiana University, Bloomington<br />
  2. 2. Microsoft Research’s ORECHEM Project<br />“A collaboration between chemistry scholars and information scientists to develop and deploy the infrastructure, services, and applications to enable new models for research and dissemination of scholarly materials in the chemistry community.”<br />http://research.microsoft.com/en-us/projects/orechem/<br />2<br />
  3. 3. OAI-ORE and ORE-Chem<br /> Open Archive Initiative – Object Reuse and Exchange<br />defines standards for the description and exchange of aggregations of Web resources.<br />based around the ORE-Model which introduces the Resource Map (ReM) that makes it possible to associate an identity with aggregations of resources and make assertions about their structure and semantics.<br />ReMs are expressed in ATOM/XML, RDF/XML, n3, turtle formats.<br />We want to use, extend this to describe all aspects of crystallography experiments<br />Publication links and metadata, data, <br />3<br />
  4. 4. <ul><li>Bibliographic metadata
  5. 5. Citations
  6. 6. Figures
  7. 7. Tables
  8. 8. Chunks
  9. 9. Reactions
  10. 10. Molecular Compounds
  11. 11. NMR Spectra and Structural Data
  12. 12. Experiment data </li></ul>Southampton<br />PSU<br />Cambridge<br />Indiana<br /><ul><li>Workflows, TeraGrid
  13. 13. services</li></ul>Triplestore<br />On Azure Cloud<br />Carl Lagoze’s OreCHEM eScience Presentation Slides <br />4<br />
  14. 14. Our Objective<br />To build a pipeline to:<br />Fetch ATOM feeds<br />Transform ATOM feeds into triples and store them into a triple store ( Using GRDDL/Saxon HE)<br />Extract Crystallographically obtained 3D coordinates information<br />Submit compute intensive electronic structure calculations, geometry optimization tasks to tools like Gaussian09 on TeraGrid.<br />Transform the Gaussian output into triples and store them into a triple store<br />5<br />
  15. 15. OREChem-Computation Workflow<br />Convert CML to Gaussian Input format <br />Extract Moiety feeds in CML format<br />Gaussian on <br />TeraGrid<br />Moiety files<br />Gaussian Output to RDF triples<br />ATOM Feeds from eCrystals or CrystalEye<br />N3 files or RDF/XML<br />Triplestore<br />6<br />Implemented<br />Yet to Implement<br />From Partners<br />
  16. 16. RESTful Web services<br /><ul><li>REST is the way the Web already works.
  17. 17. URI for a resource.
  18. 18. HTTP GET/POST/PUT/DELETE
  19. 19. Very easy to build one using Java APIs </li></ul>(JAX-RS Jersey (server & client))<br />7<br />
  20. 20. Jersey Skeleton Methods<br />@Singleton<br />@Path("/cml3d")<br />public class MoietyHarvester{<br /> @GET @Path("/csv")<br /> @Produces("text/plain”)<br />public Stringharvestfeeds(@QueryParam("harvester") String harvester,<br />@DefaultValue("10") @QueryParam("numofentries") String num_entries){<br />.........<br />}<br />@GET @Path("/json")<br /> @Produces("application/json")<br />publicJSONArrayharvestfeedsJSON(@QueryParam("harvester") String harvester,@DefaultValue("10") @QueryParam("numofentries") String num_entries){<br />..........<br />}<br />}<br />http://gf18.ucs.indiana.edu/FeedsHarvester/cml3d/csv?parameters<br />http://gf18.ucs.indiana.edu/FeedsHarvester/cml3d/json?parameters<br />8<br />
  21. 21. ORECHEM REST Services<br />9<br />
  22. 22. ORECHEM REST Services<br />http://gf18.ucs.indiana.edu:8146/FeedsHarvester/cml3d/csv?harvester=moiety&numofentries=5<br />http://gf18.ucs.indiana.edu:8146/CML2GaussianSemCompChem/gauss/inputgenerator<br />10<br />
  23. 23. Testing Services<br />public class JerseyClient{<br />public static void main(String[] args) {<br />Client client = Client.create();<br />WebResource cml2gauss = client.resource ( " "+<br />"http://localhost:8080" +<br />"/CML2GaussianSemCompChem/gauss/inputgenerator“ );<br /> String cmlfileURL= "http://gridfarm018.ucs.indiana.edu/" + <br />"orechem/moieties/ic0620900sup1_comp9_” + <br />moiety_1.complete.cml.xml";<br /> String gaussURL = cml2gauss.accept(MediaType.TEXT_PLAIN_TYPE,MediaType.APPLICATION_XML_TYPE).post(String.class,cmlfileURL);<br />System.out.println(gaussURL);<br /> }<br />}<br />11<br />Jersey Client API<br />
  24. 24. TeraGrid<br />12<br />
  25. 25. 13<br />OREChem Workflow in XBaya<br />
  26. 26. Triple Store<br />A triple store is framework used for storing and querying RDF data. It provides a mechanism for persistent storage and access of RDF graphs. <br /> Commercial: Allegrograph, BigOWLIM, Virtuoso<br /> Open Source: Jena SDB, Sesame, Virtuoso, Intellidimension<br />14<br />
  27. 27. Virtuoso Triple Store<br />ORDBMS extended into a Triple store.<br />Command line loaders; isql utility (interactive sql access to a database)<br />Support for SPARQL and web server to perform SPARQL queries <br />Uploading of data over HTTP, WEBDAV browser.<br />15<br />http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSRDFWP<br />
  28. 28. What’s in Triple Store<br />RDF Graph<br />Experiments performed on a particular crystal<br />Journal articles containing this crystal (research groups working with the crystal)<br />Moieties in the crystal, their energies geometries, vibrational frequencies, etc.<br />All this information in the triple store can be queried on, using a single GRAPH IRI.<br />16<br />
  29. 29. Virtuoso Triple Store<br /> GRAPH IRI : used to perform sparql query on the RDF triples.<br /> * Unique for every file uploaded.<br /> http://local.virt/DAV/home/schalla/rdf_sink/oreatomfeed_102.rdf<br /> * A common GRAPH IRI for all the data uploaded into rdf_sink .<br /> (virt:rdf_graph, virt:rdf_sponger)<br />http://localhost:8890/DAV/home/schalla/rdf_sink/<br />17<br />
  30. 30. Future Work<br />Real future work (through Dec 2010)<br />Use OGCE workflow interpreter engine to run workflow as a service.<br />Integrate with simple visualization services (JMOL).<br />Store input and output URLs persistently in the triple store.<br />Anticipating higher level services.<br />Better support for REST services in OGCE GFAC and XBaya<br />Hopeful future work (next year)<br />Integrate with services from GridChem/ParamChem<br />Handle larger scale job submission<br />Develop a full gateway for public browsing and retrieval.<br />Investigate push-style publish/subscribe solutions for notifications.<br />Great deal of JMS and Web Service experience with this, but very scalable REST messaging for RSS/Atom is coming<br />Pubsubhubbub and Twitter live feeds for example. <br />OGCE Messaging system prototyped with REST interfaces for small iPlant collaboration.<br />18<br />
  31. 31. Come by the IU booth for more information on OGCE tools used here.<br />Mini-symposium: 10-12 noon on Tuesday<br />Interactive presentations all week at the flat screen kiosk.<br />NCSA walkup demos: 1-2 PM on Wednesday<br />Source code for our ORE-Chem services is available from SourceForge<br />Contact: mpierce@cs.indiana.edu<br />19<br />More Information<br />
  32. 32. Thank You<br />20<br />
  33. 33. Future Work<br />Google’s PubSubHubbub : <br /> As soon as a feed is published, hub notifies the subscriber. Thus get the new entry and start the pipeline.<br />Publisher<br />Hub<br />Subscriber<br />http://code.google.com/p/pubsubhubbub/<br />21<br />
  34. 34. Questions ??<br />22<br />
  35. 35. ATOM to RDF/XML<br /><ul><li>GRDDL Transformation: (Jena GRDDL Reader)</li></ul>GRDDL is a mechanism for Gleaning Resource Descriptions from Dialects of Languages. <br />atom-grddl.xsl - XSLT stylesheet<br /> GRDDLReader grddl=new GRDDLReader();<br /> grddl.read (defaultmodel, atomfeedURL);<br />GRDDL W3C documentation: http://www.w3.org/TR/grddl/<br />23<br />
  36. 36. 24<br />ORE Representation of an Aggregation of a Moiety in Turtle format<br />
  37. 37. ATOM to RDF/XML<br /><ul><li>Saxon XSLT Tranformation :</li></ul>ByteArrayOutputStreamtransformOutputStream = new ByteArrayOutputStream();<br />TransformerFactory factory = TransformerFactory.newInstance();<br />StreamSourcexslSource = new StreamSource(xslstream);<br />StreamSourcexmlSource = new StreamSource(atomstream);<br />StreamResultoutResult = new StreamResult(transformOutputStream);<br /> Transformer transformer = factory.newTransformer(xslSource);<br />transformer.transform(xmlSource, outResult);<br />transformOutputStream.close();<br />25<br />
  38. 38. OGCE-Workflow Suite<br />Tools to wrap command-line applications as light weight web services, compose workflows from those web services and, execute and monitor the workflows.<br />1) GFAC : allows users to wrap any command-line application as a web service.<br />2) XRegistry :XRegistry is the information repository of the workflow suite enabling users to register, search and access application service and workflow deployment descriptions.<br /> 3) XBaya :Java webstart workflow composer. Used for composing workflows from web services created by the GFAC, and running and monitoring those workflows.<br />Open Grid Computing Environments Wiki <br />http://www.collab-ogce.org/ogce/index.php/Workflow<br />26<br />
  39. 39. 27<br />
  40. 40. Experiments, Protocols ???<br />(Experimental Data)<br />Moieties’, their energies, latent heats of fusion, vibrational frequencies ?<br />(Molecular Properties,etc)<br />Who ? Where ? When ?<br />(Bibliographic Data) <br />28<br />
  41. 41. Microsoft Research’s ORECHEM Project<br />“A collaboration between chemistry scholars and information scientists to develop and deploy the infrastructure, services, and applications to enable new models for research and dissemination of scholarly materials in the chemistry community.”<br />http://research.microsoft.com/en-us/projects/orechem/<br />29<br />
  42. 42. 30<br />ORE representation of a Resource Map in Turtle format<br />
  43. 43. 31<br />Gaussian Input File<br />
  44. 44. 32<br />Moiety and its 3D co-ordinates.<br />every atom & it’s X,Y,Z co-ordinates.<br />Currently ~30000 moieties in Crystal Eye Repository<br />bond order , Smiles & InChI representations<br />
  45. 45. OGCE-Workflow Suite<br />OGCE Workflow Toolkit for Multi-Disciplinary Science Applications, Suresh Marru’s Presentation.<br />33<br />
  46. 46. XBaya Workflow Composer<br />34<br />
  47. 47. Acknowledgements<br />Dr. Marlon Pierce<br />Assistant Director,<br />Community Grid Labs, <br />Pervasive Technology Institute,<br />Indiana University<br />Dr. David J.Wild<br />Assistant Professor of Informatics & ComputingDirector of Cheminformatics ProgramSchool of Informatics and Computing, <br />Indiana University<br />Orechem Group : <br />Dr. Carl Lagoze(Cornell University), <br />Dr. Peter Murray Rust, Nick Day, <br />Jim Downing (University of Cambridge), <br />Mark Borkum(University of Southampton), <br />Na Li (Penn State), <br />Alex, Lee Dirks (Microsoft Research)<br />Suresh Marru<br />Research Scientist,<br />Pervasive Technology Institute,<br />Indiana University<br />JaliyaEkanayake, Scott Beason, <br />All the members in Pervasive Technology Institute<br />35<br />
  48. 48. Future Work<br />Wrap the tool that generates triples from gaussian output, into a REST service.<br />Install Virtuoso triple store on the Azure cloud.<br />Fetch & process the feeds from Southampton, Penn State.<br />36<br />
  49. 49. 37<br />Moiety and its 3D co-ordinates.<br />every atom & it’s X,Y,Z co-ordinates.<br />Currently ~30000 moieties in Crystal Eye Repository<br />bond order , Smiles & InChI representations<br />
  50. 50. 38<br />ORE representation of a Resource Map in Turtle format<br />
  51. 51. Virtuoso Triple Store<br />Windows and Linux versions are installed and tested. <br />Currently Linux version being used.<br />Conductor: http://gf18.ucs.indiana.edu:8890/conductor<br />Sparql endpoint : http://gf18.ucs.indiana.edu:8890/sparql<br />Implementing a SPARQL compliant RDF Triple Store using a SQL-ORDBMS. http://virtuoso.openlinksw.com/dataspace/dav/wiki/Main/VOSRDFWP<br />39<br />

×