SYNOPSIS

 use RDF::KML::Exporter;

 my $exporter = RDF::KML::Exporter->new;
 my $input    = 'http://dbpedia.org/resource/Lewes';

 print $exporter->export_kml($input)->render;

DESCRIPTION

Constructor

  • \*(C`new(%options)\*(C' Returns a new RDF::KML::Exporter object. There are no valid options at the moment - the hash is reserved for future use.

Methods

  • \*(C`export_kml($input, %options)\*(C' Returns a \s-1KML\s0 document including all the locations in the input, in no particular order. The input may be a \s-1URI\s0, file name, RDF::Trine::Model or anything else that can be handled by the \*(C`parse\*(C' function of RDF::TrineX::Functions. The returned object is an Geo::GoogleEarth::Pluggable instance, which can be output as \s-1XML\s0 using its \*(C`render\*(C' method.

\s-1RDF\s0 Input

Input is expected to use the W3C's \s-1WGS84\s0 Geo Positioning vocabulary <http://www.w3.org/2003/01/geo/wgs84_pos#>. Place names should use rdfs:label.

RELATED TO RDF::KML::Exporter…

HTML::Microformats, RDF::TrineX::Functions, Geo::GoogleEarth::Pluggable.

<http://www.w3.org/2003/01/geo/wgs84_pos#>.

<http://www.perlrdf.org/>.

COPYRIGHT AND LICENCE

This software is copyright (c) 2011-2012 by Toby Inkster.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

DISCLAIMER OF WARRANTIES

\s-1THIS\s0 \s-1PACKAGE\s0 \s-1IS\s0 \s-1PROVIDED\s0 \*(L"\s-1AS\s0 \s-1IS\s0\*(R" \s-1AND\s0 \s-1WITHOUT\s0 \s-1ANY\s0 \s-1EXPRESS\s0 \s-1OR\s0 \s-1IMPLIED\s0 \s-1WARRANTIES\s0, \s-1INCLUDING\s0, \s-1WITHOUT\s0 \s-1LIMITATION\s0, \s-1THE\s0 \s-1IMPLIED\s0 \s-1WARRANTIES\s0 \s-1OF\s0 \s-1MERCHANTIBILITY\s0 \s-1AND\s0 \s-1FITNESS\s0 \s-1FOR\s0 A \s-1PARTICULAR\s0 \s-1PURPOSE\s0.