You are here

function forum_rdf_mapping in Drupal 7

Implements hook_rdf_mapping().

File

modules/forum/forum.module, line 1376
Provides discussion forums.

Code

function forum_rdf_mapping() {
  return array(
    array(
      'type' => 'node',
      'bundle' => 'forum',
      'mapping' => array(
        'rdftype' => array(
          'sioc:Post',
          'sioct:BoardPost',
        ),
        'taxonomy_forums' => array(
          'predicates' => array(
            'sioc:has_container',
          ),
          'type' => 'rel',
        ),
      ),
    ),
    array(
      'type' => 'taxonomy_term',
      'bundle' => 'forums',
      'mapping' => array(
        'rdftype' => array(
          'sioc:Container',
          'sioc:Forum',
        ),
      ),
    ),
  );
}