On this page
function taxonomy_rdf_mapping
taxonomy_rdf_mapping()
Implements hook_rdf_mapping().
Return value
array The rdf mapping for vocabularies and terms.
File
- modules/taxonomy/taxonomy.module, line 1836
- 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'),
),
),
),
);
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.module/function/taxonomy_rdf_mapping/7.x