SIOC reader (universal) widget

On yesterday’s SIOC brainstorming, Knud Möller mentioned the use of widgets to browse SIOC data.

I take a look today at the Universal Widget API from Netvibes and wrote a simple widget, that will query any SPARQL endpoint of your choice (need to support JSON output for SELECT queries) for fresh SIOC data. There’s certainly a lof of funniest things we can do with SIOC and widgets (eg: find similar posts in all the sioc-o-sphere when browsing a blog, related pictures, people …), but that’s a starting point. Here’s what it looks like in iGoogle

siocwidget.png

You can setup the number of items you want to retrieve, as well as the type (default sioc:Post) and the property used to match the date (since I noticed that some SIOC data use dct:modified while others juste use dct:created - it’s time for a SIOC-best practices guide !). Just go to the widget editing interface to change the values. By default, the widget uses one of the Talis platform endpoint URL, thanks a lot to Keith Alexander for quickly setting a JSON-enabled endpoint so that I debugged the widget !

The widget constructs the following query according your parameters:

SELECT ?post ?title
WHERE {
  ?post rdf:type $type ;
    ?post dc:title ?title ;
    ?post $date ?date .
}
ORDER BY DESC (?date) LIMIT $limit

This is the kind of widget that would be cool to plug to a SPARQLPress endpoint to get a quick overview of the activity of your social network, i.e. what are the last thing your friends twit, post, or listened to.

To use it, just go there and you’ll be able to add it to iGoogle or netvibes. If you want to use a standalone version or put it on your blog, you may need additonal resources. I can’t make it work on Dashboard yet, but I hope it will be ok soon.

Comments

5 Responses to “SIOC reader (universal) widget”

  1. https://me.yahoo.com/scorlosquet#57ef5 on January 31st, 2008 1:36 pm

    It’s great to see some SIOC applications. Thanks Alex!

  2. Alex on January 31st, 2008 1:53 pm

    You’re welcome !
    Do you plan to delegate your OpenID Yahoo URL to a self-hosted domain (and add your FOAF file with an auto-discovery link ?)

  3. http://getopenid.com/scorlosquet on January 31st, 2008 2:05 pm

    I’m actually trying a few openID providers. I heard some of them were unreliable.

  4. Недельный обзор | Футуриус on February 1st, 2008 8:32 pm

    […] Виджет для чтения SIOC от Александра пассата + SPARQL запрос […]

  5. Tales from the SIOC-o-sphere #7 at Cloudlands on April 5th, 2008 7:12 pm

    […] has produced a universal SIOC reader widget. The widget can query for SIOC data from any SPARQL endpoint that provides a JSON output for SELECT […]

Leave a Reply

You must be logged in to post a comment.