210 likes | 337 Views
Atom Publishing CMT607 Distributed Protocol Computer Systems. By Mohamed Masri , Robert Darrock , Abdulelah Aljubair , David Hannaford, Eisa Mohamed & Gilbert Gilbert. Atom publishing protocol.
E N D
Atom Publishing CMT607 Distributed Protocol Computer Systems By Mohamed Masri, Robert Darrock, AbdulelahAljubair, David Hannaford, Eisa Mohamed & Gilbert Gilbert Atom publishing protocol
Atom Publishing CMT607 Distributed Protocol Computer Systems What is a Feed - Mohamed What is Atom Publishing Protocol - Rob Examples of Use - Dave Introduction
Atom Publishing CMT607 Distributed Protocol Computer Systems Mohamed Masri What is a feed?
Atom Publishing CMT607 Distributed Protocol Computer Systems • General Definition A data format used for providing users with frequently updated content. • Technical Definition A document (often XML-based) whose discrete content items include web links to the source of the content. What Is A Feed
Atom Publishing CMT607 Distributed Protocol Computer Systems Subscribing to feeds does not require email address Easier to unsubscribe It can be read offline BENEFITS
Atom Publishing CMT607 Distributed Protocol Computer Systems • Content distributors syndicate a web feed • Users install a standalone or web-based aggregator • Aggregator - a program or site that collects the feeds for reading • Users selects a feed (link) in the aggregator to open the actual page. HOW DOES A FEED WORK
Atom Publishing CMT607 Distributed Protocol Computer Systems • RSS • More widely used • Requires only title, link and description of the feed of an entry • Atom • More flexible and more features • “Updated” field Types Of Web Feed Formats
Atom Publishing CMT607 Distributed Protocol Computer Systems Robert Darrock What is Atom publishing protocol?
Atom Publishing Protocol Defined in RFC 5023 It is an application level protocol for publishing and editing web resources Such as weblogs, online journals, Wikis, and similar content using HTTP and XML 1.0. The semantics used build on those specified in HTTP. Atom Publishing CMT607 Distributed Protocol Computer Systems
Collections Central to the Atom Publishing Protocol is the concept of collections of editable resources that are represented by Atom 1.0 Feed and Entry documents. Collections: Sets of related resources, which can be retrieved in whole or in part. A collection has a unique URI They are represented as Atom feeds Analogous to the “folders” or “directories” found in many file systems All members of a collection have an “updated” property, and the collection is ordered by this property Atom Publishing CMT607 Distributed Protocol Computer Systems
An example Collection Document <?xml version="1.0" encoding='utf-8'?> <collection xmlns="http://purl.org/atom/app#"> <member href="http://example.org/1" hrefreadonly="http://example.com/1/bar" title="Sample 1" updated="2003-12-13T18:30:02Z" /> <member href="http://example.org/2" hrefreadonly="http://example.com/2/bar" title="Sample 2" updated="2003-12-13T18:30:02Z" /> <member href="http://example.org/3" hrefreadonly="http://example.com/3/bar" title="Sample 3" updated="2003-12-13T18:30:02Z" /> <member href="http://example.org/4" title="Sample 4" updated="2003-12-13T18:30:02Z" /> </collection> Atom Publishing CMT607 Distributed Protocol Computer Systems
Illustration I got from Wikipedia To modify those entries, the client simply retrieves the resource from the collection, makes the changes and then puts it back. Atom Publishing CMT607 Distributed Protocol Computer Systems
Step 1 Discovery The first step is to find out what collections are available and the types of resources that those collections contain. This is done by using get request to obtain an Introspection Document containing the locations of the collections. Atom Publishing CMT607 Distributed Protocol Computer Systems
Step 2 Listing A request of the listing of the collections’s membership is made. The client sends a GET reqest to the collections URI Server responds with an Atom feed document of the full or partial listing of the collection’s membership. Atom Publishing CMT607 Distributed Protocol Computer Systems
Step 3 Creating an entry POST is used to create a new, dynamically-named resource Step 4 Reading an entry GET is used to retrieve a representation of a resource or perform a read-only query Step 5 Update an entry PUT is used to update a known resource Step 6 Deleting an entry DELETE is used to remove a resource Atom Publishing CMT607 Distributed Protocol Computer Systems
Atom Publishing CMT607 Distributed Protocol Computer Systems David Hannaford example
Atom Publishing CMT607 Distributed Protocol Computer Systems Examples of use
Atom Publishing CMT607 Distributed Protocol Computer Systems ANY QUESTIONS?