function taxonomy_rdf_mapping

7.x taxonomy.module taxonomy_rdf_mapping()

Implements hook_rdf_mapping().

Return value

array The rdf mapping for vocabularies and terms.

File

drupal-7.x/modules/taxonomy/taxonomy.module, line 1825
Enables the organization of content into categories.

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