Changeset 721


Ignore:
Timestamp:
Nov 29, 2005, 7:18:17 AM (16 years ago)
Author:
Earle Martin
Message:

fixes #51

Location:
trunk
Files:
2 edited

Legend:

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

    r720 r721  
    9696    my ($is_geospatial, $objType);
    9797
    98     if ($os_x || $os_y || $latitude || $longitude || $address || $postcode || @locales) {
     98    if ($os_x || $os_y || $latitude || $longitude || $address || $postcode || @locales || $opening_hours_text) {
    9999        $is_geospatial = 1;
    100100        $objType    = 'geo:SpatialThing';
     
    115115    my $url               = $self->{make_node_url}->( $node_name, $version );
    116116    my $version_indpt_url = $self->{make_node_url}->( $node_name );
    117 
    118117    my $rdf = qq{<?xml version="1.0"?>
    119118<rdf:RDF
  • trunk/t/21_rdf.t

    r720 r721  
    66use OpenGuides::Test;
    77use URI::Escape;
    8 use Test::More tests => 26;
     8use Test::More tests => 27;
    99
    1010eval { require DBD::SQLite; };
     
    141141        "redirecting node gets owl:sameAs to target" );
    142142
     143    $wiki->write_node( "Nonesuch Stores",
     144        "A metaphysical wonderland",
     145        undef,
     146        {
     147            comment            => "Yup.",
     148            username           => "Nobody",
     149            opening_hours_text => "Open All Hours",
     150        }
     151    );
     152
     153    my $rdfxml = $rdf_writer->emit_rdfxml( node => "Nonesuch Stores" );
     154
     155    like( $rdfxml, qr|<geo:SpatialThing rdf:ID="obj" dc:title="Nonesuch Stores">|,
     156        "having opening hours marks node as geospatial" );
     157
    143158}
Note: See TracChangeset for help on using the changeset viewer.