Index: modules/rdf/rdf.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/rdf/rdf.module,v
retrieving revision 1.24
diff -u -p -r1.24 rdf.module
--- modules/rdf/rdf.module	12 Feb 2010 06:44:13 -0000	1.24
+++ modules/rdf/rdf.module	14 Feb 2010 18:27:44 -0000
@@ -589,6 +604,28 @@ function rdf_preprocess_comment(&$variab
 }
 
 /**
+ * Implements MODULE_preprocess_HOOK().
+ */
+function rdf_preprocess_taxonomy_term(&$variables) {
+  // Adds the rdf:type of the term and annotates the label in a meta tag.
+  $term = $variables['term'];
+  $term_label_meta = array(
+      '#tag' => 'meta',
+      '#attributes' => array(
+        'about' => url('taxonomy/term/' . $term->tid),
+        'typeof' => $term->rdf_mapping['rdftype'],
+        'property' => $term->rdf_mapping['name']['predicates'],
+        'content' => $term->name,
+      ),
+    );
+  drupal_add_html_head($term_label_meta, 'rdf_term_label');
+  
+  // Annotates the description of the term by wrapping it in a div.
+  $attributes_array = rdf_rdfa_attributes($term->rdf_mapping['description']);
+  $variables['rdf_template_variable_attributes_array']['content']['description'] = $attributes_array;
+}
+
+/**
  * Implements hook_field_attach_view_alter().
  */
 function rdf_field_attach_view_alter(&$output, $context) {
