function hook_rdf_namespaces

Allow modules to define namespaces for RDF mappings.

Many common namespace prefixes are defined in rdf_rdf_namespaces(). However, if a module implements hook_rdf_mapping() and uses a prefix that is not defined in rdf_rdf_namespaces(), this hook should be used to define the new namespace prefix.

Return value

An associative array of namespaces where the key is the namespace prefix and the value is the namespace URI.

Related topics

3 functions implement hook_rdf_namespaces()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

drupal_get_rdf_namespaces in drupal/includes/
Returns a string containing RDF namespace declarations for use in XML and XHTML output.
rdf_rdf_namespaces in drupal/modules/rdf/rdf.module
Implements hook_rdf_namespaces().
rdf_test_rdf_namespaces in drupal/modules/rdf/tests/rdf_test.module
Implements hook_rdf_namespaces().
1 invocation of hook_rdf_namespaces()
rdf_get_namespaces in drupal/modules/rdf/rdf.module
Returns an array of RDF namespaces defined in modules that implement hook_rdf_namespaces().


drupal/modules/rdf/rdf.api.php, line 90
Hooks provided by the RDF module.


function hook_rdf_namespaces() {
  return array(
    'content' => '',
    'dc' => '',
    'foaf' => '',
    'og' => '',
    'rdfs' => '',
    'sioc' => '',
    'sioct' => '',
    'skos' => '',
    'xsd' => '',