
486
|
Chapter 9, Mapping with Other People
#96 Share Geo-Photos on the Web
HACK
• The email address of the person who took the photos.
• The names of the files. If they are in a directory, it’s easy to enter these
with a wildcard: my_photos/*
Here’s a sample run of the geoloc_media.pl script:
perl geoloc_media.pl 2.5 http://frot.org/20041020/ 20041020.gpx zool@frot.org
/www/frot.org/20041020/* > photos.rdf
The end of this sequence, > photos.rdf, sends the output of the script to a
file. What the script spits out is a set of locative packets that describes the
photographs: where they were taken, when they were taken, and who took
them. See “Model Interactive Spaces”
[Hack #95] for advice on modeling spa-
tial information in RDF. Here’s a short sample of an RDF description of
photographs taken in Utrecht, September 2004:
<locative:Packet rdf:nodeID="aid12326419">
<geo:long>5.125718</geo:long>
<geo:lat>52.084616</geo:lat>
<locative:media rdf:resource="http://iconocla.st/photo/2004/09/06-utreg/
img_1216-l.jpg"/>
</locative:Packet>
<rdf:Description rdf:about="http://iconocla.st/photo/2004/09/06-utreg/img_
1166-l.jpg">
<ical:datetime>20040906T134632</ical:datetime>
<foaf:thumbnail rdf:resource="http://iconocla.st/photo/2004/09/06-utreg/
img_1166-s.jpg"/>
<foaf:maker rdf:nodeID="aid18499619"/>
</rdf:Description>
<foaf:Person rdf:nodeID="aid18499619">
<foaf:mbox rdf:resource="mailto:zool@frot.org"/>
</foaf:Person> ...