November 13, 2020 Web 2.0 ▪ The term Web 2.0 was introduced by Tim O'Reilly at the Web 2.0 conference in 2004 to describe a new generation of web apps ▪ user-generated content ▪ data as a driving force - infoware (data management) rather than simply software ▪ collective intelligence via social resource and knowledge sharing ▪ Web as a platform for software applications ▪ Not a new technology but a change in how developers and users build applications on the Web ▪ user-generated content already existed earlier (e.g. Amazon) [https://en.wikipedia.org/wiki/File:Web_2.0_Map.svg]
November 13, 2020 Main Web 2.0 Ingredients ▪ Social Web ▪ end user as a participant and content creator (prosumer) ▪ democracy ▪ Rich Internet Applications (RIAs) ▪ bring the desktop to the browser ▪ highly interactive applications (e.g. with drag and drop) ▪ based on AJAX etc. ▪ Service Oriented Architectures (SOAs) ▪ enable the sharing of information and services between different Web 2.0 applications ▪ Web Services, RSS, mashups, etc.
November 13, 2020 Web 1.0 vs. Web 2.0 Web 1.0 Web 2.0 publishing participation reading reading and writing (participatory Web) content management systems wikis personal homepages blogs simple request/response interaction Rich Internet Application (RIA) screen scraping (extract data from HTML) service-oriented architectures taxonomies (classification) folksonomies (tagging) companies communities single user social networks bookmarking collaborative tagging / social bookmarking ... ...
November 13, 2020 Web 2.0 and the Long Tail ▪ The term long tail has been introduced by Chris Anderson in 2004 ▪ article about Amazon etc. - 'Touching the Void' and 'Into Thin Air' example ▪ Main observations ▪ the tail is longer than expected and now economically within reach ▪ the niches form a significant market when aggregated ▪ new economic model: combine infinite shelf space with shared real-time public opinions and buying trends ▪ Major part of Internet content made up by small sites ▪ provide tools to address the long tail and not just the head Joe Simpson, 1988 Jon Krakauer, 1997
November 13, 2020 Wikis ▪ The first wiki was the WikiWikiWeb in 1995 ▪ Ward Cunningham ▪ inspired by HyperCard ▪ Any user can create new wiki pages or edit existing pages ▪ no special software required on the client side (only a browser) ▪ Democracy-based control of the content ▪ revision history, discussion, ... ▪ Various wiki software ▪ MediaWiki, DokuWiki, ...
November 13, 2020 Wikipedia ▪ Open authoring model ▪ registered and anonymous users may contribute ▪ some users (editors) have special rights ▪ Each article has ▪ a history page showing all of its changes ▪ a discussion page ▪ Issues ▪ reliability never guaranteed since no central authority ▪ vandalism ▪ ...
November 13, 2020 Blogs ▪ A blog (weblog) is a chronologically ordered list of information ▪ personal diary ▪ specific subjects - e.g. celebrities ▪ Tool for delivering news and getting in touch with a large community of users ▪ nowadays often used as a powerful channel in politics ▪ much harder to control than print or broadcasting media ▪ Popular blogs often generate revenue by advertising ▪ access to content is often free
November 13, 2020 Flickr ▪ Image hosting and sharing website ▪ Image repository that is often used by bloggers ▪ Managing images ▪ collaborative tagging - user-generated taxonomy (folksonomy) - one of the first websites that implemented tag clouds ▪ grouping in sets, collections and higher order collections - note that an image may be added to multiple sets ▪ Offers a powerful Web Service API ▪ can easily be integrated with third-party applications
November 13, 2020 Facebook ▪ Social networking site ▪ Connect to friends and share information ▪ post messages on a user's public wall ▪ send individual messages ▪ share photos ▪ Easy to add individual applications (one platform) ▪ Copyright issues ▪ what happens with content that has been uploaded to Facebook? ▪ Privacy issues
November 13, 2020 Twitter ▪ Micro-blogging and social networking service ▪ Small messages (tweets) can be posted to a user profile ▪ reach millions of users from any place around the world within seconds - used in protests and politics, emergencies, ... ▪ Can we get too connected?
November 13, 2020 Instagram ▪ Mobile photo and video sharing ▪ 'instant camera' and 'telegram' ▪ Simple digital filters can be applied ▪ Uses hashtags to dis- cover photos ▪ Users can like and com- ment on photos as well as follow other users ▪ Instagram influencers
November 13, 2020 Second Life ▪ Virtual 3-dimensional world by Linden Lab ▪ special client software ▪ User represented by an avatar ▪ Linden dollar (L$) as a currency ▪ buy land ▪ buy and sell goods and services to other users ▪ Applications ▪ education, business meetings, arts, ...
November 13, 2020 Academia.edu ▪ Social networking website for researchers ▪ Sharing and rating of resources ▪ research papers, conference presentations, CVs, etc. ▪ Find researchers with similar research interests ▪ Other professional social networking websites ▪ LinkedIn, Xing, ...
November 13, 2020 SlideShare ▪ Social networking website to share presentations ▪ High quality educational material ▪ Various APIs for inte- gration with other social networking websites ▪ Content may spread virally through social networks and blogs
November 13, 2020 Mashups ▪ Combine content or func- tionality from existing web- sites, web services and RSS feeds ▪ Various mashup tools ▪ IBM Mashup Center, ... ▪ for developers or end users ▪ Mashup example ▪ composition of Google Maps and real-time information about the position of airplanes - https://www.flightradar24.com
November 13, 2020 Google Docs ▪ Free web-based office tools ▪ word processor, spreadsheet application, ... ▪ Mobile access via mobile phone ▪ Software as a service (SaaS) ▪ Data safety and privacy issues
November 13, 2020 Google AdSense ▪ Highly customised delivery of advertisements ▪ shows advertisements delive- red via Google AdWords ▪ New models for payment ▪ pay-per-click in addition to pay-per-impression ▪ Any website owner can enrol ▪ sometimes very complementary information - e.g. blog with reviews about specific products together with Google advertisements for these products ▪ Google advertising revenues ▪ 2019: USD 134.8 billion (total revenues USD 161.9 billion)
November 13, 2020 Social Implications of Web 2.0 ▪ Data ownership and copyright issues ▪ Collective intelligence (wisdom of crowds) ▪ Shift of power from controlled media to collaborative communities ▪ New models for crediting an individual's content that is accessed by other users or composed in mashup applications ▪ Everybody has a (big) voice ▪ e.g. reach millions of users within seconds via Twitter
November 13, 2020 Common Web 2.0 Patterns ▪ The presented Web 2.0 applications have some common underlying patterns ▪ service oriented architectures (SOAs) ▪ software as a service ▪ asynchronous partial updates ▪ mashups ▪ self-organising communities ▪ collaborative tagging ▪ viral marketing ▪ ...
November 13, 2020 Rich Internet Applications (RIAs) ▪ Bring the desktop to the browser ▪ Highly responsive (good performance) ▪ asynchronous and partial content updates ▪ Rich Graphical User Interface (GUI) ▪ various RIA toolkits and environments introduced earlier - Adobe Flash, Apache Flex and AIR - Microsoft Silverlight - Sun JavaFX - JavaServer Faces (JSF) - Mozilla XUL (XML User Interface Language) - ...
November 13, 2020 Asynchronous Partial Updates Client Server ▪ Rather than updating an entire resource (e.g. webpage), we can asynchronously update parts of a resource ▪ Updates initiated by the client (or the server) based on user interaction, state change, timeout, … Service Service
November 13, 2020 Asynchronous Partial Updates … ▪ Updates cannot be initiated by the server if HTTP is used! ▪ have to use polling or long polling (e.g. Comet model) ▪ There are different possibilities how the partial update of resources can be realised over the Web ▪ AJAX ▪ Action Message Format (AMF) - used by Apache Flex ▪ REST-based implementations ▪ …
November 13, 2020 AJAX Example ... ▪ createXMLHttpRequest() deals with different browser versions ▪ Getting Started with Ajax ▪ https://dzone.com/refcardz/getting-started-ajax ▪ For more advanced AJAX examples see ▪ https://www.w3schools.com/js/js_ajax_intro.asp <form name="testForm"> Input: <input type="text" name="input" onkeyup="getTime();" /> Time: <input type="text" name="time" /> </form> </body> </html>
November 13, 2020 Service-Oriented Architecture (SOA) ▪ Architecture that modularises functionality as interoperable services ▪ loose coupling of services ▪ service encapsulation ▪ interoperability between different operating systems and programming languages ▪ mashup of services ▪ ... ▪ Software as a service (SaaS) ▪ software is offered as a service and may itself be a composition of third-party services
November 13, 2020 Representational State Transfer (REST) ▪ REST is an architectural style for distributed hypermedia systems requiring the following constraints (1) separation of concerns between client and server − client and server can be developed and replaced independently (2) uniform interface − identification of resources (e.g. URIs on the Web) − manipulation of resources on the server via representation on the client side − self-describing messages (e.g. MIME type on the Web) − hypermedia for application state change (e.g. hypertext links to related resources) (3) stateless − no client state is stored on the server side (4) cacheability − responses must explicitly or implicitly define whether they are cacheable
November 13, 2020 Representational State Transfer (REST) ... (5) layering − intermediary servers (proxies) can be transparently added between the client and the server (6) code on demand (optional) − the server can send application logic (code) to the client (e.g. Java Applets) ▪ A service that conforms at least to the first five constraints is called a RESTful service ▪ The Web is an implementation of a system conforming to the REST architectural style ▪ however, RESTful services can also be implemented over protocols other than HTTP
November 13, 2020 Web Services ▪ Web-based client-server communication over HTTP ▪ Two main types of Web Services ▪ Big Web Services - Universal Description, Discovery and Integration (UDDI) - Web Services Description Language (WSDL) - Simple Object Access Protocol (SOAP) ▪ RESTful Web Services - better integrated with HTTP and web browsers - makes use of GET, POST, PUT and DELETE HTTP methods
November 13, 2020 Big Web Services ... ▪ Universal Description, Discovery and Integration (UDDI) ▪ yellow pages for WSDL ▪ "global" registry describing available business services ▪ very complex ▪ Microsoft and IBM shut down their public UDDI registries in 2006 ▪ Web Service Description Language (WSDL) ▪ XML application to describe a Web Service's functionality ▪ complex ▪ Simple Object Access Protocol (SOAP) ▪ defines an envelope for transporting XML messages ▪ The Web Service Stack contains many other protocols ▪ BPEL, WS-Security, WS-Reliability, WS-Transaction, ...
November 13, 2020 SOAP ▪ Successor of XML-RPC (discussed earlier) ▪ Introduced in 1998 as Simple Object Access Protocol ▪ Dave Winer, Don Box, Bob Atkinson and Mohsen Al-Ghosein ▪ since version 1.2 the name is no longer treated as an acronym ▪ XML-based communication protocol ▪ A SOAP message consists of an <Envelope> element which contains ▪ an optional <Header> element ▪ a <Body> element - remote procedure call or response information ▪ SOAP requests are often sent via HTTP POST requests
November 13, 2020 SOAP Request Message Example ▪ predefined SOAP attributes - encodingStyle: defines the used data types - mustUnderstand: if set to 1 then the server has to understand the header - actor: can be used to delegate the header to an intermediary receiver (proxy) <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> <soap:Header> <t:username xmlns:t="http://wise.vub.ac.be/transaction/" soap:mustUnderstand="1">pellens</t:username> </soap:Header> <soap:Body xmlns:c="http://wise.vub.ac.be/courses/"> <c:getCourseInfo> <c:courseID>4011474FNR</c:courseID> </c:getCourseInfo> </soap:Body> </soap:Envelope>
November 13, 2020 SOAP Response Message Example ▪ note that also a response message can have a <Header> element ▪ the body contains a <Fault> element if something went wrong on the server side <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> <soap:Body> <c:getCourseInfoResponse xmlns:c="http://wise.vub.ac.be/courses"> <c:title>Web Information Systems</c:title> <c:description>The goal of this course is to teach students the concepts and technologies for realising Web Information Systems (WIS). This ranges from basic network technologies and protocols to high level frameworks for the design and ... </c:description> </c:getCourseInfoResponse> </soap:Body> </soap:Envelope>
November 13, 2020 SOAP ... ▪ Advantages ▪ platform and language independent ▪ SOAP over HTTP results in less problems with proxies and firewalls than other remote procedure call solutions (e.g. CORBA) ▪ there exist a lot of tools and language bindings that automatically create the required client and server-side functionality - e.g. Java API for XML Web Services (JAX-WS) ▪ Disadvantages ▪ slower than non-verbose protocols (e.g. CORBA) ▪ Big Web Services are not simple ▪ HTTP is reduced to a simple transport protocol for a large amount of XML metadata payload - does not make use of the rich functionality offered for HTTP envelopes ▪ no mechanism for the caching of results
November 13, 2020 RESTful Web Services ▪ A RESTful web service (or RESTful Web API) is a simple web service implemented using HTTP ▪ The definition of RESTful web service includes ▪ the URI of the web service (e.g. http://wise.vub.be/course/) - different resources identified by unique URIs ▪ the type (MIME) of data supported by the service - e.g. application/json, application/xml, ... ▪ supported set of operations via HTTP methods - e.g. GET, POST, PUT, DELETE ▪ One-to-one mapping between create, read, update, and delete (CRUD) operations and HTTP methods ▪ POST (create), GET (read), PUT (update) and DELETE (delete)
November 13, 2020 Really Simple Syndication (RSS) ▪ Format (in XML) that is used to read and write frequently updated information on the Web ▪ e.g. blog entries ▪ specific channels on news sites ▪ ... ▪ Special RSS readers or aggregators
November 13, 2020 RSS Example ▪ many other elements ▪ <language>, <copyright>, <pubDate>, ... <?xml version="1.0" encoding="ISO-8859-1" ?> <rss version="2.0"> <channel> <title>W3Schools Home Page</title> <link>http://www.w3schools.com</link> <description>Free web building tutorials</description> <item> <title>RSS Tutorial</title> <link>http://www.w3schools.com/rss</link> <description>New RSS tutorial on W3Schools</description> </item> <item> <title>XML Tutorial</title> <link>http://www.w3schools.com/xml</link> <description>New XML tutorial on W3Schools</description> </item> ... </channel> ... </rss>
November 13, 2020 References ▪ James Governor et al., Web 2.0 Architectures, O'Reilly Media, May 2009 ▪ Chris Anderson, The Long Tail, Wired 12(10), 2004 ▪ https://www.wired.com/2004/10/tail/ ▪ Michael Wesch, The Machine is Us/ing Us ▪ https://www.youtube.com/watch?v=NLlGopyXT_g ▪ Jonathan Zittrain, The Kindness of Strangers, TEDGlobal 2009, Oxford, UK, July 2009 ▪ https://www.ted.com/talks/lang/eng/jonathan_zittrain_the_web_is _a_random_act_of_kindness.html ▪ Live Flight Tracker ▪ https://www.flightradar24.com