RDF::K...porter(3pm)
π RDF::KML::Exporter π
okay bestie, gather round, because this one is a whole vibe. we're looking at RDF::KML::Exporter, straight out of the User Contributed Perl Documentation section, and it does exactly one iconic thing: it takes your RDF geo data and turns it into KML so Google Earth can eat it up. πβ¨
π NAME π
RDF::KML::Exporter β export RDF geo data to KML (Google Earth). that's it. that's the whole serve. no cap. π
β¨ SYNOPSIS β¨
here's the tea, in code form π«:
use RDF::KML::Exporter;
my $exporter = RDF::KML::Exporter->new;
my $input = 'http://dbpedia.org/resource/Lewes';
print $exporter->export_kml($input)->render;
like, that's it. four lines and you're living your best cartography life. π₯
π DESCRIPTION π
π§ Constructor
new(%options)β hands you back a shiny newRDF::KML::Exporterobject, fresh out the box. π
and like... there are no valid options at the moment β the hash is just sitting there, reserved for future use. so don't stress about what to pass in, bestie, there's nothing to pass in yet. π
π¦ Methods
export_kml($input, %options)β gives you back a KML document containing all the locations in the input, in no particular order. so if you were expecting alphabetization... no. the order is giving chaos and we respect it. π
the $input can be a URI, a file name, an RDF::Trine::Model, or honestly anything else that the parse function of RDF::TrineX::Functions can handle. it's very "bring whatever, we'll make it work" energy. π
what you get back is an Geo::GoogleEarth::Pluggable instance, which you can turn into XML using its render method. that's the ->render in the synopsis, iykyk. β
πΈ RDF Input
so the input is expected to use the W3C's WGS84 Geo Positioning vocabulary β that's <http://www.w3.org/2003/01/geo/wgs84_pos#>, bestie, copy it exactly, no typos. π
and for place names? those should use rdfs:label. periodt. π
π SEE ALSO π
go be nosy, it's good for you:
HTML::MicroformatsRDF::TrineX::FunctionsGeo::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. π
and it's free software β you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go forth, remix, share, slay. π«Ά
π DISCLAIMER OF WARRANTIES π
okay this part is the serious part, no emoji-flavored rewriting here because legal text is legal text:
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
translation: it's yours, it's free, and if it breaks, that's on the universe, not on Toby. π
and that's the whole page, bestie!! this was perl v5.32.1, dated 2021-09-11, and it's the RDF::K...porter(3pm) manual β love her, respect her, go export some KML. mwah. ππβ¨
π¦ where this page comes from
- debian bookworm: librdf-kml-exporter-perl 0.003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: librdf-kml-exporter-perl 0.003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: librdf-kml-exporter-perl 0.003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: librdf-kml-exporter-perl 0.003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: librdf-kml-exporter-perl 0.003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librdf-kml-exporter-perl 0.003-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms