User login

Best practice for an upgraded site to define RDF mappings for RDFa output?

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

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or "class="OPTIONS" title="the title".
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.