RDF Mapping API

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

The RDF Mapping API allows you to expose your site's data for easy re-use by mapping bundles to RDF types and fields to RDF predicates. This abstract mapping can then be used to publish the content contained in these bundles, enabling you to serialize the RDF into a number of different formats, such as RDFa, RDF/XML, or populate a SPARQL endpoint.

Altering an existing RDF mapping

Because RDF mappings are saved to the database on installation, hook_rdf_mapping should only be used in modules that create new bundles.

Creating mappings for taxonomies

There are two ways to map taxonomy to RDF

Defining a new RDF mapping

This document is a work in progress and is rapidly changing.

RDF namespaces registry

At the core of the RDF mappings defined in the RDF mapping API are CURIEs such as 'sioc:Post' which refer to the particular class or