Presentation is loading. Please wait.

Presentation is loading. Please wait.

RDFa, Microformats, and Atom Semantic Web Presented by: Anuradha Kandula Instructor: Steven Seida.

Similar presentations


Presentation on theme: "RDFa, Microformats, and Atom Semantic Web Presented by: Anuradha Kandula Instructor: Steven Seida."— Presentation transcript:

1 RDFa, Microformats, and Atom Semantic Web Presented by: Anuradha Kandula Instructor: Steven Seida

2 Background Why do we need semantic markup?

3 To an English-speaking person, the same information could be represented as: “The title of this resource, published by Wikipedia, is ‘Tony Benn’ ” The purpose of RDF is to provide an encoding and interpretation mechanism so that resources can be described in a way that particular software can understand it

4 RDFa RDFa (or Resource Description Framework - in - attributes) is a W3C Recommendation that adds a set of attribute level extensions to XHTML for embedding rich metadata within Web documents.

5 Essence The essence of RDFa is to provide a set of attributes that can be used to carry metadata in an XML language (hence the 'a' in RDFa). These attributes are: o about – a URI or CURIE specifying the resource the metadata is about; in its absence it defaults to the current document

6 Essence (cont.) o rel and rev – specifying a relationship or reverse-relationship with another resource o href, src and resource – specifying the partner resource o property – specifying a property for the content of an element o content – optional attribute that overrides the content of the element when using the property attribute o datatype – optional attribute that specifies the datatype of text specified for use with the property attribute o typeof – optional attribute that specifies the RDF type(s) of the subject (the resource that the metadata is about).

7 Examples of RDFa (FOAF profile using RDFa) 1. html 2. head 3. Mark Birbeck's profile title 4. link 5. head 6. body 7. div 8. "Mark Birbeck span 9. XForms and Internet Applications a 10. Ivan Herman a 11. span 12. img 13. span 14. span 15. span 16. Twitter a 17. markbirbeck span 18. span 19. span 20. div 21. body 22. html

8 Publisher Independence - each site can use its own standards Data Reuse - data is not duplicated. Separate XML and HTML sections are not required for the same content. Schema Modularity - The attributes are reusable Benefits of RDFa

9 Evolvability - additional fields can be added and XML transforms can extract the semantics of the data from an XHTML file

10 Microformat A microformat is a web-based approach to semantic markup that seeks to re-use existing XHTML and HTML tags to convey metadata and other attributes. This approach allows information intended for end-users (such as contact information, geographic coordinates, calendar events, and the like) to also be automatically processed by software.

11 Designed for humans first and machines second, microformats are a set of simple, open data formats built upon existing and widely adopted standards. Instead of throwing away what works today, microformats intend to solve simpler problems first by adapting to current behaviors and usage patterns (e.g. XHTML, blogging).

12 The microformats principles Solve a specific problem Start as simple as possible Design for humans first, machines second Reuse building blocks from widely adopted standards Modularity / embeddability Enable and encourage decentralized development, content, services

13

14 hCard microformat markup

15 Browser support Operator for Firefox Operator Oomph for Internet ExplorerInternet Explorer hCard exported to formats compatible with contact management hCalendar exported to formats compatible with calander utilities geographical coordinates to Google Maps

16 Atom Atom is an XML-based document format that describes lists of related information known as "feeds". Feeds are composed of a number of items, known as "entries", each with an extensible set of attached metadata. For example, each entry has a title. The primary use case that Atom addresses is the syndication of Web content such as weblogs and news headlines to Web sites as well as directly to user agents.

17 Atom is a simple way to read and write information on the web, allowing you to easily keep track of more sites in less time, and to seamlessly share your words and ideas by publishing to the web.

18 Web feeds allow software programs to check for updates published on a website. To provide a web feed, a site owner may use specialized software (such as a content management system) that publishes a list (or "feed") of recent articles or content in a standardized, machine-readable format.

19 A feed contains entries, which may be headlines, full-text articles, excerpts, summaries, and/or links to content on a website, along with various metadata.

20 Usage Web feeds are used by the blogging community to share recent entries' headlines, full text, and even attached multimedia files. These providers allow other websites to incorporate the blog's "syndicated" headline or headline-and-short- summary feeds under various usage agreements. Atom and other web syndication formats are now used for many purposes, including journalism, marketing, bug-reports, or any other activity involving periodic updates or publications. Atom also provides a standard way to export an entire blog, or parts of it, for backup or for importing into other blogging systems.blogging

21 It is common to find web feeds on major Web sites, as well as many smaller ones. Some websites let people choose between RSS or Atom formatted web feeds; others offer only RSS or only Atom. In particular, many blog and wiki sites offer their web feeds in the Atom format.

22 Feed reader A feed reader or "aggregator" program can be used to check feeds and display new articles. Client-side readers may also be designed as standalone programs or as extensions to existing programs like web browsers. Browsers are moving toward integrated feed reader functions.

23 Single-entry Atom Feed Document Example Feed 2003-12-13T18:30:02Z John Doe urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6 Atom-Powered Robots Run Amok urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a 2003-12-13T18:30:02Z Some text.

24 The "atom:feed" Element atom:feed elements MUST contain one or more atom:author elements, unless all of the atom:feed element's child atom:entry elements contain at least one atom:author element. atom:feed elements MAY contain any number of atom:category elements. atom:feed elements MAY contain any number of atom:contributor elements. atom:feed elements MUST NOT contain more than one atom:generator element. atom:feed elements MUST NOT contain more than one atom:icon element. atom:feed elements MUST NOT contain more than one atom:logo element. atom:feed elements MUST contain exactly one atom:id element.

25 More information on atoms at: http://www.ietf.org/rfc/rfc4287

26 Queries?

27 Thank You !


Download ppt "RDFa, Microformats, and Atom Semantic Web Presented by: Anuradha Kandula Instructor: Steven Seida."

Similar presentations


Ads by Google