Published on

Presentation on Mashups

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide


  1. 1. Mashups <ul><ul><li>Phani Kumar </li></ul></ul><ul><ul><li>[email_address] </li></ul></ul><ul><ul><li>Monday 30 June 2008 </li></ul></ul><ul><ul><li>© Mediasurface 2008 </li></ul></ul>
  2. 2. Mashups <ul><li>Agenda </li></ul><ul><li>Introduction </li></ul><ul><li>What are Mashups </li></ul><ul><li>Why Mashups </li></ul><ul><li>Types of Mashups </li></ul><ul><li>Architecture </li></ul><ul><li>Mashup Tools & Editors </li></ul><ul><li>Mashups Vs Portlets </li></ul><ul><li>Creating Your Own Mashups </li></ul><ul><li>Conclusion </li></ul>
  3. 3. Introduction <ul><li>Mashups are an exciting genre of interactive Web applications that draw upon content retrieved from external data sources to create entirely new and innovative services. </li></ul><ul><li>They are a hallmark of the second generation of Web applications informally known as Web 2.0. </li></ul>
  4. 4. What are Mashups <ul><li>In technology, a mashup is a web application that combines data from more than one source into a single integrated tool </li></ul><ul><li>Mashup is the web application that combines data from various sources to form a completely new integrated application with a different use. </li></ul><ul><li>A Mashup is a new service, that combines functionality or content from existing sources. </li></ul><ul><li>These existing sources can be Web Services (through the use of API's), RSS feeds or even just other Websites (by screen-scraping). </li></ul><ul><li>Content used in mashups is typically sourced from a third party via a public interface or API </li></ul>
  5. 6. Why Mashups? <ul><li>Second generation of Web applications informally known as Web 2.0 </li></ul><ul><li>Creating a new and distinct web service that was not originally provided by either source. </li></ul><ul><li>The contents used in Mashup typically comes from the third party via a public interface or the Application Programming Interface (API)‏ </li></ul><ul><li>Mashups produce some amazing results, especially when it comes to trend analysis or getting the best content you can from various sources. </li></ul><ul><li>An example is the use of cartographic data from Google Maps to add location information to real-estate data from Craigslist, thereby creating a new and distinct web service that was not originally provided by either source. </li></ul>
  6. 7. Types Of Mashups <ul><li>Prominent Mashup types are </li></ul><ul><li>Mapping Mashups </li></ul><ul><li>Video and Photo Mashups </li></ul><ul><li>Search and Shopping Mashups </li></ul><ul><li>News Mashups </li></ul>
  7. 8. Mapping Mashups <ul><li>In this age of information technology, humans are collecting a prodigious amount of data about things and activities, both of which are wont to be annotated with locations. All of these diverse data sets that contain location data are just screaming to be presented graphically using maps. One of the big catalysts for the advent of mashups was Google's introduction of its Google Maps API. This opened the floodgates, allowing Web developers to mash all sorts of data onto maps. </li></ul><ul><li>APIs from Microsoft (Virtual Earth), Yahoo (Yahoo Maps), and AOL (MapQuest) shortly followed. </li></ul>
  8. 10. Video and Photo Mashups <ul><li>The emergence of photo hosting and social networking sites like Flickr with APIs that expose photo sharing has led to a variety of interesting mashups. </li></ul><ul><li>These content providers have metadata associated with the images they host </li></ul><ul><ul><ul><li>such as who took the picture </li></ul></ul></ul><ul><ul><ul><li>what it is a picture of, </li></ul></ul></ul><ul><ul><ul><li>where and when it was taken, and more)‏ </li></ul></ul></ul><ul><li>Mashup designers can mash photos with other information that can be associated with the metadata. </li></ul><ul><li>For example, a mashup might analyse song or poetry lyrics and create a mosaic or collage of relevant photos, or display social networking graphs based upon common photo metadata. </li></ul>
  9. 12. Search and Shopping Mashups <ul><li>Search and shopping mashups have existed long before the term mashup was coined. </li></ul><ul><li>Before the days of Web APIs, comparative shopping tools such as BizRate, PriceGrabber, MySimon, and Google's Froogle used combinations of business-to-business (b2b) technologies or screen-scraping to aggregate comparative price data. </li></ul><ul><li>To facilitate mashups and other interesting Web applications, consumer marketplaces such as eBay and Amazon have released APIs for programmatically accessing their content. </li></ul>
  10. 14. News Mashups <ul><li>News sources (such as the New York Times, the BBC, or Reuters) have used syndication technologies like RSS and Atom since 2002 to disseminate news feeds related to various topics. </li></ul><ul><li>Syndication feed mashups can aggregate a user's feeds and present them over the Web </li></ul><ul><li>Creating a personalized newspaper that caters to the reader's particular interests. </li></ul><ul><li>An example is, which combines feeds from the techie-oriented news sources,, and </li></ul>
  11. 16. Architecture <ul><li>A mashup application is architecturally comprised of three different participants that are logically and physically disjoint (they are likely separated by both network and organizational boundaries): </li></ul><ul><li>API/Content Providers </li></ul><ul><li>The Mashup Site </li></ul><ul><li>The Client's Web Browser </li></ul>
  12. 17. API/Content Providers <ul><li>These are the providers of the content being mashed. </li></ul><ul><li>To facilitate data retrieval, providers often expose their content through Web-protocols such as REST, Web Services, and RSS/Atom. </li></ul><ul><li>However, many interesting potential data-sources do not (yet) conveniently expose APIs. </li></ul><ul><li>Mashups that extract content from sites like Wikipedia, TV Guide, and virtually all government and public domain Web sites do so by a technique known as screen scraping. </li></ul>
  13. 18. The Mashup Site <ul><li>This is where the mashup is hosted. </li></ul><ul><li>This is where the mashup logic resides </li></ul><ul><li>Not necessarily where it is executed. </li></ul><ul><li>Mashups can be implemented similarly to traditional Web applications using server-side dynamic content generation technologies like </li></ul><ul><li>Java servlets, CGI, PHP or ASP. </li></ul>
  14. 19. The Client's Web Browser <ul><li>This is where the application is rendered graphically </li></ul><ul><li>This is the place where user interaction takes place. </li></ul><ul><li>Mashups often use client-side logic to assemble and compose the mashed content. </li></ul>
  15. 20. Ajax <ul><li>Ajax is a Web application model rather than a specific technology. It comprises several technologies focused around the asynchronous loading and presentation of content: </li></ul><ul><li>1)XHTML and CSS for style presentation </li></ul><ul><li>2)The Document Object Model (DOM) API exposed by the browser for dynamic display and interaction </li></ul><ul><li>3)Asynchronous data exchange, typically of XML data </li></ul><ul><li>4)Browser-side scripting, primarily JavaScript </li></ul><ul><li>When used together, the goal of these technologies is to create a smooth, cohesive Web experience for the user by exchanging small amounts of data with the content servers rather than reload and re-render the entire page after some user action. </li></ul>
  16. 21. Web Protocols <ul><li>Web Protocols: SOAP and REST </li></ul><ul><li>Both SOAP and REST are platform neutral protocols for communicating with remote services. </li></ul><ul><li>As part of the service-oriented architecture paradigm, clients can use SOAP and REST to interact with remote services without knowledge of their underlying platform implementation. </li></ul><ul><li>The functionality of a service is completely conveyed by the description of the messages that it requests and responds with. </li></ul>
  17. 22. SOAP <ul><li>SOAP is a fundamental technology of the Web Services paradigm. </li></ul><ul><li>Originally an acronym for Simple Object Access Protocol. </li></ul><ul><li>SOAP has been re-termed Services-Oriented Access Protocol (or just SOAP) </li></ul><ul><li>Because its focus has shifted from object-based systems towards the interoperability of message exchange. </li></ul><ul><li>There are two key components of the SOAP specification. </li></ul><ul><ul><ul><li>1) The first is the use of an XML message format for platform-agnostic encoding </li></ul></ul></ul><ul><ul><ul><li>2) Second is the message structure, which consists of a header and a body. </li></ul></ul></ul>
  18. 23. SOAP <ul><li>The header is used to exchange contextual information that is not specific to the application payload (the body), such as authentication information. </li></ul><ul><li>The SOAP message body encapsulates the application-specific payload. </li></ul><ul><li>SOAP APIs for Web services are described by WSDL documents, which themselves describe </li></ul><ul><ul><ul><li>1) What operations a service exposes </li></ul></ul></ul><ul><ul><ul><li>2) The format for the messages that it accepts (using XML Schema), </li></ul></ul></ul><ul><ul><ul><li>3) And how to address it. </li></ul></ul></ul><ul><li>SOAP messages are typically conveyed over HTTP transport, although other transports (such as JMS or e-mail) are equally viable. </li></ul>
  19. 24. REST <ul><li>REST is an acronym for Representational State Transfer. </li></ul><ul><li>A technique of Web-based communication using just HTTP and XML. </li></ul><ul><li>Its simplicity and lack of rigorous profiles set it apart from SOAP and lend to its attractiveness. </li></ul><ul><li>Unlike the typical verb-based interfaces that you find in modern programming languages (which are composed of diverse methods such as getEmployee(), addEmployee(), listEmployees(), and more), REST fundamentally supports only a few operations (that is POST, GET, PUT, DELETE) that are applicable to all pieces of information. </li></ul><ul><li>The emphasis in REST is on the pieces of information themselves, called resources. For example, a resource record for an employee is identified by a URI, retrieved through a GET operation, updated by a PUT operation, and so on. </li></ul><ul><li>In this way, REST is similar to the document-literal style of SOAP services. </li></ul>
  20. 25. REST <ul><li>With a ‘RESTful Web Service, each service is easily identified by a unique URL. </li></ul><ul><li>Essentially, when the server receives the request, it knows what to do based on the URL path. </li></ul><ul><li> (the Restful way of doing things)‏ </li></ul><ul><li>In essence the URL now is a noun not a traditional verb: </li></ul><ul><li> (this is the traditional way we did things)‏ </li></ul><ul><li>REST becomes an architecture style applicable to systems that would want operate with a Resource view. </li></ul><ul><li>SOAP, on the flip-side, has a different view of the web. It uses the web as a application infrastructure between service providers and consumers otherwise known as the Service view. </li></ul>
  21. 26. Screen Scrapping <ul><li>Lack of APIs from content providers often force mashup developers to resort to screen scraping in order to retrieve the information they seek to mash. </li></ul><ul><li>Scraping is the process of using software tools to parse and analyze content that was originally written for human consumption in order to extract semantic data structures representative of that information that can be used and manipulated programmatically. </li></ul><ul><li>A handful of mashups use screen scraping technology for data acquisition, especially when pulling data from the public sectors. </li></ul>
  22. 27. RSS <ul><li>RSS is a family of XML-based syndication formats. </li></ul><ul><li>Syndication implies that a Web site that wants to distribute content, creates an RSS document and registers the document with an RSS publisher. </li></ul><ul><li>An RSS-enabled client can then check the publisher's feed for new content and react to it in an appropriate manner. </li></ul><ul><li>RSS has been adopted to syndicate a wide variety of content, ranging from news articles and headlines, changelogs for CVS checkins or wiki pages, project updates, and even audiovisual data such as radio programs. </li></ul><ul><li>Version 1.0 is RDF-based (Resource Description Framework), but the most recent, version 2.0, is not. </li></ul>
  23. 28. ATOM <ul><li>Atom is a newer, but similar, syndication protocol. </li></ul><ul><li>It is a proposed standard at the Internet Engineering Task Force (IETF) and seeks to maintain better metadata than RSS. </li></ul><ul><li>Provide better and more rigorous documentation </li></ul><ul><li>Incorporates the notion of constructs for common data representation. </li></ul><ul><li>These syndication technologies are great for mashups that aggregate event-based or update-driven content, such as news and weblog aggregators. </li></ul>
  24. 29. Mashup Tools <ul><li>Microsoft Popfly: Microsoft Popfly is Microsoft's Mashup Editor. Its very useful to an end-user and requires little technical understanding. Popfly is built on Microsoft Silverlight. </li></ul><ul><li>Yahoo Pipes: Yahoo Pipes is Yahoo's flash-based tool to aggregate, manipulate, and mashup content from around the web. Yahoo Pipes was one of the first mashup editing tools to come out. It appears to be targeted to the slightly more technical people. However it has a drag-drop interface. Its quite easy to use. </li></ul><ul><li>Google Mashup Editor: The Google Mashup Editor (GME), is defiantly the most advanced out of all the ones. Most powerful, and It's basically got a tag based markup language, that lets you also embed HTML into your results. </li></ul>
  25. 30. Mashups Vs Portlets <ul><li>Classifications: Portal is the older technology and an extension to the traditional web server model. On the other hand, Mashup is relatively the newer Web 2.0 technology. </li></ul><ul><li>Philosophy/Approach: The approach of the porter is the aggregation by splitting the role of the web server into two phases. The first phase is the markup generation and the second phase is the aggregation of markup fragments. On the other hand, Mashup has a more fundamental approach to content aggregation without regard to markup. </li></ul><ul><li>Content Dependencies: Portals aggregate presentation oriented markup fragments like HTML, WML, VoiceXML, etc., whereas, mashup can operate on pure XML conent as well as on the presentation oriented content like HTML. </li></ul>
  26. 31. Mashups Vs Portals <ul><li>Location Dependencies: In case of Portal, content aggregation takes place on the server, while in case of mashup, the content aggregation takes place either on server or on the client. </li></ul><ul><li>Aggregation Style: Portal has the ”Salad bar” style of aggregation where the aggregated content is presented in ”side-by-side” manner without any overlaps. On the other hand, Mashup has the ”Melting Pot” aggregation style where individual content may be combined in any manner. </li></ul>
  27. 32. Creating Your Own Mashups <ul><li>Pick a subject </li></ul><ul><li>Decide where your data is coming from </li></ul><ul><li>Weigh your coding skills </li></ul><ul><li>Sign-up for an API </li></ul><ul><li>Start coding </li></ul>
  28. 33. Summary <ul><li>Mashups are certainly an exciting new genre of Web applications. </li></ul><ul><li>The combination of data modeling technologies stemming from the Semantic Web domain and the maturation of loosely-coupled, service-oriented, platform-agnostic communication protocols is finally providing the infrastructure needed to start developing applications that can leverage and integrate the massive amount of information that is available on the Web. </li></ul>
  29. 34. Mashups <ul><li>Thank You </li></ul><ul><li>Resources </li></ul><ul><li>Wikipedia </li></ul><ul><li>programmableWeb </li></ul><ul><li>mashupshub </li></ul><ul><li>smalls blogger </li></ul><ul><li>IBM Developerworks </li></ul>