Community Documentation

RDF for Themers

Last updated February 15, 2008. Created by Arto on February 15, 2008.
Log in to edit this page.

The RDF API provides a number of theming functions for presenting metadata and RDF statements.

Property-value tables

Property-value tables are useful e.g. for displaying metadata.

An example of a use case is adding a Metadata tab to nodes, where the available RDF repositories are queried for any triples relating to the current node. This information is then displayed, sans the subject (the node), in a property-value table.

theme_rdf_property_table()

Triple tables

In an RDF-aware context for power users, triple tables may occasionally come useful. See a screenshot of what these tables look like.

theme_rdf_triple_table()

theme_rdf_triple_row()

theme_rdf_triple_cell()

About this page

Drupal version
Drupal 6.x

Develop for Drupal

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.