Home ›
Best practice for an upgraded site to define RDF mappings for RDFa output?Best practice for an upgraded site to define RDF mappings for RDFa output?
Submitted by Benjamin Melançon on December 29, 2011 - 6:19am
Searched words:
sitewide RDFa best-practice following D7 to D7 site upgrade
A site that has been upgraded from Drupal 6 to Drupal 7 has not even had this code from standard.install in the Standard profile run yet. Can generic mappings like this be easily taken care of in other custom configuration of RDF or should this (plus more?) go in an update hook?
<?php
// Insert default pre-defined RDF mapping into the database.
$rdf_mappings = array(
array(
'type' => 'node',
'bundle' => 'page',
'mapping' => array(
'rdftype' => array('foaf:Document'),
),
),
array(
'type' => 'node',
'bundle' => 'article',
'mapping' => array(
'field_image' => array(
'predicates' => array('og:image', 'rdfs:seeAlso'),
'type' => 'rel',
),
'field_tags' => array(
'predicates' => array('dc:subject'),
'type' => 'rel',
),
),
),
);
foreach ($rdf_mappings as $rdf_mapping) {
rdf_mapping_save($rdf_mapping);
}
?>

Comments
Microsoft Office 2010
ost of us who have worked with Windows 8 and Microsoft Windows 8 deployments have probably Office 2007 come across the task of preventing the Microsoft Office 2007 first run Office 2007 Download prompts that users have to deal Office 2007 Professional with when they launch an MS Office 2007 install for the first time. This usually Download Office 2007 that big of a deal in the conventional Microsoft Office 2007 Professional physical desktop to Microsoft Office 2007 Download user environment but when dealing microsoft office 2007 full version with virtual desktops and more specifically, Office 2010 , these annoying prompts Microsoft Office 2010 will continuously prompt the user whenever the Download Office 2010 master image is updated and the users’ desktops are refreshed. windows office 2010 previously blogged about how to remove these prompts via the MS Office 2010 too late for you to create a customization file, you still have the option of using Office 2010 Download to disable them. Office 2010 Professional sure a quick search will reveal Microsoft Office 2010 Download numerous results on how to do this but Microsoft Office 2011 going to write this post anyways so I can quickly reference to it in the future.
Post new comment