Here <http://identi.ca/conversation/6322891> Evan talks about creating
an account import/export feature for laconi.ca.

It strikes me that virtually all the data people would want to export
(subscriptions, notices, tags) is already available by combining the RSS
1.0 and FOAF files. (Though currently the FOAF files only seem to show
some of your subscribers/subscriptions - not all of them??)

Surely it's not beyond the wit of man to write an import script that
iterates through a FOAF file building up a list of the person's
subscriptions and subscribing to those accounts? Similarly, it shouldn't
be too difficult to import an RSS 1.0 feed, retaining things like dates,
and perhaps even (if importing into a fresh installation) retaining the
notice numbers.

Using SPARQL it's dead easy to get this sort of data out of FOAF and
RSS. For example, go to http://sparql.org/sparql.html and run this
query:

SELECT $subscriber_page $subscribed_page
FROM <http://identi.ca/evan/foaf>
WHERE {
  $subscriber_account
    <http://rdfs.org/sioc/ns#follows>
      $subscribed_account .
  $subscriber_account
    <http://xmlns.com/foaf/0.1/accountProfilePage>
      $subscriber_page .
  $subscribed_account
    <http://xmlns.com/foaf/0.1/accountProfilePage>
      $subscribed_page .
}

Do people think this is a reasonable idea? Worthwhile to devote some
time to?

-- 
Toby A Inkster
<mailto:[email protected]>
<http://tobyinkster.co.uk>
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to