rdf

theme_username RDFa

  1. function theme_username($variables) {
  2.   if (isset($variables['link_path'])) {
  3.     // We have a link path, so we should generate a link using l().
  4.     // Additional classes may be added as array ele

User page with RDFa

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
  2.  "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr"

RDF in core idea

  1. <?php
  2.  
  3. /**
  4.  * Implementation of hook_rdf_schema().
  5.  */
  6. function node_rdf_schema() {
  7.   $rdf = array();
  8.   $rdf['node'] = array(
  9.     'label' => t('content'),
  10.     'class' => 'sioc:post'
  11.   );

values can be either strings or arrays even single-value arrays

  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * @file
  6.  * Hooks provided by the RDF module.
  7.  */
  8.  
  9. /**
  10.  * @addtogroup hooks
  11.  * @{
  12.  */
  13.  
  14. /**
  15.  * Allow modules to define their own RDF mappings.
  16.  *
  17.  * @return

Fix for rdf.api.php

  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * @file
  6.  * Hooks provided by the RDF module.
  7.  */
  8.  
  9. /**
  10.  * @addtogroup hooks
  11.  * @{
  12.  */
  13.  
  14. /**
  15.  * Allow modules to define their own RDF mappings.
  16.  *
  17.  * @return

rdf.api.php

  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * @file
  6.  * Hooks provided by the RDF module.
  7.  */
  8.  
  9. /**
  10.  * @addtogroup hooks
  11.  * @{
  12.  */
  13.  
  14. /**
  15.  * Allow modules to define their own RDF mappings.
  16.  *
  17.  * @return
Syndicate content