function recipe_rdf_mapping in Recipe 7
Same name and namespace in other branches
- 7.2 recipe.module \recipe_rdf_mapping()
Implements hook_rdf_mapping().
1 call to recipe_rdf_mapping()
- recipe_update_7004 in ./
recipe.install - Update recipe RDF mapping to use the schema.org terms.
File
- ./
recipe.module, line 1942 - Contains functions for Recipe node CRUD and display.
Code
function recipe_rdf_mapping() {
return array(
array(
'type' => 'node',
'bundle' => 'recipe',
'mapping' => array(
'rdftype' => array(
'schema:Recipe',
),
'title' => array(
'predicates' => array(
'schema:name',
),
),
'recipe_instructions' => array(
'predicates' => array(
'schema:instructions',
),
),
'recipe_description' => array(
'predicates' => array(
'schema:summary',
),
),
'recipe_preptime' => array(
'predicates' => array(
'schema:prepTime',
),
),
'recipe_cooktime' => array(
'predicates' => array(
'schema:cookTime',
),
),
'recipe_totaltime' => array(
'predicates' => array(
'schema:totalTime',
),
),
'recipe_yield' => array(
'predicates' => array(
'schema:yield',
),
),
),
),
);
}