Your SlideShare is downloading. ×
RDFa: an introduction
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

RDFa: an introduction

661
views

Published on

This presentation is an introduction to RDFa, as the fourth assignment of the IST 681 in iSchool, Syracuse University. The presentation is made by Kai Li, who is a library student in Syracuse …

This presentation is an introduction to RDFa, as the fourth assignment of the IST 681 in iSchool, Syracuse University. The presentation is made by Kai Li, who is a library student in Syracuse University..

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
661
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
17
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. RDFa: an introduction Kai Li LIS 681 Metadata
  • 2. What is RDFa?• RDFa = RDF in attributes• RDFa Core is a “specification for attributes to express structured data in any markup language.” – Including (X)HTML and XML and other languages – HTML/XML tree structure is used – Some attributes and text content is reused from HTML/XML.
  • 3. RDFa, Microformats and Microdata For full comparison, see: http://manu.sporny.org/2011/uber-comparison-rdfa-md-uf/
  • 4. RDFa, Microformats and Microdata (cont.)• Google supports all three formats.• The latest Schema.org initiated by Google, Bing and Yahoo! chose Microdata over RDFa.• However, the approach of Schema.org is “Microdata and more”, which means the vocabularies in Schema.org can be mixed with other approaches.
  • 5. It’s about integrating RDF triples into HTML<http://nalsi.net/posts/20130124135526.html> <http://purl.org/dc/elements/1.1/creator> <http://nalsi.us/about#me><http://nalsi.net/posts/20130124135526.html> <http://purl.org/dc/terms/created> “2013/01/24” <div resource=“http://nalsi.net/posts/20130124135526.html”> <p>Written by: <span property=“http://purl.org/dc/elements/1.1/creator”>Kai</span>< /p> <p>Time: <span property=“http://purl.org/dc/terms/created”>2013-01- 24</span></p> </div>
  • 6. RDFa: datatypes• CURIE(s): compact URI(s), being composed of a prefix and astring. – For example: <div about="dbr:Albert_Einstein">• IRIs: Internationalized Resource Identifiers, which is an extension of the URI or URL, in which internationalized characters are allowed to use.
  • 7. How to use RDFa: tags• @about• @resource• @property• @href• @vocab• @prefix• @content• @typeof• And more tags…
  • 8. @about and @resource• Both attributes can serve to set the subject of the following statements. – The difference is, @about can be only used for setting subject. – @resource, when combined with attribute “property”, can be used to set the target, the object, for the statement.
  • 9. @about and @resource (cont.)Example 1:<ul> <li about="/alice/posts/trouble_with_bob" property="title">The troublewith Bob</li> <li about="/alice/posts/jos_barbecue" property="title">Jos Barbecue</li> ...</ul>Example 2:<div about="http://dbpedia.org/resource/Albert_Einstein"> <div rel="dbp:birthPlace"resource="http://dbpedia.org/resource/German_Empire"> <span property="dbp:conventionalLongName">the GermanEmpire</span></div></div>
  • 10. @property• The relationship between the subject and either an object if given or some literal text.Example:<body> <h2 property="http://purl.org/dc/terms/title">The Trouble with Bob</h2></body>
  • 11. @href• The partner resource of a relationship (object).Example:<head> <link rel="prev" href="page6.html" /></head>
  • 12. @prefix and @vocab• Both of these two attributes define the namespace of the names used in the structured data. – @prefix defines the prefix of the value that will be used; @vocab defines the default URL of the vocabulary.
  • 13. @prefix and @vocab, cont.Example 1:<div vocab="http://xmlns.com/foaf/0.1/" about="#me"> My name is <span property="name">John Doe</span> and myblog is called <a rel="homepage"href="http://example.org/blog/">Understanding Semantics</a>.</div>Example 2:This document is licensed under the<a prefix="cc: http://creativecommons.org/ns#" rel="cc:license"href="http://creativecommons.org/licenses/by-nc-nd/3.0/" >CreativeCommons By-NC-ND License</a>.
  • 14. @content• A string, to supply machine-readable content for a literal.Example:<head> <meta property="http://purl.org/dc/terms/creator" content="Mark Birbeck"/></head>
  • 15. @typeof• RDF type(s) to associate with a subject.Example:<span about="urn:ISBN:0091808189" typeof="bibo:Book"property="dc:title">Canteen Cuisine</span>
  • 16. RDFa Use Cases• W3C published the official RDFa Use Case in 2007 as a draft. – http://www.w3.org/TR/xhtml-rdfa-scenarios/• The document explores “how publishers, tool builders, and consumers benefit from RDFa” by embedding RDF in HTML.• Nine use cases are listed and discussed.
  • 17. RDFa Use Cases, cont.• Publishers – Mark the web pages with structured data so that machines can consume these contents• Tool builders – Augment the metadata embedded in the HTML files to facilitate using the data• Users – Better organize, sort and categorize related information on the Internet
  • 18. RDFa Use Cases, cont.• Use Case Example: – Sarah is a information scientist who publishes her recent study about metadata standards in her personal website. She uses RDFa to “mark up” this website, so that the results of the study as well as her rights toward the study can be not only meaningful to human readers, but also to machines.
  • 19. Reference• Birbeck, M. (2009, June 23). Introduction to RDFa. Retrieved April 1, 2013, from http://alistapart.com/article/introduction-to-rdfa• Brickley, D. (2012, June 7). SemTech, RDFa, Microdata and more... Retrieved April 1, 2013, from http://blog.schema.org/2012/06/semtech- rdfa-microdata-and-more.html• Sporny, M. (2013, February 23). An Uber- comparison of RDFa, Microdata and Microformats. Retrieved April 1, 2013, from http://manu.sporny.org/2011/uber-comparison- rdfa-md-uf/
  • 20. Reference, cont.• W3C. (2012, June 7). RDFa 1.1 Primer. Retrieved April 1, 2013, from http://www.w3.org/TR/xhtml- rdfa-primer/• W3C. (2012, June 7). RDFa Core 1.1. Retrieved March 31, 2013, from http://www.w3.org/TR/2012/REC-rdfa-core- 20120607/• W3C. (2007, March 30). RDFa Use Cases: Scenarios for Embedding RDF in HTML. Retrieved April 1, 2013, from http://www.w3.org/TR/xhtml- rdfa-scenarios/
  • 21. Thank you!