Changeset 766


Ignore:
Timestamp:
Apr 11, 2006, 3:12:46 AM (15 years ago)
Author:
Earle Martin
Message:

Actually apply changes to this module that were alluded to in [765]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/OpenGuides/RDF.pm

    r753 r766  
    134134    <dc:date>$timestamp</dc:date>
    135135    <dcterms:modified>$timestamp</dcterms:modified>
    136     <dc:contributor foaf:nick="$username" />
     136
     137    <dc:contributor>
     138      <foaf:Person rdf:ID="$username">
     139        <foaf:nick>$username</foaf:nick>
     140      </foaf:Person>
     141    </dc:contributor>
     142
    137143    <dc:source rdf:resource="$version_indpt_url" />
    138144    <wiki:version>$version</wiki:version>
     
    155161      $rdf .= "    <country>$country</country>\n"        if $country;
    156162
     163    foreach (@locales)
     164    {
     165      my $locale_id = $_;
     166      $locale_id =~ s/ /_/g;
     167   
    157168      $rdf .= qq{
    158169    <foaf:based_near>
    159       <wn:Neighborhood>
     170      <wn:Neighborhood rdf:ID="$locale_id">
    160171        <dc:title>$_</dc:title>
    161172      </wn:Neighborhood>
    162     </foaf:based_near>\n} foreach @locales;
    163 
     173    </foaf:based_near>\n};
     174    }
     175   
    164176      if ( $latitude && $longitude ) {
    165177          $rdf .= qq{
Note: See TracChangeset for help on using the changeset viewer.