You are here

function taxonomy_xml_rdf_classes in Taxonomy import/export via XML 7

Implementation of hook_rdf_classes().

This returns schema details describing the properties that make up the idea of a drupal term.

Much of it is boilerplated on by rdf_schema_load_schema_class()

File

./taxonomy_xml_rdf.inc, line 211

Code

function taxonomy_xml_rdf_classes() {
  return array(
    'vocabulary' => array(
      'title' => t('Taxonomy vocabulary'),
      'module' => 'taxonomy',
      'table' => 'vocabulary',
      'query' => 'SELECT vid FROM {vocabulary}',
      // NOTE: Drupal vocabularies don't actually have dereferenceable URIs
      'uri' => 'taxonomy/vocabulary/%vid',
      'enabled' => TRUE,
    ),
    'term' => array(
      'title' => t('Taxonomy term'),
      'module' => 'taxonomy',
      'table' => 'term_data',
      'query' => 'SELECT tid FROM {term_data}',
      'uri' => 'taxonomy/term/%tid',
      'enabled' => TRUE,
    ),
  );
}