{"id":398,"date":"2010-09-07T13:48:32","date_gmt":"2010-09-07T13:48:32","guid":{"rendered":"http:\/\/blog.soton.ac.uk\/webteam\/?p=398"},"modified":"2010-09-07T14:06:08","modified_gmt":"2010-09-07T14:06:08","slug":"geo-rdf-to-kml","status":"publish","type":"post","link":"https:\/\/blog.soton.ac.uk\/webteam\/2010\/09\/07\/geo-rdf-to-kml\/","title":{"rendered":"Geo RDF to KML"},"content":{"rendered":"<p>I&#8217;ve been looking at our RDF building data: http:\/\/rdf.ecs.soton.ac.uk\/location\/UoS\/building\/ and it&#8217;s pretty cool, but most mapping tools want KML so I knocked up a quick tool to convert geo tagged RDF into KML.<\/p>\n<ul>\n<li><a href=\"http:\/\/graphite.ecs.soton.ac.uk\/geo2kml\/\">geo2kml<\/a><\/li>\n<\/ul>\n<p>With a very simple URI so you can use it in pipelines and so forth. It includes a dc:description of each element if available as the &lt;description&gt; and uses any of rdfs:label, dc:title, foaf:name or skos:prefLabel to get the title. It&#8217;s also got a handy option to view the results in Google Maps rather than downloading them.<\/p>\n<p>You can include more than one RDF URL, separated with a comma, and it&#8217;ll process objects from all of them! <a href=\"http:\/\/graphite.ecs.soton.ac.uk\/geo2kml\/index.php\/converted.kml?uri=http:\/\/rdf.ecs.soton.ac.uk\/location\/UoS\/building\/,http:\/\/oxpoints.oucs.ox.ac.uk\/all&amp;mode=google\">Which is kind of funky!<\/a><\/p>\n<h3>Ideas for other convert tools&#8230;<\/h3>\n<p>This also got me thinking about how useful it might be to provide some more web services like this to convert between: KML\/KMZ, RDF+XML, RDF+N3, RDF Triples, Atom, RSS, SIOC, Memento, iCal, events, JSON and JSONP.<\/p>\n<p>For example, I could very easily provide a URL which you gave a webpage as a parameter, and it would read the RDFa in that page and return it as a jsonp callback, or something that can read an RSS file and convert it to memento or vice versa.<\/p>\n<p>Also just making it able to merge several KML, RSS, iCal etc. into one file for passing onto the next stage of a pipeline would be funky!<\/p>\n<p>If I get some positive responses I&#8217;ll start work on it as a hobby\/side project. Possibly datatools.ecs.soton.ac.uk so that I can move it around separately to graphite if it becomes high-traffic.<\/p>\n<div id=\"_mcePaste\" style=\"width: 1px;height: 1px;overflow: hidden\">http:\/\/rdf.ecs.soton.ac.uk\/location\/UoS\/building<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been looking at our RDF building data: http:\/\/rdf.ecs.soton.ac.uk\/location\/UoS\/building\/ and it&#8217;s pretty cool, but most mapping tools want KML so I knocked up a quick tool to convert geo tagged RDF into KML. geo2kml With a very simple URI so you can use it in pipelines and so forth. It includes a dc:description of each [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[352,136],"tags":[396,400,803361,393,394,379,398,399,391,392,397,395,803363,327],"class_list":["post-398","post","type-post","status-publish","format-standard","hentry","category-data","category-rdf","tag-atom","tag-converter","tag-events","tag-geo","tag-google-maps","tag-ical","tag-json","tag-jsonp","tag-kml","tag-kmz","tag-memento","tag-n3","tag-rdf","tag-rss"],"_links":{"self":[{"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/posts\/398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/comments?post=398"}],"version-history":[{"count":4,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/posts\/398\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/posts\/398\/revisions\/401"}],"wp:attachment":[{"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/media?parent=398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/categories?post=398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.soton.ac.uk\/webteam\/wp-json\/wp\/v2\/tags?post=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}