Presentation is loading. Please wait.

Presentation is loading. Please wait.

IDK0040 Võrgurakendused I RSS 2.0 Deniss Kumlander.

Similar presentations


Presentation on theme: "IDK0040 Võrgurakendused I RSS 2.0 Deniss Kumlander."— Presentation transcript:

1 IDK0040 Võrgurakendused I RSS 2.0 Deniss Kumlander

2 RSS RSS is a method for getting and sending news and information. You can subscribe to an RSS feed and have the latest news and information sent to your RSS reader program. The RSS reader program will alert you when there is new information for you to read. www.w3.org/WAI/highlights/about-rss.html

3 RSS So RSS is used –To list news (of a company, person, organisation) –To list update (of a site, pages) –To list events (scheduled in future)

4 RSS acronym RSS means –Rich Site Summary (RSS 0.91) –RDF Site Summary (RSS 0.9, 1.0 and 1.1)RDF Site Summary So far – developed by w3 as a standard –Really Simple Syndication (RSS 2.0)Really Simple Syndication

5 RSS example RSS Example http://www.ttu.ee TTU... News 1 Title http://www.ttu.ee/news1 100 new PhD students starts this year..... News 2 Title http://www.ttu.ee/news.php?Id=5467 News 2 content....

6 RSS Example http://www.ttu.ee TTU... News 1 Title http://www.ttu.ee/news1 100 new PhD students starts this year..... News 2 Title http://www.ttu.ee/news.php?Id=5467 News 2 content.... RSS example Defines RSS standard version Describes the RSS feed

7 RSS channel Required elements – - Defines the title of the channel – - Defines the hyperlink to the channel – - Describes the channel –contains item subtags Some optional elements – - Defines one or more categories for the feed – - Defines tates copyright rights – - This element allows additing an image to be displayed when the feed is presented a required field that defines the hyperlink to the website that offers the channel a required field that d efines the text to display if the image could not be shown a required field that specifies the URL to the image an optional field that specifies the text in the HTML title attribute of the link around the image an optional field that defines the height of the image. Default is 31. Maximum value is 400 an optional field that defines the width of the image. Default is 88. Maximum value is 144 – - Specifies the language of the feed (Estonian: et-ee, English: en-us, Russian: ru-ru) – - (time to live) specifies the number of minutes the feed can stay cached before refreshing it from the source – - Specifies the days where aggregators should skip updating the feed (Sunday, Saturday) PS: each date should be enclosed by own tags – - Specifies the hours where aggregators should skip updating the feed (a number 0 - 23) PS: each date should be enclosed by own tags Friday Sunday 0 1 – - Defines the e-mail address to the editor of the content of the feed – - Defines the e-mail address to the webmaster of the feed – - Defines the last-modified date of the content of the feed (for example Fri, 26 Oct 2007 19:41:00 GMT) – - Defines the last publication date for the content of the feed (for example Fri, 26 Oct 2007 19:41:00 GMT)

8 RSS example RSS Example http://www.ttu.ee TTU... News 1 Title http://www.ttu.ee/news1 100 new PhD students starts this year..... News 2 Title http://www.ttu.ee/news.php?Id=5467 News 2 content.... A news

9 RSS item Required elements – - Defines the title of the item – - Defines the hyperlink to the item (typically you press on the item and see more (the full information, as the description below is just an annotation sometimes) – - Describes the item content (the news etc) Some optional elements – - Specifies the e-mail address to the author of the item – - Defines one or more categories the item belongs to – - Allows an item to link to comments about that item – - Allows a media file to be included with the item Required attributes: –length - Defines the length (in bytes) of the media file –type - Defines the type of media file –url - Defines the URL to the media file Example: – - Defines a unique identifier for the item – - Defines the last-publication date for the item (for example Fri, 26 Oct 2007 19:41:00 GMT)

10 Produce RSS So far described RSS is just a format. It can be produced either manually or by an application, which is either written by you or a third party one.

11 Publish RSS 1.Give a name to your RSS file. Notice that the file is an xml file, so its extension should be.xml extension. PS: You could try to validate your RSS file (using for example http://www.feedvalidator.org). http://www.feedvalidator.org 2.Upload the RSS file to your web directory on your web server. 3.Make your RSS visible –Direct link: Add an RSS link to your page. RSS Feed. Typically it includes an image like instead of text –Make browsers to discover your RSS add into the section the following subtag


Download ppt "IDK0040 Võrgurakendused I RSS 2.0 Deniss Kumlander."

Similar presentations


Ads by Google