*** foaf.module.sav	2006-09-30 14:42:08.000000000 +0200
--- foaf.module	2006-09-30 15:07:26.000000000 +0200
***************
*** 128,135 ****
  
    // foaf:PersonalProfileDocument
    $output .= '<foaf:PersonalProfileDocument rdf:about="">' ."\n";
!   $output .= '  <foaf:maker rdf:nodeID="_'.$uid.'" />'."\n"; 
!   $output .= '  <foaf:primaryTopic rdf:nodeID="_'.$uid.'" />'."\n";
    $output .= '  <dc:title>'. t('FOAF for %name at %site', array('%name' => $account->name, '%site' => variable_get('site_name', 'drupal'))) ."</dc:title>\n";
    $output .= '  <dc:description>' . t('Friend of a Friend description for %name', array('%name' => $account->name)) . "</dc:description>\n";
    $output .= '  <admin:generatorAgent rdf:resource="http://www.drupal.org/" />'."\n";
--- 128,135 ----
  
    // foaf:PersonalProfileDocument
    $output .= '<foaf:PersonalProfileDocument rdf:about="">' ."\n";
!   $output .= '  <foaf:maker rdf:resource="#_'.$uid.'" />'."\n"; 
!   $output .= '  <foaf:primaryTopic rdf:resource="#_'.$uid.'" />'."\n";
    $output .= '  <dc:title>'. t('FOAF for %name at %site', array('%name' => $account->name, '%site' => variable_get('site_name', 'drupal'))) ."</dc:title>\n";
    $output .= '  <dc:description>' . t('Friend of a Friend description for %name', array('%name' => $account->name)) . "</dc:description>\n";
    $output .= '  <admin:generatorAgent rdf:resource="http://www.drupal.org/" />'."\n";
***************
*** 139,145 ****
    $picture = ($account->picture) ? file_create_url($account->picture) : '';
  
    // foaf:Person
!   $output.= '<foaf:Person rdf:nodeID="_'.$uid.'">'."\n";
    if ($firstName = _foaf_profile_get($uid, variable_get('foaf_firstName',''))) {
      $output.= '  <foaf:firstName>'.$firstName."</foaf:firstName>\n";
    }
--- 139,145 ----
    $picture = ($account->picture) ? file_create_url($account->picture) : '';
  
    // foaf:Person
!   $output.= '<foaf:Person rdf:ID="_'.$uid.'">'."\n";
    if ($firstName = _foaf_profile_get($uid, variable_get('foaf_firstName',''))) {
      $output.= '  <foaf:firstName>'.$firstName."</foaf:firstName>\n";
    }
***************
*** 242,248 ****
        $output .= "  </foaf:knows>\n";
      }
    }
!   
    $output .= "</foaf:Person>\n";
    $output .= "</rdf:RDF>\n";
  
--- 242,252 ----
        $output .= "  </foaf:knows>\n";
      }
    }
!  
!   if(module_exist('sioc')) {
!     $output.= '  <foaf:holdsAccount rdf:resource="'.url("sioc/user/$uid#user", null, null, true).'" rdfs:seeAlso="'.url("sioc/user/$uid", null, null, true).'" />';
!   }
! 
    $output .= "</foaf:Person>\n";
    $output .= "</rdf:RDF>\n";
  
