[DAS] Pagination Proposal
Andy Jenkinson
andy.jenkinson at ebi.ac.uk
Wed Mar 23 15:01:47 UTC 2011
Hi Gustavo,
Thanks for this, looks fine to me mostly.
One question: should segments that contain no features (due to the pagination limit) be included in the response?
/das/foo/features?search=a*;rows=1-2
<GFF total="300">
<SEGMENT id="1" total="40">
<FEATURE id="a" />
<FEATURE id="b" />
</SEGMENT>
<SEGMENT id="2" total="30" />
<SEGMENT id="3" total="90" />
...
</GFF>
Also, I can't remember if we decided at the workshop whether servers would be allowed to overrule the client's requested range and return (for example) a smaller number of rows. This is how entry_points works, which is why it has "start" and "end" attributes in the response in addition to the "total" attribute.
On 23 Mar 2011, at 12:08, Gustavo Salazar wrote:
> Hello all,
>
> Following the momentum that the DAS workshop let us I started tackling one of the many projects that we defined during the 3rd day: The pagination for the features command.
> I added the proposal for the extension in the wiki:
> http://www.biodas.org/wiki/DAS1.6E#Pagination_for_DAS
> I have implemented it in MyDas and is included in the snapshot version of the repository in case anyone wants to play with it
> http://mydas.googlecode.com/svn/snapshot-repository/uk/ac/ebi/mydas/mydas/1.6.5-SNAPSHOT/
> As a nightly version it may have changes whenever we do a release after some proper testing of it
>
> Looking for your feedback about it!
>
> Cheers,
>
> Gustavo.
> _______________________________________________
> DAS mailing list
> DAS at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/das
More information about the DAS
mailing list