John's Semantic Technology Twine / Items
About RDFa - Webmasters/Site owners Help
Get Feed- Description
-
RDFa
Marking up content with RDFa
The following block of HTML shows a review of a video game.
HTML
Rendered HTML in browser
Blast 'Em Up Review
by Bob Smith
March 20, 2009
This is a great game. I enjoyed it from the opening battle to the final showdown with the evil aliens.
To understand how to use RDFa, think about two concepts: entities (for example, a review) and properties of those entities (for example, the author of the review, the date of the review, the review itself, and the rating).
This is the HTML with RDFa markup:
This example contains three important properties:
. Occurs in the first line, and specifies the namespace where the vocabulary (a list of entities and their components) is specified. You can use the namespace declaration any time you are marking up pages for people, review, product, or place data. : Occurs in the first line of this HTML block, and defines entities. Since this example contains a review, the entity is of type . : Used to label the properties of an entity. In the example, there are many properties of the review that are labeled: the reviewer, date of the review ( ), the review itself ( ), and the rating ( ).These three properties can be used in any HTML tags that open and close ( and are two common choices). To mark up content using RDFa:
Begin with a namespace declaration using
Specify the type of content that is being marked up using
Label the properties using .
Relationships between entities in RDFa
In the example below, we describe two entities: a review and a person.
HTML
Rendered HTML in browser
Blast 'Em Up Review
by Bob Smith, Senior Editor at ACME Reviews
This is a great game. I enjoyed it from the ...
- Original URL
Comments
Report ThisTwine is about discovering, collecting and sharing the content that interests you. Learn More
Join TwineStats
- 17 Twines
- 1 Comment
Tags
Community Tags
Who's Interested In This?
-
John Goodwin added to Web 2.0/3.0 tools and services, Search, RDFa and the Future of Search, Google, Semantic Tutorials, Linked Data Web, Semantic Applications, Semantic Web Development Twine, Search and Information Visualization, Google, Searching and connections, Web 3.0 - Semantic Web, Linked Data, Semantic Web, Web 2.0, John's Semantic Technology Twine, Search and Discovery 7 months ago
Public Comments
-
John Goodwin
7 months ago
Add a Comment- Some HTML is allowed.
- Reply
- Cancel
- Submit
Web 2.0/3.0 tools and services, Search and Information Visualization, Google, Linked Data, Web 3.0 - Semantic Web, Linked Data Web, Search, Semantic Web Development Twine, Web 2.0, John's Semantic Technology Twine, RDFa and the Future of Search, Semantic Tutorials, Google, Searching and connections, Semantic Web, Semantic Applications, Search and Discovery