SlideShare a Scribd company logo
RDF och RSS
Idag Kort om RDF - Resource Description Framework Kort om RSS - Really Simple Syndication eller Rich Site Summary
RDF RDF - Resource Description Framework W3C-rekommendation Används för att beskriva resurser på webben. Är tänkt att läsas av datorer, inte av människor som t.ex. html. Används t.ex. för semantisk web. Mycket flexibelt, då RDF endast är ett ramverk, som kan användas tillsammans med andra vokabulärer.
Exempel <rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot;  xmlns:cd=&quot;http://www.recshop.fake/cd&quot;>  <rdf:Description rdf:about=&quot;http://www.recshop.fake/cd/Empire Burlesque&quot;> <cd:artist>Bob Dylan</cd:artist> <cd:country>USA</cd:country> <cd:company>Columbia</cd:company> <cd:price>10.90</cd:price> <cd:year>1985</cd:year> </rdf:Description> … </rdf:RDF>
RDF och Dublin Core Dublin Core är en metadatastandard. En fix uppsättning på 15 element som kan användas för generell beskrivning av objekt. Fungerar väl tillsammans med RDF
RDF + DC, Exempel <rdf:RDF  xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:dc= &quot;http://purl.org/dc/elements/1.1/&quot;> <rdf:Description rdf:about=&quot;http://www.kth.se&quot;> <dc:title>KTH</dc:title> <dc:description>   A Description of KTH </dc:description> <dc:publisher>Bjorn Hedin</dc:publisher> <dc:date>2004-10-12</dc:date> <dc:format>text/html</dc:format> <dc:language>sv</dc:language> </rdf:Description> </rdf:RDF>
RSS RSS - RDF Site Summary eller Rich Site Summary För att hålla sig informerad om ändringar på många webbsiter. INTE W3C-rekommendation Publiceringskanal som kan läsas med RSS-läsare och olika webläsare. XML-baserad som i version 1.0 använder RDF för att göra en sammanfattning av sidor på webplatser. Väl lämpad för nyhetsföretag. Håll utkik efter RSS-feeds på sidor:
RSS-Läsare
RSS - versioner Många olika versioner och varianter finns, inte helt kompatibla (RSS 0.93, 1.0, 2.0, Atom 0.3, 1.0). Vissa har topp-elementet RSS, 1.0-versionen har topp-elemetet RDF Skiljer t.ex. om en ”items” länk finns som ett eget element, eller som ett attribut. De flesta RSS-läsare stöder de flesta versioner.
RSS - Innehåll (enkelt exempel) <rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns=&quot;http://purl.org/rss/1.0/&quot;> <channel>…</channel> <item>…</item> <item>…</item> … </rdf:RDF>
RSS - Channel <rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns=“http://purl.org/rss/1.0/” xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:syn=&quot;http://purl.org/rss/1.0/modules/syndication/&quot; <channel rdf:about=&quot;http://www.kth.se> <title>KTH</title> <description>Kungliga Tekniska högskolan</description> <dc:language>sv</dc:language> <dc:rights>Copyright Björn Hedin, CSC.</dc:rights> <dc:date>2006-10-11T16:13:21+00:00</dc:date> <dc:publisher>Nada</dc:publisher> <dc:creator>bjornh@kth.se</dc:creator> <dc:subject>Technology</dc:subject> <syn:updatePeriod>hourly</syn:updatePeriod> <syn:updateFrequency>1</syn:updateFrequency> <syn:updateBase>1970-01-01T00:00+00:00</syn:updateBase> </channel> <item>…</item> </rdf:RDF>
RSS - Item <rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns=&quot;http://purl.org/rss/1.0/&quot;> xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:syn=&quot;http://purl.org/rss/1.0/modules/syndication/&quot; <channel>…</channel> <item rdf:about=&quot; http://www.kth.se &quot;> <title>RSS-kanal upplagd</title> <description>   RSS-kanal om dagens föreläsning.   </description> <dc:creator>Björn Hedin</dc:creator> <dc:subject>RSS</dc:subject> <dc:date>2004-10-11T20:45:00+00:00</dc:date> </item> <item>…</item> … </rdf:RDF>
Podcasts RSS 2.0 stöder ”enclosures”, och används även för t.ex. podcasts. Enclosure-elementet är ett barnelement till <item> och innehåller en länk till något medieinnehåll (ljud, video, text…), information om MIME-typ och medieinnehållets storlek. <enclosure url=&quot;http://kth.se/file.mp3&quot; length=&quot;1000343&quot; type=&quot;audio/mpeg&quot; />
Referenser Validering av RSS: http://rss.scripting.com/ RSS: http://web.resource.org/rss/1.0/ RDF: http://www.w3.org/RDF/ RSS 2.0 och Enclosures: http://blogs.law.harvard.edu/tech/rss

More Related Content

PPTX
Internationell SEO - 12 lärdomar
PPT
Info masterval och kexjobb i medieteknik KTH HT 2011
PPT
LatEpi_final 6.30
PPT
Podcastseminarium
PPT
Info kexjobb-2013-11-11
PPT
Info om masterval och kexjobb, medieteknik KTH VT2013
PPT
CSS
PPT
Web publishing and XHTML
Internationell SEO - 12 lärdomar
Info masterval och kexjobb i medieteknik KTH HT 2011
LatEpi_final 6.30
Podcastseminarium
Info kexjobb-2013-11-11
Info om masterval och kexjobb, medieteknik KTH VT2013
CSS
Web publishing and XHTML

More from bjornh (15)

PPTX
Teaching procrastination - A way of helping students to improve their study h...
PPT
Info masterval medieteknik på KTH 2012-05-03
PPT
LIKT seminar on mobile learning
PPT
Location-based mLearning reminders
PPT
K-Seminar on mobile learning
PPT
Web 2.0
PPT
XML Schemas
PPT
XSL-FO
PPT
Namespaces
PPT
Device Independence
PPT
XSLT
PPT
CSS
PPT
PHP och MySQL
PPT
Web 2.0
PPT
XML och DTD
Teaching procrastination - A way of helping students to improve their study h...
Info masterval medieteknik på KTH 2012-05-03
LIKT seminar on mobile learning
Location-based mLearning reminders
K-Seminar on mobile learning
Web 2.0
XML Schemas
XSL-FO
Namespaces
Device Independence
XSLT
CSS
PHP och MySQL
Web 2.0
XML och DTD
Ad

RDF och RSS

  • 2. Idag Kort om RDF - Resource Description Framework Kort om RSS - Really Simple Syndication eller Rich Site Summary
  • 3. RDF RDF - Resource Description Framework W3C-rekommendation Används för att beskriva resurser på webben. Är tänkt att läsas av datorer, inte av människor som t.ex. html. Används t.ex. för semantisk web. Mycket flexibelt, då RDF endast är ett ramverk, som kan användas tillsammans med andra vokabulärer.
  • 4. Exempel <rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:cd=&quot;http://www.recshop.fake/cd&quot;> <rdf:Description rdf:about=&quot;http://www.recshop.fake/cd/Empire Burlesque&quot;> <cd:artist>Bob Dylan</cd:artist> <cd:country>USA</cd:country> <cd:company>Columbia</cd:company> <cd:price>10.90</cd:price> <cd:year>1985</cd:year> </rdf:Description> … </rdf:RDF>
  • 5. RDF och Dublin Core Dublin Core är en metadatastandard. En fix uppsättning på 15 element som kan användas för generell beskrivning av objekt. Fungerar väl tillsammans med RDF
  • 6. RDF + DC, Exempel <rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns:dc= &quot;http://purl.org/dc/elements/1.1/&quot;> <rdf:Description rdf:about=&quot;http://www.kth.se&quot;> <dc:title>KTH</dc:title> <dc:description> A Description of KTH </dc:description> <dc:publisher>Bjorn Hedin</dc:publisher> <dc:date>2004-10-12</dc:date> <dc:format>text/html</dc:format> <dc:language>sv</dc:language> </rdf:Description> </rdf:RDF>
  • 7. RSS RSS - RDF Site Summary eller Rich Site Summary För att hålla sig informerad om ändringar på många webbsiter. INTE W3C-rekommendation Publiceringskanal som kan läsas med RSS-läsare och olika webläsare. XML-baserad som i version 1.0 använder RDF för att göra en sammanfattning av sidor på webplatser. Väl lämpad för nyhetsföretag. Håll utkik efter RSS-feeds på sidor:
  • 9. RSS - versioner Många olika versioner och varianter finns, inte helt kompatibla (RSS 0.93, 1.0, 2.0, Atom 0.3, 1.0). Vissa har topp-elementet RSS, 1.0-versionen har topp-elemetet RDF Skiljer t.ex. om en ”items” länk finns som ett eget element, eller som ett attribut. De flesta RSS-läsare stöder de flesta versioner.
  • 10. RSS - Innehåll (enkelt exempel) <rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns=&quot;http://purl.org/rss/1.0/&quot;> <channel>…</channel> <item>…</item> <item>…</item> … </rdf:RDF>
  • 11. RSS - Channel <rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns=“http://purl.org/rss/1.0/” xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:syn=&quot;http://purl.org/rss/1.0/modules/syndication/&quot; <channel rdf:about=&quot;http://www.kth.se> <title>KTH</title> <description>Kungliga Tekniska högskolan</description> <dc:language>sv</dc:language> <dc:rights>Copyright Björn Hedin, CSC.</dc:rights> <dc:date>2006-10-11T16:13:21+00:00</dc:date> <dc:publisher>Nada</dc:publisher> <dc:creator>bjornh@kth.se</dc:creator> <dc:subject>Technology</dc:subject> <syn:updatePeriod>hourly</syn:updatePeriod> <syn:updateFrequency>1</syn:updateFrequency> <syn:updateBase>1970-01-01T00:00+00:00</syn:updateBase> </channel> <item>…</item> </rdf:RDF>
  • 12. RSS - Item <rdf:RDF xmlns:rdf=&quot;http://www.w3.org/1999/02/22-rdf-syntax-ns#&quot; xmlns=&quot;http://purl.org/rss/1.0/&quot;> xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:syn=&quot;http://purl.org/rss/1.0/modules/syndication/&quot; <channel>…</channel> <item rdf:about=&quot; http://www.kth.se &quot;> <title>RSS-kanal upplagd</title> <description> RSS-kanal om dagens föreläsning. </description> <dc:creator>Björn Hedin</dc:creator> <dc:subject>RSS</dc:subject> <dc:date>2004-10-11T20:45:00+00:00</dc:date> </item> <item>…</item> … </rdf:RDF>
  • 13. Podcasts RSS 2.0 stöder ”enclosures”, och används även för t.ex. podcasts. Enclosure-elementet är ett barnelement till <item> och innehåller en länk till något medieinnehåll (ljud, video, text…), information om MIME-typ och medieinnehållets storlek. <enclosure url=&quot;http://kth.se/file.mp3&quot; length=&quot;1000343&quot; type=&quot;audio/mpeg&quot; />
  • 14. Referenser Validering av RSS: http://rss.scripting.com/ RSS: http://web.resource.org/rss/1.0/ RDF: http://www.w3.org/RDF/ RSS 2.0 och Enclosures: http://blogs.law.harvard.edu/tech/rss