forked from straup/p5-Net-Flickr-RDF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
706 lines (512 loc) · 26.2 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
NAME
Net::Flickr::RDF - a.k.a RDF::Describes::Flickr
SYNOPSIS
use Net::Flickr::RDF;
use Config::Simple;
use IO::AtomicFile;
my $cfg = Config::Simple->new("/path/to/my.cfg");
my $rdf = Net::Flickr::RDF->new($cfg);
my $fh = IO::AtomicFile->open("/foo/bar.rdf","w");
$rdf->describe_photo({photo_id => 123,
secret => 567,
fh => \*$fh});
$fh->close();
DESCRIPTION
Describe Flickr photos as RDF.
This package inherits from *Net::Flickr::API*.
OPTIONS
Options are passed to Net::Flickr::Backup using a Config::Simple object
or a valid Config::Simple config file. Options are grouped by "block".
flickr
* api_key
String. *required*
A valid Flickr API key.
* api_secret
String. *required*
A valid Flickr Auth API secret key.
* auth_token
String. *required*
A valid Flickr Auth API token.
rdf
* query_geonames
Boolean.
If true and a photo has geodata (latitude, longitude) associated
with it, then the geonames.org database will be queried for a
corresponding match. Data will be added as properties of the photo's
geo:Point description. For example :
<geo:Point rdf:about="http://www.flickr.com/photos/35034348999@N01/272880469#location">
<geo:long>-122.025151</geo:long>
<flickr:accuracy>16</ymaps:flickr>
<acl:access>visbility</acl:access>
<geo:lat>37.417839</geo:lat>
<acl:accessor>public</acl:accessor>
<geoname:Feature rdf:resource="http://ws.geonames.org/rdf?geonameId=5409655"/>
</geo:Point>
<geoname:Feature rdf:about="http://ws.geonames.org/rdf?geonameId=5409655">
<geoname:featureCode>PPLX</geoname:featureCode>
<geoname:countryCode>US</geoname:countryCode>
<geoname:regionCode>CA</geoname:regionCode>
<geoname:region>California</geoname:region>
<geoname:city>Santa Clara</geoname:city>
<geoname:gtopo30>2</geoname:gtopo30>
</geoname:Feature>
Default is false.
PACKAGE METHODS
__PACKAGE__->new($cfg)
Where $cfg is either a valid *Config::Simple* object or the path to a
file that can be parsed by *Config::Simple*.
Returns a *Net::Flickr::RDF* object.
PACKAGE METHODS YOU MAY CARE ABOUT
__PACKAGE__->build_photo_uri(\%data)
Returns a URL as a string.
__PACKAGE__->build_geo_uri(\%data)
__PACKAGE__->build_user_tag_uri(\@data)
Returns a URL as a string.
__PACKAGE__->build_global_tag_uri(\@data)
Returns a URL as a string.
__PACKAGE__->build_machinetag_uri(\@data)
Returns a URL as a string.
__PACKAGE__->build_user_uri($user_id)
Returns a URL as a string.
__PACKAGE__->build_group_uri($group_id)
Returns a URL as a string.
__PACKAGE__->build_grouppool_uri($group_id)
Returns a URL as a string.
__PACKAGE__->build_photoset_uri(\%set_data)
Returns a URL as a string.
__PACKAGE__->prune_triples(\@triples)
Removes duplicate triples from *@triples*. Returns an array reference.
OBJECT METHODS YOU SHOULD CARE ABOUT
$obj->describe_photo(\%args)
Valid arguments are :
* photo_id
Int. *required*
* secret
String.
* fh
File-handle.
Default is STDOUT.
Returns true or false.
OBJECT METHODS YOU MAY CARE ABOUT
$obj->collect_photo_data($photo_id,$secret)
Returns a hash ref of the meta data associated with a photo.
If any errors are unencounter an error is recorded via the log method
and the method returns undef.
$obj->collect_group_data($group_id)
Returns a hash ref of the meta data associated with a group.
If any errors are unencounter an error is recorded via the log method
and the method returns undef.
$obj->collect_user_data($user_id)
Returns a hash ref of the meta data associated with a user.
If any errors are unencounter an error is recorded via the log method
and the method returns undef.
$obj->collect_photoset_data($photoset_id)
Returns a hash ref of the meta data associated with a photoset.
If any errors are unencounter an error is recorded via the log method
and the method returns undef.
$obj->collect_cc_data()
Returns a hash ref of the Creative Commons licenses used by Flickr.
If any errors are unencounter an error is recorded via the log method
and the method returns undef.
$obj->collect_comment_data()
Returns a hash ref of comments made about a photo.
$obj->make_photo_triples(\%data)
Returns an array ref (or alist in a wantarray context) of array refs of
the meta data associated with a photo (*%data*).
$obj->make_user_triples(\%user_data)
Returns an array ref (or list in a wantarray context) of array refs of
the meta data associated with a user (*%user_data*).
$obj->make_tag_triples(\@tag_data)
Returns an array ref (or list in a wantarray context) of array refs of
the meta data associated with a tag (*@tag_data*).
$pkg->make_photoset_triples(\%set_data)
Returns an array ref (or list in a wantarray context) of array refs of
the meta data associated with a photoset (*%set_data*).
$obj->make_geo_triples(\%geo_data)
$obj->make_flickr_places_triples(\%geo_data)
$obj->make_geonames_triples(\%geo_data)
$obj->make_group_triples(\%group_data)
Returns an array ref (or list in a wantarray context) of array refs of
the meta data associated with a group (*%group_data*).
$obj->make_grouppool_triples(\%group_data)
Returns an array ref (or list in a wantarray context) of array refs of
the meta data associated with a group pool (*%group_data*).
$obj->make_cc_triples($url)
Returns an array ref (or list in a wantarray context) of array refs of
the meta data associated with a Creative Commons license (*$url*).
$obj->make_comment_triples(\%data)
Returns an array ref (or alist in a wantarray context) of array refs of
the meta data associated with a photo comment (*%data*).
$obj->geodata_from_tags(\%data)
Try to parse out geolocative data from a collection of tag data.
Returns a hash ref (containing 'lat' and 'long' keys) on success or
undef if there were no matches.
$obj->namespaces()
Returns a hash ref of the prefixes and namespaces used by
*Net::Flickr::RDF*
The default key/value pairs are :
a http://www.w3.org/2000/10/annotation-ns
acl http://www.w3.org/2001/02/acls#
atom
http://www.w3.org/2005/Atom/
cc http://web.resource.org/cc/
dc http://purl.org/dc/elements/1.1/
dcterms
http://purl.org/dc/terms/
exif
http://nwalsh.com/rdf/exif#
exifi
http://nwalsh.com/rdf/exif-intrinsic#
flickr
x-urn:flickr:
foaf
http://xmlns.com/foaf/0.1/#
geo http://www.w3.org/2003/01/geo/wgs84_pos#
geoname
http://www.geonames.org/onto#
i http://www.w3.org/2004/02/image-regions#
rdf http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs
http://www.w3.org/2000/01/rdf-schema#
skos
http://www.w3.org/2004/02/skos/core#
ymaps
urn:yahoo:maps
$obj->add_namespace($prefix, $namespace)
Add a prefix and namespace URI to the list of known namespaces.
This method returns a string containing the prefix you should use for
the namespace URI passed. If the prefix passed to the method is already
reserved for another namespace the method will return the following
string:
"nfr_" + I<the prefix passed to the method>
$obj->namespace_prefix($uri)
Return the namespace prefix for *$uri*
$obj->uri_shortform($prefix,$name)
Returns a string in the form of *prefix*:*property*. The property is the
value of $name. The prefix passed may or may be the same as the prefix
returned depending on whether or not the user has defined or redefined
their own list of namespaces.
Unless this package is subclassed the prefix passed to the method is
assumed to be one of prefixes in the default list of namespaces.
$obj->api_call(\%args)
Valid args are :
* method
A string containing the name of the Flickr API method you are
calling.
* args
A hash ref containing the key value pairs you are passing to
*method*
If the method encounters any errors calling the API, receives an API
error or can not parse the response it will log an error event, via the
log method, and return undef.
Otherwise it will return a *XML::LibXML::Document* object (if
XML::LibXML is installed) or a *XML::XPath* object.
$obj->log()
Returns a *Log::Dispatch* object.
$obj->serialise_triples(\@triples,\*$fh)
Print *@triples* as RDF/XML to a filehandle (*$fh*). If no filehandle is
defined, prints to STDOUT.
$obj->serialize_triples(\@triples,\*$fh)
An alias for *serialise_triples*
VERSION
2.2
DATE
$Date: 2010/12/19 19:06:12 $
AUTHOR
Aaron Straup Cope <[email protected]>
CONTRIBUTORS
Thomas Sibley <[email protected]>
EXAMPLES
CONFIG FILES
This is an example of a Config::Simple file used to collect RDF data
from Flickr
[flickr]
api_key=asd6234kjhdmbzcxi6e323
api_secret=s00p3rs3k3t
auth_token=123-omgwtf4u
RDF
This is an example of an RDF dump for a photograph backed up from Flickr
:
http://flickr.com/photos/straup/2269291707/
<?xml version='1.0'?>
<rdf:RDF
xmlns:geoname="http://www.geonames.org/onto#"
xmlns:a="http://www.w3.org/2000/10/annotation-ns"
xmlns:filtr="http://www.machinetags.org/wiki/filtr#process"
xmlns:ph="http://www.machinetags.org/wiki/ph#camera"
xmlns:exif="http://nwalsh.com/rdf/exif#"
xmlns:mt="x-urn:flickr:machinetag:"
xmlns:exifi="http://nwalsh.com/rdf/exif-intrinsic#"
xmlns:geonames="http://www.machinetags.org/wiki/geonames#locality"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:places="http://www.flickr.com/places/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
xmlns:acl="http://www.w3.org/2001/02/acls#"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:computer="x-urn:freebsd:"
xmlns:flickr="x-urn:flickr:"
>
<rdf:Description rdf:about="file:///home/asc/photos/2008/02/16/20080216-2269291707-ambient_pork_m.jpg">
<dcterms:created>2008-02-17T10:36:02Z</dcterms:created>
<dc:creator rdf:resource="x-urn:no#asc"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
</rdf:Description>
<flickr:photoset rdf:about="http://www.flickr.com/photos/35034348999@N01/sets/72157603613223494">
<dc:description></dc:description>
<dc:title>Untitled Set #2008</dc:title>
<dc:creator rdf:resource="http://www.flickr.com/people/35034348999@N01"/>
</flickr:photoset>
<flickr:tag rdf:about="http://www.flickr.com/photos/35034348999@N01/tags/filtr:process=filtr">
<skos:altLabel>filtr</skos:altLabel>
<dc:creator rdf:resource="http://www.flickr.com/people/35034348999@N01"/>
<skos:broader rdf:resource="http://www.flickr.com/photos/tags/filtr:process=filtr"/>
<skos:prefLabel rdf:resource="filtr:process=filtr"/>
</flickr:tag>
<dcterms:StillImage rdf:about="http://farm3.static.flickr.com/2326/2269291707_bc16eb038a.jpg">
<dcterms:relation>Medium</dcterms:relation>
<exifi:height>375</exifi:height>
<exifi:width>500</exifi:width>
<dcterms:isVersionOf rdf:resource="http://farm3.static.flickr.com/2326/2269291707_2ec279037a_o.jpg"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707#exif"/>
</dcterms:StillImage>
<flickr:place rdf:about="http://www.flickr.com/places/United+States/California/San+Francisco">
<places:locality>San Francisco</places:locality>
<places:region>California</places:region>
<places:county>San Francisco</places:county>
<places:id>kH8dLOubBZRvX_YZ</places:id>
<places:country>United States</places:country>
<dc:isReferencedBy rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
</flickr:place>
<dcterms:StillImage rdf:about="http://farm3.static.flickr.com/2326/2269291707_2ec279037a_o.jpg">
<dcterms:relation>Original</dcterms:relation>
<exifi:height>1944</exifi:height>
<exifi:width>2592</exifi:width>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707#exif"/>
</dcterms:StillImage>
<flickr:tag rdf:about="http://www.flickr.com/photos/tags/cameraphone">
<skos:prefLabel>cameraphone</skos:prefLabel>
</flickr:tag>
<flickr:tag rdf:about="http://www.flickr.com/photos/35034348999@N01/tags/filtr">
<skos:prefLabel>filtr</skos:prefLabel>
<dc:creator rdf:resource="http://www.flickr.com/people/35034348999@N01"/>
<skos:broader rdf:resource="http://www.flickr.com/photos/tags/filtr"/>
</flickr:tag>
<rdf:Description rdf:about="x-urn:flickr:tag">
<rdfs:subClassOf rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/>
</rdf:Description>
<rdf:Description rdf:about="x-urn:freebsd:user">
<rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
</rdf:Description>
<flickr:tag rdf:about="http://www.flickr.com/photos/35034348999@N01/tags/sanfrancisco">
<skos:prefLabel>sanfrancisco</skos:prefLabel>
<dc:creator rdf:resource="http://www.flickr.com/people/35034348999@N01"/>
<skos:broader rdf:resource="http://www.flickr.com/photos/tags/sanfrancisco"/>
</flickr:tag>
<flickr:tag rdf:about="http://www.flickr.com/photos/tags/sanfrancisco">
<skos:prefLabel>sanfrancisco</skos:prefLabel>
</flickr:tag>
<flickr:user rdf:about="http://www.flickr.com/people/32373682187@N01">
<foaf:mbox_sha1sum></foaf:mbox_sha1sum>
<foaf:name>heather powazek champ</foaf:name>
<foaf:nick>heather</foaf:nick>
</flickr:user>
<rdf:Description rdf:about="http://www.flickr.com/photos/35034348999@N01/2269291707#location">
<skos:broader rdf:resource="http://ws.geonames.org/rdf?geonameId=5326012"/>
<skos:broader rdf:resource="http://www.flickr.com/places/United+States/California/San+Francisco"/>
</rdf:Description>
<dcterms:StillImage rdf:about="http://farm3.static.flickr.com/2326/2269291707_bc16eb038a_s.jpg">
<dcterms:relation>Square</dcterms:relation>
<exifi:height>75</exifi:height>
<exifi:width>75</exifi:width>
<dcterms:isVersionOf rdf:resource="http://farm3.static.flickr.com/2326/2269291707_2ec279037a_o.jpg"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707#exif"/>
</dcterms:StillImage>
<dcterms:StillImage rdf:about="http://farm3.static.flickr.com/2326/2269291707_bc16eb038a_t.jpg">
<dcterms:relation>Thumbnail</dcterms:relation>
<exifi:height>75</exifi:height>
<exifi:width>100</exifi:width>
<dcterms:isVersionOf rdf:resource="http://farm3.static.flickr.com/2326/2269291707_2ec279037a_o.jpg"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707#exif"/>
</dcterms:StillImage>
<rdf:Description rdf:about="http://www.flickr.com/photos/35034348999@N01/2269291707#exif">
<exif:flash>Flash did not fire, auto mode</exif:flash>
<exif:digitalZoomRatio>100/100</exif:digitalZoomRatio>
<exif:isoSpeedRatings>100</exif:isoSpeedRatings>
<exif:pixelXDimension>2592</exif:pixelXDimension>
<exif:apertureValue>297/100</exif:apertureValue>
<exif:pixelYDimension>1944</exif:pixelYDimension>
<exif:focalLength>5.6 mm</exif:focalLength>
<exif:dateTimeDigitized>2008-02-16T14:22:32PST</exif:dateTimeDigitized>
<exif:colorSpace>sRGB</exif:colorSpace>
<exif:fNumber>f/2.8</exif:fNumber>
<exif:dateTimeOriginal>2008-02-16T14:22:32PST</exif:dateTimeOriginal>
<exif:shutterSpeedValue>7643/1000</exif:shutterSpeedValue>
<exif:exposureTime>0.005 sec (1/200)</exif:exposureTime>
</rdf:Description>
<flickr:tag rdf:about="http://www.flickr.com/photos/35034348999@N01/tags/cameraphone">
<skos:prefLabel>cameraphone</skos:prefLabel>
<dc:creator rdf:resource="http://www.flickr.com/people/35034348999@N01"/>
<skos:broader rdf:resource="http://www.flickr.com/photos/tags/cameraphone"/>
</flickr:tag>
<flickr:user rdf:about="http://www.flickr.com/people/35034348999@N01">
<foaf:mbox_sha1sum>b0571f7ec59c0b59e19a3f054f78d953cb32b071</foaf:mbox_sha1sum>
<foaf:name>Aaron Straup Cope</foaf:name>
<foaf:nick>straup</foaf:nick>
</flickr:user>
<rdf:Description rdf:about="x-urn:flickr:comment">
<rdfs:subClassOf rdf:resource="http://www.w3.org/2000/10/annotation-nsAnnotation"/>
</rdf:Description>
<dcterms:StillImage rdf:about="http://farm3.static.flickr.com/2326/2269291707_bc16eb038a_m.jpg">
<dcterms:relation>Small</dcterms:relation>
<exifi:height>180</exifi:height>
<exifi:width>240</exifi:width>
<dcterms:isVersionOf rdf:resource="http://farm3.static.flickr.com/2326/2269291707_2ec279037a_o.jpg"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707#exif"/>
</dcterms:StillImage>
<flickr:machinetag rdf:about="http://www.machinetags.org/wiki/filtr#process">
<mt:predicate>process</mt:predicate>
<mt:namespace>filtr</mt:namespace>
<dc:isReferencedBy rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
</flickr:machinetag>
<rdf:Description rdf:about="x-urn:flickr:machinetag">
<rdfs:subClassOf rdf:resource="http://www.w3.org/2004/02/skos/core#Concept"/>
</rdf:Description>
<flickr:machinetag rdf:about="http://www.machinetags.org/wiki/geonames#locality">
<mt:predicate>locality</mt:predicate>
<mt:namespace>geonames</mt:namespace>
<dc:isReferencedBy rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
</flickr:machinetag>
<flickr:tag rdf:about="http://www.flickr.com/photos/tags/geonames:locality=5391959">
<skos:altLabel>5391959</skos:altLabel>
<skos:broader rdf:resource="http://www.machinetags.org/wiki/geonames#locality"/>
<skos:prefLabel rdf:resource="geonames:locality=5391959"/>
</flickr:tag>
<rdf:Description rdf:about="file:///home/asc/photos/2008/02/16/20080216-2269291707-ambient_pork.jpg">
<dcterms:created>2008-02-17T10:36:02Z</dcterms:created>
<dc:creator rdf:resource="x-urn:no#asc"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
</rdf:Description>
<flickr:tag rdf:about="http://www.flickr.com/photos/tags/filtr:process=filtr">
<skos:altLabel>filtr</skos:altLabel>
<skos:broader rdf:resource="http://www.machinetags.org/wiki/filtr#process"/>
<skos:prefLabel rdf:resource="filtr:process=filtr"/>
</flickr:tag>
<flickr:photo rdf:about="http://www.flickr.com/photos/35034348999@N01/2269291707">
<filtr:process>filtr</filtr:process>
<acl:access>visbility</acl:access>
<dc:title>Ambient Pork</dc:title>
<ph:camera>n82</ph:camera>
<dc:rights>All rights reserved.</dc:rights>
<acl:accessor>public</acl:accessor>
<dc:description></dc:description>
<geonames:locality>5391959</geonames:locality>
<dc:created>2008-02-16T14:22:32-0800</dc:created>
<dc:dateSubmitted>2008-02-16T14:32:59-0800</dc:dateSubmitted>
<dc:creator rdf:resource="http://www.flickr.com/people/35034348999@N01"/>
<dc:subject rdf:resource="http://www.flickr.com/photos/35034348999@N01/tags/cameraphone"/>
<dc:subject rdf:resource="http://www.flickr.com/photos/35034348999@N01/tags/filtr:process=filtr"/>
<dc:subject rdf:resource="http://www.flickr.com/photos/35034348999@N01/tags/filtr"/>
<dc:subject rdf:resource="http://www.flickr.com/photos/35034348999@N01/tags/sanfrancisco"/>
<dc:subject rdf:resource="http://www.flickr.com/photos/35034348999@N01/tags/ph:camera=n82"/>
<dc:subject rdf:resource="http://www.flickr.com/photos/35034348999@N01/tags/geonames:locality=5391959"/>
<dcterms:isPartOf rdf:resource="http://www.flickr.com/photos/35034348999@N01/sets/72157603613223494"/>
<a:hasAnnotation rdf:resource="http://www.flickr.com/photos/straup/2269291707/#comment72157603921497994"/>
<geo:Point rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707#location"/>
</flickr:photo>
<computer:user rdf:about="x-urn:no#asc">
<foaf:name>Aaron Straup Cope</foaf:name>
<foaf:nick>asc</foaf:nick>
</computer:user>
<rdf:Description rdf:about="#">
<dcterms:hasVersion>2.1:1203244560</dcterms:hasVersion>
<dc:created>2008-02-17T02:36:00-0800</dc:created>
<dc:creator rdf:resource="http://search.cpan.org/dist/Net-Flickr-RDF-2.1"/>
<a:annotates rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
</rdf:Description>
<flickr:tag rdf:about="http://www.flickr.com/photos/tags/filtr">
<skos:prefLabel>filtr</skos:prefLabel>
</flickr:tag>
<rdf:Description rdf:about="x-urn:flickr:user">
<rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
</rdf:Description>
<rdf:Description rdf:about="http://www.flickr.com/places/kH8dLOubBZRvX_YZ">
<rdfs:seeAlso rdf:resource="http://www.flickr.com/places/United+States/California/San+Francisco"/>
</rdf:Description>
<flickr:machinetag rdf:about="http://www.machinetags.org/wiki/ph#camera">
<mt:predicate>camera</mt:predicate>
<mt:namespace>ph</mt:namespace>
<dc:isReferencedBy rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
</flickr:machinetag>
<flickr:comment rdf:about="http://www.flickr.com/photos/straup/2269291707/#comment72157603921497994">
<dc:identifier>6065-2269291707-72157603921497994</dc:identifier>
<dc:created>2008-02-16T16:39:31</dc:created>
<a:body>best. title. ever.</a:body>
<dc:creator rdf:resource="http://www.flickr.com/people/32373682187@N01"/>
<a:annotates rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
</flickr:comment>
<flickr:tag rdf:about="http://www.flickr.com/photos/35034348999@N01/tags/geonames:locality=5391959">
<skos:altLabel>5391959</skos:altLabel>
<dc:creator rdf:resource="http://www.flickr.com/people/35034348999@N01"/>
<skos:broader rdf:resource="http://www.flickr.com/photos/tags/geonames:locality=5391959"/>
<skos:prefLabel rdf:resource="geonames:locality=5391959"/>
</flickr:tag>
<flickr:tag rdf:about="http://www.flickr.com/photos/tags/ph:camera=n82">
<skos:altLabel>n82</skos:altLabel>
<skos:broader rdf:resource="http://www.machinetags.org/wiki/ph#camera"/>
<skos:prefLabel rdf:resource="ph:camera=n82"/>
</flickr:tag>
<geoname:Feature rdf:about="http://ws.geonames.org/rdf?geonameId=5326012">
<geoname:featureCode>PPLX</geoname:featureCode>
<geoname:countryCode>US</geoname:countryCode>
<geoname:regionCode>CA</geoname:regionCode>
<geoname:gtopo30>23</geoname:gtopo30>
<geoname:region>California</geoname:region>
<geoname:city>San Francisco County</geoname:city>
<dc:isReferencedBy rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
</geoname:Feature>
<flickr:tag rdf:about="http://www.flickr.com/photos/35034348999@N01/tags/ph:camera=n82">
<skos:altLabel>n82</skos:altLabel>
<dc:creator rdf:resource="http://www.flickr.com/people/35034348999@N01"/>
<skos:broader rdf:resource="http://www.flickr.com/photos/tags/ph:camera=n82"/>
<skos:prefLabel rdf:resource="ph:camera=n82"/>
</flickr:tag>
<rdf:Description rdf:about="http://www.flickr.com/geo/United%20States/California/San%20Francisco/San%20Francisco">
<rdfs:seeAlso rdf:resource="http://www.flickr.com/places/United+States/California/San+Francisco"/>
</rdf:Description>
<dcterms:StillImage rdf:about="http://farm3.static.flickr.com/2326/2269291707_bc16eb038a_b.jpg">
<dcterms:relation>Large</dcterms:relation>
<exifi:height>768</exifi:height>
<exifi:width>1024</exifi:width>
<dcterms:isVersionOf rdf:resource="http://farm3.static.flickr.com/2326/2269291707_2ec279037a_o.jpg"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707#exif"/>
</dcterms:StillImage>
<rdf:Description rdf:about="file:///home/asc/photos/2008/02/16/20080216-2269291707-ambient_pork_s.jpg">
<dcterms:created>2008-02-17T10:36:02Z</dcterms:created>
<dc:creator rdf:resource="x-urn:no#asc"/>
<rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/35034348999@N01/2269291707"/>
</rdf:Description>
</rdf:RDF>
SEE ALSO
Net::Flickr::API
RDF::Simple
TO DO
* Methods for describing more than just a photo; groups, tags, etc.
* Update bounding boxes to be relative to individual images
* Proper tests
Patches are welcome.
BUGS
Please report all bugs via http://rt.cpan.org/
LICENSE
Copyright (c) 2005-2008 Aaron Straup Cope. All Rights Reserved.
This is free software. You may redistribute it and/or modify it under
the same terms as Perl itself.