Revision as of 01:42, 1 November 2007 by Admin (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UsingFoafImage

Associating Images with People (and other resources)

Another way of DescribingAPerson is with an image. Here's how to associate a Person with an image in a FOAF document.

<foaf:Image/> <!-- there is an Image -->
<foaf:Image rdf:about="http://rdfweb.org/people/danbri/mugshot/danbri-small.jpeg"/>
  <!-- there is an image whose URI name is ... -->

<foaf:Person rdf:nodeID="person1"><foaf:name>Dan Brickley</foaf:name></foaf:Person>
<!-- there is a Person that in this doc we will call 'person1', and it has a name of ...-->


<foaf:Person rdf:nodeID="person1">
 <foaf:depiction rdf:resource="http://rdfweb.org/people/danbri/mugshot/danbri-small.jpeg"/>
</foaf:Person>
<!-- person1 has a depiction that is the thing whose URI name is ... -->
<foaf:Person>
  <foaf:name>Dan Brickley</foaf:name>
  <foaf:depiction>
    <foaf:Image/>
  </foaf:depiction>
</foaf:Person>
<!-- there is a person with a name 'Dan Brickley' that has a depiction that is an image.-->
<foaf:Person>
  <foaf:name>Dan Brickley</foaf:name>
  <foaf:depiction>
    <foaf:Image>
      <foaf:sha1>7eff189e90a0b21cddb1b490ee39524f3cd2ca3e</foaf:sha1>
    </foaf:Image>
  </foaf:depiction>
</foaf:Person>
<!-- there is a person with a name 'Dan Brickley' that has a depiction that is an image
   that has a sha1 hash whose value is ... -->


This gives us the raw materials to say that there is a person that is depicted by an image which has such'n'so URI name, and such'n'so content (assured by hashing to get a unique(ish) fingerprint). This could be the raw materials needed to reproduce passport-like functionality in the Semantic Web.

<foaf:Person>
  <foaf:name>Dan Brickley</foaf:name>
  <foaf:depiction>
    <foaf:Image rdf:about="http://rdfweb.org/people/danbri/mugshot/danbri-small.jpeg">
      <foaf:sha1>7eff189e90a0b21cddb1b490ee39524f3cd2ca3e</foaf:sha1>
    </foaf:Image>
  </foaf:depiction>
</foaf:Person>
<!-- as above, but also mentioning the URI name for the image -->


But assuming someone writes RDF making the claim that I like look the contents of (some version of) some picture, how can the author of that document assure us it hasn't been altered, changed? (see foafbot docs on PGP signed RDF/XML).


CategoryTutorial