Photos, Album and RDF

Hi,

[Aaron Straup Cope][1] has released a while ago a program to make an  
[RDF dump][2] for a photograph backep up on Flickr.

Basically in the RDF Dump given here there is

a photo
	- is on a webpage.
	- has comments
	- has tags
	- has notes
	- belongs to groups (album)
	- has technical details

I was thinking that maybe a simplification would be to have something  
like for FoafCorp.

photo001.rdf -> group1.rdf, group2.rdf, …
photo002.rdf -> group2.rdf, group10.rdf, …

and

group1.rdf -> photo001.rdf
group2.rdf -> photo001.rdf, photo002.rdf
…
group10.rdf -> photo002.rdf


But I was wondering how this would work at the same time on the web  
and locally.

	rdf:about="../../groups/group1.rdf"
versus
	rdf:about="http://example.org/groups/group1.rdf"


If I fetch one photo file how can I deference the file  locally when  
I'm not connected and I have a path more than a URI.


[1] http://www.aaronland.info/weblog
[2] http://search.cpan.org/~ascope/Net-Flickr-RDF-1.5/lib/Net/Flickr/ 
RDF.pm#RDF


This is an example of a dump.

<?xml version='1.0'?>
<rdf:RDF
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:a="http://www.w3.org/2000/10/annotation-ns"
    xmlns:acl="http://www.w3.org/2001/02/acls#"
    xmlns:exif="http://nwalsh.com/rdf/exif#"
    xmlns:skos="http://www.w3.org/2004/02/skos/core#"
    xmlns:foaf="http://xmlns.com/foaf/0.1/"
    xmlns:exifi="http://nwalsh.com/rdf/exif-intrinsic#"
    xmlns:cc="http://web.resource.org/cc/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
    xmlns:flickr="x-urn:flickr:"
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:i="http://www.w3.org/2004/02/image-regions#">

   <flickr:photo rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/30763528">
     <exif:isoSpeedRatings>1250</exif:isoSpeedRatings>
     <exif:apertureValue>336/100</exif:apertureValue>
     <exif:pixelYDimension>960</exif:pixelYDimension>
     <exif:focalLength>4.5 mm</exif:focalLength>
     <acl:access>visbility</acl:access>
     <exif:colorSpace>sRGB</exif:colorSpace>
     <exif:dateTimeOriginal>2005:08:02 18:12:19</exif:dateTimeOriginal>
     <exif:shutterSpeedValue>4321/1000</exif:shutterSpeedValue>
     <dc:description></dc:description>
     <exif:exposureTime>0.05 sec (263/5260)</exif:exposureTime>
     <dc:created>2005-08-02T18:12:19-0700</dc:created>
     <dc:dateSubmitted>2005-08-02T18:16:20-0700</dc:dateSubmitted>
     <exif:gainControl>High gain up</exif:gainControl>
     <exif:flash>32</exif:flash>
     <exif:digitalZoomRatio>100/100</exif:digitalZoomRatio>
     <exif:pixelXDimension>1280</exif:pixelXDimension>
     <exif:dateTimeDigitized>2005:08:02 18:12:19</ 
exif:dateTimeDigitized>
     <dc:title>20050802(007).jpg</dc:title>
     <exif:fNumber>f/3.2</exif:fNumber>
     <acl:accessor>public</acl:accessor>
     <cc:license rdf:resource="http://creativecommons.org/licenses/by- 
nd/2.0/"/>
     <dc:creator rdf:resource="http://www.flickr.com/people/ 
35034348999@N01"/>
     <dc:subject rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/tags/usa"/>
     <dc:subject rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/tags/california"/>
     <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/cameraphone"/>
     <dcterms:isPartOf rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/sets/1082058"/>
     <dcterms:isPartOf rdf:resource="http://www.flickr.com/groups/ 
97155967@N00/pool"/>
     <a:hasAnnotation rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1140939"/>
     <a:hasAnnotation rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1140942"/>
     <a:hasAnnotation rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1140945"/>
     <a:hasAnnotation rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1140946"/>
     <a:hasAnnotation rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1140952"/>
     <a:hasAnnotation rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1142648"/>
     <a:hasAnnotation rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1142656"/>
     <a:hasAnnotation rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1143239"/>
     <a:hasAnnotation rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1148950"/>
   </flickr:photo>

   <flickr:note rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1140942">
     <i:boundingBox>468 141 22 26</i:boundingBox>
     <a:body>*sigh*</a:body>
     <i:regionDepicts rdf:resource="http://static.flickr.com/ 
23/30763528_a981fab285.jpg"/>
     <a:author rdf:resource="http://www.flickr.com/people/ 
44124415257@N01"/>
     <a:annotates rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </flickr:note>

   <flickr:tag rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/tags/usa">
     <skos:prefLabel>usa</skos:prefLabel>
     <dc:creator rdf:resource="http://www.flickr.com/people/ 
35034348999@N01"/>
     <dcterms:isPartOf rdf:resource="http://www.flickr.com/tags/usa"/>
   </flickr:tag>

   <dcterms:StillImage rdf:about="http://static.flickr.com/ 
23/30763528_a981fab285_s.jpg">
     <dcterms:relation>Square</dcterms:relation>
     <exifi:height>75</exifi:height>
     <exifi:width>75</exifi:width>
     <dcterms:isVersionOf rdf:resource="http://static.flickr.com/ 
23/30763528_a981fab285_o.jpg"/>
     <rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </dcterms:StillImage>

   <flickr:tag rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/tags/california">
     <skos:prefLabel>california</skos:prefLabel>
     <dc:creator rdf:resource="http://www.flickr.com/people/ 
35034348999@N01"/>
     <dcterms:isPartOf rdf:resource="http://www.flickr.com/tags/ 
california"/>
   </flickr:tag>

   <flickr:note rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1142656">
     <i:boundingBox>357 193 81 28</i:boundingBox>
     <a:body>eww!</a:body>
     <i:regionDepicts rdf:resource="http://static.flickr.com/ 
23/30763528_a981fab285.jpg"/>
     <a:author rdf:resource="http://www.flickr.com/people/ 
32373682187@N01"/>
     <a:annotates rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </flickr:note>

   <flickr:user rdf:about="http://www.flickr.com/people/ 
44124415257@N01">
     <foaf:mbox_sha1sum>4f6f211958d5217ef0d10f7f5cd9a69cd66f217e</ 
foaf:mbox_sha1sum>
     <foaf:name>Karl Dubost</foaf:name>
     <foaf:nick>karlcow</foaf:nick>
   </flickr:user>

   <flickr:note rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1140939">
     <i:boundingBox>326 181 97 25</i:boundingBox>
     <a:body>Did you see that this shirt makes me a beautiful breast? 
</a:body>
     <i:regionDepicts rdf:resource="http://static.flickr.com/ 
23/30763528_a981fab285.jpg"/>
     <a:author rdf:resource="http://www.flickr.com/people/ 
44124415257@N01"/>
     <a:annotates rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </flickr:note>

   <flickr:note rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1140952">
     <i:boundingBox>9 205 145 55</i:boundingBox>
     <a:body>Do you want my opinion? There's a love affair going on  
here… Anyway. Talking non sense. We all know Heather is committed  
to Flickr. She even only dresses at FlickrApparel. Did they say  
&amp;quot;No Logo&amp;quot;. Doh Dude.</a:body>
     <i:regionDepicts rdf:resource="http://static.flickr.com/ 
23/30763528_a981fab285.jpg"/>
     <a:author rdf:resource="http://www.flickr.com/people/ 
44124415257@N01"/>
     <a:annotates rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </flickr:note>

   <dcterms:StillImage rdf:about="http://static.flickr.com/ 
23/30763528_a981fab285_m.jpg">
     <dcterms:relation>Small</dcterms:relation>
     <exifi:height>180</exifi:height>
     <exifi:width>240</exifi:width>
     <dcterms:isVersionOf rdf:resource="http://static.flickr.com/ 
23/30763528_a981fab285_o.jpg"/>
     <rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </dcterms:StillImage>

   <flickr:photoset rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/sets/1082058">
     <dc:description></dc:description>
     <dc:title>Flickr</dc:title>
     <dc:creator rdf:resource="http://www.flickr.com/people/ 
35034348999@N01"/>
   </flickr:photoset>

   <flickr:user rdf:about="http://www.flickr.com/people/ 
34427469121@N01">
     <foaf:mbox_sha1sum>216d56f03517c68e527c5b970552a181980c4389</ 
foaf:mbox_sha1sum>
     <foaf:name>George Oates</foaf:name>
     <foaf:nick>George</foaf:nick>
   </flickr:user>

   <flickr:note rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1140946">
     <i:boundingBox>355 31 103 95</i:boundingBox>
     <a:body>(Yes… I love you heather, you are my dream star)</a:body>
     <i:regionDepicts rdf:resource="http://static.flickr.com/ 
23/30763528_a981fab285.jpg"/>
     <a:author rdf:resource="http://www.flickr.com/people/ 
44124415257@N01"/>
     <a:annotates rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </flickr:note>

   <rdf:Description rdf:about="x-urn:flickr:tag">
     <rdfs:subClassOf rdf:resource="http://www.w3.org/2004/02/skos/ 
core#Concept"/>
   </rdf:Description>

   <flickr:note rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1143239">
     <i:boundingBox>184 164 50 50</i:boundingBox>
     <a:body>Baaaaarp!</a:body>
     <i:regionDepicts rdf:resource="http://static.flickr.com/ 
23/30763528_a981fab285.jpg"/>
     <a:author rdf:resource="http://www.flickr.com/people/ 
34427469121@N01"/>
     <a:annotates rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </flickr:note>

   <dcterms:StillImage rdf:about="http://static.flickr.com/ 
23/30763528_a981fab285_t.jpg">
     <dcterms:relation>Thumbnail</dcterms:relation>
     <exifi:height>75</exifi:height>
     <exifi:width>100</exifi:width>
     <dcterms:isVersionOf rdf:resource="http://static.flickr.com/ 
23/30763528_a981fab285_o.jpg"/>
     <rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </dcterms:StillImage>

   <flickr:note rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1140945">
     <i:boundingBox>433 103 50 50</i:boundingBox>
     <a:body>(fuck… fuck…)</a:body>
     <i:regionDepicts rdf:resource="http://static.flickr.com/ 
23/30763528_a981fab285.jpg"/>
     <a:author rdf:resource="http://www.flickr.com/people/ 
44124415257@N01"/>
     <a:annotates rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </flickr:note>

   <flickr:tag rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/tags/sanfrancisco">
     <skos:prefLabel>san francisco</skos:prefLabel>
     <skos:altLabel>sanfrancisco</skos:altLabel>
     <dc:creator rdf:resource="http://www.flickr.com/people/ 
35034348999@N01"/>
     <dcterms:isPartOf rdf:resource="http://www.flickr.com/tags/ 
sanfrancisco"/>
   </flickr:tag>

   <flickr:user rdf:about="http://www.flickr.com/people/ 
32373682187@N01">
     <foaf:mbox_sha1sum>62bf10c8d5b56623226689b7be924c64dee5e94a</ 
foaf:mbox_sha1sum>
     <foaf:name>heather powazek champ</foaf:name>
     <foaf:nick>heather</foaf:nick>
   </flickr:user>

   <rdf:Description rdf:about="x-urn:flickr:user">
     <rdfs:subClassOf rdf:resource="http://xmlns.com/foaf/0.1/Person"/>
   </rdf:Description>

   <flickr:grouppool rdf:about="http://www.flickr.com/groups/ 
97155967@N00/pool">
     <dcterms:isPartOf rdf:resource="http://www.flickr.com/groups/ 
97155967@N00"/>
   </flickr:grouppool>

   <dcterms:StillImage rdf:about="http://static.flickr.com/ 
23/30763528_a981fab285.jpg">
     <dcterms:relation>Medium</dcterms:relation>
     <exifi:height>375</exifi:height>
     <exifi:width>500</exifi:width>
     <dcterms:isVersionOf rdf:resource="http://static.flickr.com/ 
23/30763528_a981fab285_o.jpg"/>
     <rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </dcterms:StillImage>

   <flickr:note rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1142648">
     <i:boundingBox>202 224 50 50</i:boundingBox>
     <a:body>dude! who did this?</a:body>
     <i:regionDepicts rdf:resource="http://static.flickr.com/ 
23/30763528_a981fab285.jpg"/>
     <a:author rdf:resource="http://www.flickr.com/people/ 
32373682187@N01"/>
     <a:annotates rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </flickr:note>

   <flickr:group rdf:about="http://www.flickr.com/groups/97155967@N00">
     <dc:description></dc:description>
     <dc:title>aaronland</dc:title>
   </flickr:group>

   <cc:License rdf:about="http://creativecommons.org/licenses/by-nd/ 
2.0/">
     <cc:requires rdf:resource="http://web.resource.org/cc/Notice"/>
     <cc:requires rdf:resource="http://web.resource.org/cc/ 
Attribution"/>
     <cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike"/>
     <cc:permits rdf:resource="http://web.resource.org/cc/ 
Reproduction"/>
     <cc:permits rdf:resource="http://web.resource.org/cc/ 
Distribution"/>
   </cc:License>

   <dcterms:StillImage rdf:about="http://static.flickr.com/ 
23/30763528_a981fab285_o.jpg">
     <dcterms:relation>Original</dcterms:relation>
     <exifi:height>960</exifi:height>
     <exifi:width>1280</exifi:width>
     <rdfs:seeAlso rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </dcterms:StillImage>

   <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"/>
     <dcterms:isPartOf rdf:resource="http://www.flickr.com/tags/ 
cameraphone"/>
   </flickr:tag>

   <flickr:user rdf:about="http://www.flickr.com/people/ 
35034348999@N01">
     <foaf:mbox_sha1sum>a4d1b5e38db5e2ed4f847f9f09fd51cf59bc0d3f</ 
foaf:mbox_sha1sum>
     <foaf:name>Aaron</foaf:name>
     <foaf:nick>straup</foaf:nick>
   </flickr:user>

   <flickr:note rdf:about="http://www.flickr.com/photos/ 
35034348999@N01/30763528#note-1148950">
     <i:boundingBox>342 197 28 33</i:boundingBox>
     <a:body>Is that just one big boob, or...?</a:body>
     <i:regionDepicts rdf:resource="http://static.flickr.com/ 
23/30763528_a981fab285.jpg"/>
     <a:author rdf:resource="http://www.flickr.com/people/ 
34427469121@N01"/>
     <a:annotates rdf:resource="http://www.flickr.com/photos/ 
35034348999@N01/30763528"/>
   </flickr:note>

   <rdf:Description rdf:about="x-urn:flickr:note">
     <rdfs:subClassOf rdf:resource="http://www.w3.org/2000/10/ 
annotation-nsAnnotation"/>
   </rdf:Description>

</rdf:RDF>

-- 
Karl Dubost - http://www.w3.org/People/karl/
W3C Conformance Manager, QA Activity Lead
*** Be Strict To Be Cool ***

Received on Tuesday, 20 December 2005 06:10:39 UTC