Skip to content

Commit 5f98c00

Browse files
committed
replace RSS example
1 parent 2cb25ea commit 5f98c00

File tree

2 files changed

+48
-38
lines changed

2 files changed

+48
-38
lines changed
Binary file not shown.

tutorials/odata-01-intro-origins/odata-01-intro-origins.md

Lines changed: 48 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: Learn about OData Fundamentals
55
description: Discover OData's origins and learn about the fundamentals of OData by exploring a public OData service.
66
auto_validation: false
77
primary_tag: products>sap-cloud-platform
8-
tags: [ products>sap-cloud-platform, topic>cloud, topic>odata, tutorial>beginner ]
8+
tags: [ products>sap-cloud-platform, topic>cloud, programming-tool>odata, tutorial>beginner ]
99
time: 15
1010
---
1111

@@ -33,49 +33,60 @@ The origin of OData's format comes from the world of weblogs, blogging and syndi
3333

3434
> RSS is also known as "RDF Site Summary" or "Really Simple Syndication".
3535
36-
Look at an example of the RSS representation of blog posts - in particular, the posts tagged **ABAP Development** with this URL:
36+
Let's look at an example of RSS. The National Aeronautics and Space Administration (NASA) maintains many RSS feeds, and you can see a list of them on the [NASA RSS Feeds](https://www.nasa.gov/content/nasa-rss-feeds) page. Go there now and select the [Breaking News](https://www.nasa.gov/rss/dyn/breaking_news.rss) feed which is at this URL:
3737

38-
<https://blogs.sap.com/tags/833755570260738661924709785639136/>
38+
<https://www.nasa.gov/rss/dyn/breaking_news.rss>
3939

40-
and select the **RSS** link as shown in the screenshot.
41-
42-
![RSS link on page of blog posts](blogposts-with-abap-development-tag.png)
40+
The resulting RSS content of this resource should look something like this (reduced here for brevity):
4341

42+
```xml
43+
<?xml version="1.0" encoding="utf-8"?>
44+
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:media="http://search.yahoo.com/mrss/" version="2.0" xml:base="http://www.nasa.gov/">
45+
<channel>
46+
<title>NASA Breaking News</title>
47+
<description>A RSS news feed containing the latest NASA news articles and press releases.</description>
48+
<link>http://www.nasa.gov/</link>
49+
<atom:link rel="self" href="http://www.nasa.gov/rss/dyn/breaking_news.rss"/>
50+
<language>en-us</language>
51+
<item>
52+
<title>NASA Administrator to Visit Florida Students, Industry</title>
53+
<link>http://www.nasa.gov/press-release/nasa-administrator-to-visit-florida-students-industry</link>
54+
<description>NASA Administrator Bill Nelson will speak to elementary school students about the future of space exploration Monday, May 9, and tour a lab working on robotic construction technologies Tuesday, May 10, during a trip to Florida.</description>
55+
<enclosure url="http://www.nasa.gov/sites/default/files/styles/1x1_cardfeed/public/thumbnails/image/nasa-logo-web-rgb_0.jpg?itok=mrBnB_c9" length="189751" type="image/jpeg"/>
56+
<guid isPermaLink="false">http://www.nasa.gov/press-release/nasa-administrator-to-visit-florida-students-industry</guid>
57+
<pubDate>Fri, 06 May 2022 11:13 EDT</pubDate>
58+
<source url="http://www.nasa.gov/rss/dyn/breaking_news.rss">NASA Breaking News</source>
59+
<dc:identifier>479411</dc:identifier>
60+
</item>
61+
<item>
62+
<title>NASA, ESA Astronauts Safely Return to Earth</title>
63+
<link>http://www.nasa.gov/press-release/nasa-esa-astronauts-safely-return-to-earth</link>
64+
<description>NASA’s SpaceX Crew-3 astronauts aboard the Dragon Endurance spacecraft safely splashed down Friday in the Gulf of Mexico off the coast of Florida, completing the agency’s third long-duration commercial crew mission to the International Space Station.</description>
65+
<enclosure url="http://www.nasa.gov/sites/default/files/styles/1x1_cardfeed/public/thumbnails/image/nhq202205060003.jpg?itok=nJXN4A_c" length="3817815" type="image/jpeg"/>
66+
<guid isPermaLink="false">http://www.nasa.gov/press-release/nasa-esa-astronauts-safely-return-to-earth</guid>
67+
<pubDate>Fri, 06 May 2022 01:04 EDT</pubDate>
68+
<source url="http://www.nasa.gov/rss/dyn/breaking_news.rss">NASA Breaking News</source>
69+
<dc:identifier>479399</dc:identifier>
70+
</item>
71+
</channel>
72+
</rss>
73+
```
4474

45-
The resulting RSS content of this resource should look something like this:
75+
Observe the structure of the XML document. Within the outermost `<rss>` element, it describes a `<channel>` that has some metadata such as title and description. That `<channel>` contains one or more `<item>` elements, each of them representing a breaking news item.
4676

47-
```xml
48-
<feed xmlns="http://www.w3.org/2005/Atom">
49-
<title>Latest blog posts for ABAP Development</title>
50-
<link rel="alternate" type="text/html" href="https://community.sap.com/"/>
51-
<id>https://community.sap.com/</id>
52-
<rights>© 2018 SAP SE https://www.sap.com/about/legal/copyright.html</rights>
53-
<logo>https://www.sap.com/dam/application/shared/logos/sap-logo-svg.svg</logo>
54-
<updated>2021-01-26T18:59:22Z</updated>
55-
<entry>
56-
<title>Getting Started with ABAP in 2021</title>
57-
<link rel="alternate" href="https://blogs.sap.com/?p=1259056"/>
58-
<category term="ABAP Development"/>
59-
<category term="#ABAP"/>
60-
<category term="#CDS"/>
61-
<category term="ABAP Beginner"/>
62-
<category term="abap beginners guide"/>
63-
<category term="beginner guide to HANA"/>
64-
<category term="Core Data Services (CDS)"/>
65-
<category term="Virtual Data Model"/>
66-
<author>
67-
<name>Markus Haug</name>
68-
</author>
69-
<id>https://blogs.sap.com/?p=1259056</id>
70-
<updated>2021-01-26T18:59:22Z</updated>
71-
<published>2021-01-26T18:59:22Z</published>
72-
<summary type="text">Whether you are new to ABAP or just want to learn something new this year, this blog post will give you an overview and a handful of helpful resources about all the new technologies in the ABAP cosmos. Not only the universe is expanding, but the ABAP world is also. ...</summary>
73-
</entry>
74-
...
75-
</feed>
77+
```
78+
rss
79+
|
80+
+-- channel
81+
|
82+
+-- item
83+
|
84+
+-- item
85+
|
86+
+-- ...
7687
```
7788

78-
Observe the structure of the XML document. It describes a `feed` that has some metadata such as title, id, logo and information as to when it was last updated. That `feed` contains one or more `entry` elements, each of them representing a post in the list tagged with "ABAP Development". Think of this like a document, with a header and items.
89+
Think of this overall structure like a document, with a header and items.
7990

8091
[VALIDATE_1]
8192

@@ -258,4 +269,3 @@ Finally, use the OData system query option $count to retrieve the number of orde
258269

259270
[VALIDATE_9]
260271
[ACCORDION-END]
261-

0 commit comments

Comments
 (0)