function taxonomy_rdf_mapping

Implements hook_rdf_mapping().

Return value

array The rdf mapping for vocabularies and terms.

File

modules/taxonomy/taxonomy.module, line 1840

Code

function taxonomy_rdf_mapping() {
    return array(
        array(
            'type' => 'taxonomy_term',
            'bundle' => RDF_DEFAULT_BUNDLE,
            'mapping' => array(
                'rdftype' => array(
                    'skos:Concept',
                ),
                'name' => array(
                    'predicates' => array(
                        'rdfs:label',
                        'skos:prefLabel',
                    ),
                ),
                'description' => array(
                    'predicates' => array(
                        'skos:definition',
                    ),
                ),
                'vid' => array(
                    'predicates' => array(
                        'skos:inScheme',
                    ),
                    'type' => 'rel',
                ),
                'parent' => array(
                    'predicates' => array(
                        'skos:broader',
                    ),
                    'type' => 'rel',
                ),
            ),
        ),
        array(
            'type' => 'taxonomy_vocabulary',
            'bundle' => RDF_DEFAULT_BUNDLE,
            'mapping' => array(
                'rdftype' => array(
                    'skos:ConceptScheme',
                ),
                'name' => array(
                    'predicates' => array(
                        'dc:title',
                    ),
                ),
                'description' => array(
                    'predicates' => array(
                        'rdfs:comment',
                    ),
                ),
            ),
        ),
    );
}

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