[MOBY-l] [moby] RSS feeds for objects and services

Twigger Simon simont at hmgc.mcw.edu
Mon Feb 20 16:52:35 UTC 2006


Hi Mark,

THe timestamp will be good - I was wondering if you could just do a  
select on the database to get all services ordered by registration  
date and then use LIMIT 10 to get the first 10 off the top of the  
list, ie the 10 most recently registered. The LSID timestamp would  
probably do the trick here. The query could be set up to run every  
hour to create the RSS file, etc. so it would have a reasonable  
refresh rate but not too burdensome.

This would be nice in that it will always show something to people.  
However, if someone registers more than 10 services/objects then they  
wont all make the cut so there may be a good case for the 'new in the  
last 24 hours' feed too, I think we just need to label it better so  
people understand that it's for a particular timeframe and hence why  
it might return no entries.

Simon.

--

Simon N. Twigger, Ph.D.
Assistant Professor, Department of Physiology
Medical College of Wisconsin
8701 Watertown Plank Road,
Milwaukee, WI, USA
tel: 414-456-8802
fax: 414-456-6595
AIM/iChat: simontatmcw


On Feb 17, 2006, at 1:08 PM, Mark Wilkinson wrote:

> On Fri, 2006-02-17 at 11:10 -0600, Twigger Simon wrote:
>> Are these meant to
>> be a list of all current services/objects or do things appear on
>> there only when they are new? Mark, I see the feeds are coming from
>> your group so I was wondering if you could let me know how this is
>> meant to work?
>
> The feeds are updated daily, and contain the list of services/objects
> registered in the previous 24 hours
>
>
>> I wasnt sure if this was broken or if they are functioning correctly
>> and there's just nothing there. I'd quite like it to return all the
>> current services and objects, then if I subscribe I would think that
>> new services/objects would pop up in my newsreader as new 'stories'
>> so I would be alerted to them.
>
> It does work that way, except that it works only in 4 hour blocks.
>
> I can change that behaviour if you like.  It's just a matter of  
> changing
> ">" to ">>" when I write to the file.
>
> Some RSS readers will be able to figure out which "stories" are old  
> and
> which are new, but I'm not sure if all of them can.  Some people might
> end up with a massive list of entities that they can't get rid of  
> if we
> simply concatenate.
>
>
>>  If having it return everything is
>> unwieldy, maybe have it return the 10 newest services or objects,
>
> Now that we have timestamps on our LSID's it would be possible to do
> this, though it is a bit more effort (a.k.a. will take longer for  
> me to
> code-up).  The only way to determine which things were new so far has
> been to do a diff against the dump of the previous day - if there were
> no new services, the feed was blank.  In principle, it would be  
> possible
> now to work out which services are the most recent by examining the  
> LSID
> timestamp, and publish those ones to the feed.
>
> M
>
>
> -- 
> --
> ...his last words were 'Hey guys!  Watch this!'
> --
> Mark Wilkinson
> Asst. Professor
> Dept. of Medical Genetics
> University of British Columbia
> PI in Bioinformatics
> iCAPTURE Centre
> St. Paul's Hospital
> Rm. 166, 1081 Burrard St.
> Vancouver, BC, V6Z 1Y6
> tel: 604 682 2344 x62129
> fax: 604 806 9274
>
> "For most of this century we have viewed communications as a conduit,
>        a pipe between physical locations on the planet.
> What's happened now is that the conduit has become so big and  
> interesting
>       that communication has become more than a conduit,
>        it has become a destination in its own right..."
>
>                 Paul Saffo - Director, Institute for the Future
>




More information about the moby-l mailing list