function forum_rdf_mapping

Implements hook_rdf_mapping().

File

modules/forum/forum.module, line 1376

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',
                ),
            ),
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.