Changeset 1133


Ignore:
Timestamp:
Jan 18, 2008, 9:19:16 PM (14 years ago)
Author:
Earle Martin
Message:

Add map link to RDF output. Closes #26.

Location:
trunk
Files:
2 edited

Legend:

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

    r1105 r1133  
    8484    foreach my $var ( qw( phone fax website opening_hours_text address
    8585                          postcode city country latitude longitude
    86                           os_x os_y summary ) ) {
     86                          os_x os_y map_link summary ) ) {
    8787        my $val = $metadata{$var}[0] || $defaults{$var} || "";
    8888        $tt_vars{$var} = $val;
     
    106106    my $is_geospatial;
    107107    foreach my $var ( qw( os_x os_y latitude longitude address postcode
    108                           opening_hours_text ) ) {
     108                          opening_hours_text map_link ) ) {
    109109        $is_geospatial = 1 if $tt_vars{$var};
    110110    }
  • trunk/templates/node_rdf.tt

    r1081 r1133  
    1111  xmlns:os="http://downlode.org/Code/RDF/Ordnance_Survey/schema/1#"
    1212  xmlns:owl="http://www.w3.org/2002/07/owl#"
     13  xmlns:map="http://www.daml.org/2001/06/map/map-ont#"
    1314  xmlns="http://www.w3.org/2000/10/swap/pim/contact#"
    1415>
     
    6263      [% END %]
    6364
     65      [% IF map_link %]
     66        <foaf:page>
     67          <map:Map rdf:about="[% map_link %]" />
     68        </foaf:page>
     69      [% END %]
     70
    6471      [% FOREACH locale = locales %]
    6572        <foaf:based_near>
Note: See TracChangeset for help on using the changeset viewer.