Bookmarks and tags

Xfolk and Annotea Bookmarks are convertible vice-versa. This is a proposal.


Example from the xfolk wiki:

div class="xfolkentry" div a class="taggedlink" href="http://www.sifry.com/alerts/archives/000306.html" Sifry's Alerts: Technorati launches Related Tags /a /div div class="description" Ever wanted to see what posts are related to other posts, what tags are related to others? Now you can! Just check under the Tag description on most tag pages, like this one, or this one, and you'll see the patterns. Can you smell the emergence? /div div class="meta" to a rel="tag" href="/fpgibson/folksonomy"folksonomy/a a rel="tag" href="/fpgibson/technorati"technorati/a ... a class="delNav" href="/url/cbcabf7de070fdb46598ee679367be49" and 1 other person /a ... on 2005-04-09 /div /div

This may be converted to one record of type bookmark and two records of type topic:

bm:Bookmark rdf:about="urn:uri:ded7d844-49c1-46af-b5ab-52f51aae1f63" dc:titleSifry's Alerts: Technorati launches Related Tags/dc:title dc:description Ever wanted to see what posts are related to other posts, what tags are related to others? Now you can! Just check under the Tag description on most tag pages, like this one, or this one, and you'll see the patterns. Can you smell the emergence? /dc:description bm:recalls rdf:resource="http://www.sifry.com/alerts/archives/000306.html" bm:hasTopic rdf:resource=#folksonomy bm:hasTopic rdf:resource=#technorati /bm:Bookmark bm:Topic rdf:about="http://www.sifry.com/fpgibson/folksonomy" rdf:ID="folksonomy" dc:titlefolksonomy/dc:title /bm:Topic bm:Topic rdf:about="http://www.sifry.com/fpgibson/technorati" rdf:ID="technorati" dc:titletechnorati/dc:title /bm:Topic

Bookmark

  1. The rdf:about attribute of the bookmark should be unique.
  2. The dc:title is the content of the tagged link.
  3. The dc:description is the content of the div class="description". I'd suggest to alternatively accept a div class="DC.description".
  4. The bm:recalls rdf:resource attribute gets its content from the href attribute of the tagged lińk.
  5. The bm:hasTopic rdf:resource attributes are a local link to the bm:Topic records. The name should be unique. Since the microformats specification says that the last part of the url is the name of the topic, this could be used as the topic ID.

Topic

  1. The rdf:about is the content of the href attribute of the link.
  2. The rdf:ID is the local reference. The topic name is used for this.
  3. The title either is the name of the topic, or, if available, the title attribute of the link.

More data for the topic may be ripped from the target page.